win_frame_view.h 783 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (c) 2014 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
  5. #define ATOM_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
  6. #include "atom/browser/ui/views/frameless_view.h"
  7. namespace atom {
  8. class WinFrameView : public FramelessView {
  9. public:
  10. WinFrameView();
  11. virtual ~WinFrameView();
  12. // views::NonClientFrameView:
  13. gfx::Rect GetWindowBoundsForClientBounds(
  14. const gfx::Rect& client_bounds) const override;
  15. int NonClientHitTest(const gfx::Point& point) override;
  16. // views::View:
  17. const char* GetClassName() const override;
  18. private:
  19. DISALLOW_COPY_AND_ASSIGN(WinFrameView);
  20. };
  21. } // namespace atom
  22. #endif // ATOM_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_