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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void VisibilityChanged(views::View* starting_from, bool is_visible) override; | 88 void VisibilityChanged(views::View* starting_from, bool is_visible) override; |
89 | 89 |
90 // Get the view of the header. | 90 // Get the view of the header. |
91 views::View* GetHeaderView(); | 91 views::View* GetHeaderView(); |
92 | 92 |
93 const views::View* GetAvatarIconViewForTest() const; | 93 const views::View* GetAvatarIconViewForTest() const; |
94 | 94 |
95 private: | 95 private: |
96 class OverlayView; | 96 class OverlayView; |
97 friend class TestWidgetConstraintsDelegate; | 97 friend class TestWidgetConstraintsDelegate; |
| 98 friend class CustomFrameViewAshSizeLock; |
98 | 99 |
99 // views::NonClientFrameView: | 100 // views::NonClientFrameView: |
100 bool DoesIntersectRect(const views::View* target, | 101 bool DoesIntersectRect(const views::View* target, |
101 const gfx::Rect& rect) const override; | 102 const gfx::Rect& rect) const override; |
102 | 103 |
103 // Returns the container for the minimize/maximize/close buttons that is held | 104 // Returns the container for the minimize/maximize/close buttons that is held |
104 // by the HeaderView. Used in testing. | 105 // by the HeaderView. Used in testing. |
105 FrameCaptionButtonContainerView* GetFrameCaptionButtonContainerViewForTest(); | 106 FrameCaptionButtonContainerView* GetFrameCaptionButtonContainerViewForTest(); |
106 | 107 |
107 // Height from top of window to top of client area. | 108 // Height from top of window to top of client area. |
108 int NonClientTopBorderHeight() const; | 109 int NonClientTopBorderHeight() const; |
109 | 110 |
110 // Not owned. | 111 // Not owned. |
111 views::Widget* frame_; | 112 views::Widget* frame_; |
112 | 113 |
113 // View which contains the title and window controls. | 114 // View which contains the title and window controls. |
114 HeaderView* header_view_; | 115 HeaderView* header_view_; |
115 | 116 |
116 OverlayView* overlay_view_; | 117 OverlayView* overlay_view_; |
117 | 118 |
118 ImmersiveFullscreenControllerDelegate* immersive_delegate_; | 119 ImmersiveFullscreenControllerDelegate* immersive_delegate_; |
119 | 120 |
| 121 static bool use_empty_minimum_size_for_test_; |
| 122 |
120 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); | 123 DISALLOW_COPY_AND_ASSIGN(CustomFrameViewAsh); |
121 }; | 124 }; |
122 | 125 |
123 } // namespace ash | 126 } // namespace ash |
124 | 127 |
125 #endif // ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ | 128 #endif // ASH_FRAME_CUSTOM_FRAME_VIEW_ASH_H_ |
OLD | NEW |