OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ | 5 #ifndef ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ |
6 #define ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ | 6 #define ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/views/window/non_client_view.h" | 10 #include "ui/views/window/non_client_view.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // views::NonClientFrameView: | 44 // views::NonClientFrameView: |
45 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 45 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
46 virtual gfx::Rect GetWindowBoundsForClientBounds( | 46 virtual gfx::Rect GetWindowBoundsForClientBounds( |
47 const gfx::Rect& client_bounds) const OVERRIDE; | 47 const gfx::Rect& client_bounds) const OVERRIDE; |
48 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 48 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
49 virtual void GetWindowMask(const gfx::Size& size, | 49 virtual void GetWindowMask(const gfx::Size& size, |
50 gfx::Path* window_mask) OVERRIDE; | 50 gfx::Path* window_mask) OVERRIDE; |
51 virtual void ResetWindowControls() OVERRIDE; | 51 virtual void ResetWindowControls() OVERRIDE; |
52 virtual void UpdateWindowIcon() OVERRIDE; | 52 virtual void UpdateWindowIcon() OVERRIDE; |
53 virtual void UpdateWindowTitle() OVERRIDE; | 53 virtual void UpdateWindowTitle() OVERRIDE; |
| 54 virtual void SizeConstraintsChanged() OVERRIDE; |
54 | 55 |
55 // views::View: | 56 // views::View: |
56 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 57 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
57 virtual const char* GetClassName() const OVERRIDE; | 58 virtual const char* GetClassName() const OVERRIDE; |
58 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 59 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
59 virtual gfx::Size GetMaximumSize() const OVERRIDE; | 60 virtual gfx::Size GetMaximumSize() const OVERRIDE; |
60 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE; | 61 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE; |
61 virtual void VisibilityChanged(views::View* starting_from, | 62 virtual void VisibilityChanged(views::View* starting_from, |
62 bool is_visible) OVERRIDE; | 63 bool is_visible) OVERRIDE; |
63 | 64 |
(...skipping 26 matching lines...) Expand all Loading... |
90 | 91 |
91 // Updates the hittest bounds overrides based on the window state type. | 92 // Updates the hittest bounds overrides based on the window state type. |
92 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; | 93 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); | 95 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); |
95 }; | 96 }; |
96 | 97 |
97 } // namespace ash | 98 } // namespace ash |
98 | 99 |
99 #endif // ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ | 100 #endif // ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ |
OLD | NEW |