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 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/managed_mode.h" | 8 #include "chrome/browser/managed_mode.h" |
9 #include "chrome/browser/profiles/avatar_menu_model.h" | 9 #include "chrome/browser/profiles/avatar_menu_model.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/profiles/profile_info_cache.h" | 11 #include "chrome/browser/profiles/profile_info_cache.h" |
12 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
13 #include "chrome/browser/ui/views/avatar_menu_button.h" | 13 #include "chrome/browser/ui/views/avatar_menu_button.h" |
14 #include "chrome/browser/ui/views/frame/browser_view.h" | 14 #include "chrome/browser/ui/views/frame/browser_view.h" |
15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
16 #include "grit/theme_resources_standard.h" | |
17 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
18 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
19 | 18 |
20 BrowserNonClientFrameView::BrowserNonClientFrameView(BrowserFrame* frame, | 19 BrowserNonClientFrameView::BrowserNonClientFrameView(BrowserFrame* frame, |
21 BrowserView* browser_view) | 20 BrowserView* browser_view) |
22 : frame_(frame), | 21 : frame_(frame), |
23 browser_view_(browser_view) { | 22 browser_view_(browser_view) { |
24 } | 23 } |
25 | 24 |
26 BrowserNonClientFrameView::~BrowserNonClientFrameView() { | 25 BrowserNonClientFrameView::~BrowserNonClientFrameView() { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 85 |
87 void BrowserNonClientFrameView::VisibilityChanged(views::View* starting_from, | 86 void BrowserNonClientFrameView::VisibilityChanged(views::View* starting_from, |
88 bool is_visible) { | 87 bool is_visible) { |
89 if (!is_visible) | 88 if (!is_visible) |
90 return; | 89 return; |
91 // The first time UpdateAvatarInfo() is called the window is not visible so | 90 // The first time UpdateAvatarInfo() is called the window is not visible so |
92 // DrawTaskBarDecoration() has no effect. Therefore we need to call it again | 91 // DrawTaskBarDecoration() has no effect. Therefore we need to call it again |
93 // once the window is visible. | 92 // once the window is visible. |
94 UpdateAvatarInfo(); | 93 UpdateAvatarInfo(); |
95 } | 94 } |
OLD | NEW |