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_WM_CUSTOM_FRAME_VIEW_ASH_H_ | 5 #ifndef ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ |
6 #define ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ | 6 #define ASH_WM_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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual gfx::Size GetMinimumSize() OVERRIDE; | 58 virtual gfx::Size GetMinimumSize() OVERRIDE; |
59 virtual gfx::Size GetMaximumSize() OVERRIDE; | 59 virtual gfx::Size GetMaximumSize() OVERRIDE; |
60 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE; | 60 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE; |
61 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; | 61 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; |
62 | 62 |
63 // Get the view of the header. | 63 // Get the view of the header. |
64 views::View* GetHeaderView(); | 64 views::View* GetHeaderView(); |
65 | 65 |
66 private: | 66 private: |
67 class OverlayView; | 67 class OverlayView; |
| 68 friend class TestWidgetConstraintsDelegate; |
68 | 69 |
69 // Height from top of window to top of client area. | 70 // Height from top of window to top of client area. |
70 int NonClientTopBorderHeight() const; | 71 int NonClientTopBorderHeight() const; |
71 | 72 |
72 // Not owned. | 73 // Not owned. |
73 views::Widget* frame_; | 74 views::Widget* frame_; |
74 | 75 |
75 // View which contains the title and window controls. | 76 // View which contains the title and window controls. |
76 class HeaderView; | 77 class HeaderView; |
77 HeaderView* header_view_; | 78 HeaderView* header_view_; |
78 | 79 |
79 // Updates the hittest bounds overrides based on the window state type. | 80 // Updates the hittest bounds overrides based on the window state type. |
80 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; | 81 scoped_ptr<FrameBorderHitTestController> frame_border_hit_test_controller_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); | 83 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace ash | 86 } // namespace ash |
86 | 87 |
87 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ | 88 #endif // ASH_WM_CUSTOM_FRAME_VIEW_ASH_H_ |
OLD | NEW |