OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" | 8 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
9 #include "ui/views/layout/layout_manager.h" | 9 #include "ui/views/layout/layout_manager.h" |
10 #include "ui/views/window/frame_buttons.h" | 10 #include "ui/views/window/frame_buttons.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 void SetBoundsForButton(views::View* host, | 133 void SetBoundsForButton(views::View* host, |
134 views::ImageButton* button, | 134 views::ImageButton* button, |
135 ButtonAlignment align, | 135 ButtonAlignment align, |
136 int caption_y); | 136 int caption_y); |
137 | 137 |
138 // Internal implementation of ViewAdded() and ViewRemoved(). | 138 // Internal implementation of ViewAdded() and ViewRemoved(). |
139 void SetView(int id, views::View* view); | 139 void SetView(int id, views::View* view); |
140 | 140 |
141 // Overriden from views::LayoutManager: | 141 // Overriden from views::LayoutManager: |
142 virtual void Layout(views::View* host) OVERRIDE; | 142 virtual void Layout(views::View* host) OVERRIDE; |
143 virtual gfx::Size GetPreferredSize(views::View* host) OVERRIDE; | 143 virtual gfx::Size GetPreferredSize(const views::View* host) const OVERRIDE; |
144 virtual void ViewAdded(views::View* host, views::View* view) OVERRIDE; | 144 virtual void ViewAdded(views::View* host, views::View* view) OVERRIDE; |
145 virtual void ViewRemoved(views::View* host, views::View* view) OVERRIDE; | 145 virtual void ViewRemoved(views::View* host, views::View* view) OVERRIDE; |
146 | 146 |
147 OpaqueBrowserFrameViewLayoutDelegate* delegate_; | 147 OpaqueBrowserFrameViewLayoutDelegate* delegate_; |
148 | 148 |
149 // The layout rect of the avatar icon, if visible. | 149 // The layout rect of the avatar icon, if visible. |
150 gfx::Rect avatar_bounds_; | 150 gfx::Rect avatar_bounds_; |
151 | 151 |
152 // The bounds of the ClientView. | 152 // The bounds of the ClientView. |
153 gfx::Rect client_view_bounds_; | 153 gfx::Rect client_view_bounds_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 AvatarMenuButton* avatar_button_; | 189 AvatarMenuButton* avatar_button_; |
190 views::View* new_avatar_button_; | 190 views::View* new_avatar_button_; |
191 | 191 |
192 std::vector<views::FrameButton> leading_buttons_; | 192 std::vector<views::FrameButton> leading_buttons_; |
193 std::vector<views::FrameButton> trailing_buttons_; | 193 std::vector<views::FrameButton> trailing_buttons_; |
194 | 194 |
195 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); | 195 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); |
196 }; | 196 }; |
197 | 197 |
198 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 198 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
OLD | NEW |