| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
| 10 #include "ui/views/layout/layout_manager.h" | 10 #include "ui/views/layout/layout_manager.h" |
| 11 #include "ui/views/window/frame_buttons.h" | 11 #include "ui/views/window/frame_buttons.h" |
| 12 | 12 |
| 13 class AvatarMenuButton; | 13 class AvatarMenuButton; |
| 14 class NewAvatarButton; | 14 class NewAvatarButton; |
| 15 class OpaqueBrowserFrameViewLayoutDelegate; | 15 class OpaqueBrowserFrameViewLayoutDelegate; |
| 16 | 16 |
| 17 #if defined(ENABLE_SUPERVISED_USERS) | |
| 18 class SupervisedUserAvatarLabel; | |
| 19 #endif | |
| 20 | |
| 21 namespace views { | 17 namespace views { |
| 22 class ImageButton; | 18 class ImageButton; |
| 23 class Label; | 19 class Label; |
| 24 } | 20 } |
| 25 | 21 |
| 26 // Calculates the position of the widgets in the opaque browser frame view. | 22 // Calculates the position of the widgets in the opaque browser frame view. |
| 27 // | 23 // |
| 28 // This is separated out for testing reasons. OpaqueBrowserFrameView has tight | 24 // This is separated out for testing reasons. OpaqueBrowserFrameView has tight |
| 29 // dependencies with Browser and classes that depend on Browser. | 25 // dependencies with Browser and classes that depend on Browser. |
| 30 class OpaqueBrowserFrameViewLayout : public views::LayoutManager { | 26 class OpaqueBrowserFrameViewLayout : public views::LayoutManager { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 178 |
| 183 // Window controls. | 179 // Window controls. |
| 184 views::ImageButton* minimize_button_; | 180 views::ImageButton* minimize_button_; |
| 185 views::ImageButton* maximize_button_; | 181 views::ImageButton* maximize_button_; |
| 186 views::ImageButton* restore_button_; | 182 views::ImageButton* restore_button_; |
| 187 views::ImageButton* close_button_; | 183 views::ImageButton* close_button_; |
| 188 | 184 |
| 189 views::View* window_icon_; | 185 views::View* window_icon_; |
| 190 views::Label* window_title_; | 186 views::Label* window_title_; |
| 191 | 187 |
| 192 #if defined(ENABLE_SUPERVISED_USERS) | |
| 193 SupervisedUserAvatarLabel* supervised_user_avatar_label_; | |
| 194 #endif | |
| 195 AvatarMenuButton* avatar_button_; | 188 AvatarMenuButton* avatar_button_; |
| 196 views::View* new_avatar_button_; | 189 views::View* new_avatar_button_; |
| 197 | 190 |
| 198 std::vector<views::FrameButton> leading_buttons_; | 191 std::vector<views::FrameButton> leading_buttons_; |
| 199 std::vector<views::FrameButton> trailing_buttons_; | 192 std::vector<views::FrameButton> trailing_buttons_; |
| 200 | 193 |
| 201 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); | 194 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); |
| 202 }; | 195 }; |
| 203 | 196 |
| 204 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 197 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
| OLD | NEW |