Chromium Code Reviews| 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" |
| 11 | 11 |
| 12 class AvatarLabel; | |
| 13 class AvatarMenuButton; | 12 class AvatarMenuButton; |
| 14 class NewAvatarButton; | 13 class NewAvatarButton; |
| 15 class OpaqueBrowserFrameViewLayoutDelegate; | 14 class OpaqueBrowserFrameViewLayoutDelegate; |
| 15 #if defined(ENABLE_MANAGED_USERS) | |
|
Bernhard Bauer
2014/07/14 16:39:05
Nit: empty line before the #ifdef block?
mckev
2014/07/14 23:50:03
Done.
| |
| 16 class SupervisedUserAvatarLabel; | |
| 17 #endif | |
| 16 | 18 |
| 17 namespace views { | 19 namespace views { |
| 18 class ImageButton; | 20 class ImageButton; |
| 19 class Label; | 21 class Label; |
| 20 } | 22 } |
| 21 | 23 |
| 22 // Calculates the position of the widgets in the opaque browser frame view. | 24 // Calculates the position of the widgets in the opaque browser frame view. |
| 23 // | 25 // |
| 24 // This is separated out for testing reasons. OpaqueBrowserFrameView has tight | 26 // This is separated out for testing reasons. OpaqueBrowserFrameView has tight |
| 25 // dependencies with Browser and classes that depend on Browser. | 27 // dependencies with Browser and classes that depend on Browser. |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 | 180 |
| 179 // Window controls. | 181 // Window controls. |
| 180 views::ImageButton* minimize_button_; | 182 views::ImageButton* minimize_button_; |
| 181 views::ImageButton* maximize_button_; | 183 views::ImageButton* maximize_button_; |
| 182 views::ImageButton* restore_button_; | 184 views::ImageButton* restore_button_; |
| 183 views::ImageButton* close_button_; | 185 views::ImageButton* close_button_; |
| 184 | 186 |
| 185 views::View* window_icon_; | 187 views::View* window_icon_; |
| 186 views::Label* window_title_; | 188 views::Label* window_title_; |
| 187 | 189 |
| 188 AvatarLabel* avatar_label_; | 190 #if defined(ENABLE_MANAGED_USERS) |
| 191 SupervisedUserAvatarLabel* supervised_user_avatar_label_; | |
| 192 #endif | |
| 189 AvatarMenuButton* avatar_button_; | 193 AvatarMenuButton* avatar_button_; |
| 190 views::View* new_avatar_button_; | 194 views::View* new_avatar_button_; |
| 191 | 195 |
| 192 std::vector<views::FrameButton> leading_buttons_; | 196 std::vector<views::FrameButton> leading_buttons_; |
| 193 std::vector<views::FrameButton> trailing_buttons_; | 197 std::vector<views::FrameButton> trailing_buttons_; |
| 194 | 198 |
| 195 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); | 199 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); |
| 196 }; | 200 }; |
| 197 | 201 |
| 198 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 202 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
| OLD | NEW |