| 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 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h" | 5 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "build/build_config.h" |
| 8 #include "chrome/browser/profiles/profiles_state.h" | 9 #include "chrome/browser/profiles/profiles_state.h" |
| 9 #include "chrome/browser/ui/layout_constants.h" | 10 #include "chrome/browser/ui/layout_constants.h" |
| 10 #include "chrome/browser/ui/views/profiles/avatar_menu_button.h" | 11 #include "chrome/browser/ui/views/profiles/avatar_menu_button.h" |
| 11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 12 #include "components/signin/core/common/profile_management_switches.h" | 13 #include "components/signin/core/common/profile_management_switches.h" |
| 13 #include "ui/gfx/font.h" | 14 #include "ui/gfx/font.h" |
| 14 #include "ui/views/controls/button/image_button.h" | 15 #include "ui/views/controls/button/image_button.h" |
| 15 #include "ui/views/controls/label.h" | 16 #include "ui/views/controls/label.h" |
| 16 | 17 |
| 17 #if defined(ENABLE_SUPERVISED_USERS) | 18 #if defined(ENABLE_SUPERVISED_USERS) |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 | 714 |
| 714 void OpaqueBrowserFrameViewLayout::ViewAdded(views::View* host, | 715 void OpaqueBrowserFrameViewLayout::ViewAdded(views::View* host, |
| 715 views::View* view) { | 716 views::View* view) { |
| 716 SetView(view->id(), view); | 717 SetView(view->id(), view); |
| 717 } | 718 } |
| 718 | 719 |
| 719 void OpaqueBrowserFrameViewLayout::ViewRemoved(views::View* host, | 720 void OpaqueBrowserFrameViewLayout::ViewRemoved(views::View* host, |
| 720 views::View* view) { | 721 views::View* view) { |
| 721 SetView(view->id(), nullptr); | 722 SetView(view->id(), nullptr); |
| 722 } | 723 } |
| OLD | NEW |