| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ | 5 #ifndef UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ |
| 6 #define UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ | 6 #define UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/aura_shell/aura_shell_export.h" | 9 #include "ui/aura_shell/aura_shell_export.h" |
| 10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 gfx::Rect GetHiddenBoundsForSizingBorder(int frame_component) const; | 49 gfx::Rect GetHiddenBoundsForSizingBorder(int frame_component) const; |
| 50 gfx::Rect GetVisibleBoundsForSizingBorder(int frame_component) const; | 50 gfx::Rect GetVisibleBoundsForSizingBorder(int frame_component) const; |
| 51 | 51 |
| 52 // Overridden from views::NonClientFrameView: | 52 // Overridden from views::NonClientFrameView: |
| 53 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 53 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 54 virtual gfx::Rect GetWindowBoundsForClientBounds( | 54 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 55 const gfx::Rect& client_bounds) const OVERRIDE; | 55 const gfx::Rect& client_bounds) const OVERRIDE; |
| 56 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 56 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
| 57 virtual void GetWindowMask(const gfx::Size& size, | 57 virtual void GetWindowMask(const gfx::Size& size, |
| 58 gfx::Path* window_mask) OVERRIDE; | 58 gfx::Path* window_mask) OVERRIDE; |
| 59 virtual void EnableClose(bool enable) OVERRIDE; |
| 59 virtual void ResetWindowControls() OVERRIDE; | 60 virtual void ResetWindowControls() OVERRIDE; |
| 60 virtual void UpdateWindowIcon() OVERRIDE; | 61 virtual void UpdateWindowIcon() OVERRIDE; |
| 61 | 62 |
| 62 // Overridden from views::View: | 63 // Overridden from views::View: |
| 63 virtual void Layout() OVERRIDE; | 64 virtual void Layout() OVERRIDE; |
| 64 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; | 65 virtual void OnMouseMoved(const views::MouseEvent& event) OVERRIDE; |
| 65 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 66 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
| 66 virtual views::View* GetEventHandlerForPoint( | 67 virtual views::View* GetEventHandlerForPoint( |
| 67 const gfx::Point& point) OVERRIDE; | 68 const gfx::Point& point) OVERRIDE; |
| 68 virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE; | 69 virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE; |
| 69 | 70 |
| 70 gfx::Rect client_view_bounds_; | 71 gfx::Rect client_view_bounds_; |
| 71 | 72 |
| 72 int current_hittest_code_; | 73 int current_hittest_code_; |
| 73 | 74 |
| 74 WindowCaption* caption_; | 75 WindowCaption* caption_; |
| 75 SizingBorder* left_edge_; | 76 SizingBorder* left_edge_; |
| 76 SizingBorder* right_edge_; | 77 SizingBorder* right_edge_; |
| 77 SizingBorder* bottom_edge_; | 78 SizingBorder* bottom_edge_; |
| 78 | 79 |
| 79 DISALLOW_COPY_AND_ASSIGN(ToplevelFrameView); | 80 DISALLOW_COPY_AND_ASSIGN(ToplevelFrameView); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } // namespace internal | 83 } // namespace internal |
| 83 } // namespace aura_shell | 84 } // namespace aura_shell |
| 84 | 85 |
| 85 #endif // #ifndef UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ | 86 #endif // #ifndef UI_AURA_SHELL_TOPLEVEL_FRAME_VIEW_H_ |
| OLD | NEW |