Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view.cc

Issue 9968058: Cleanup: remove GTK stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/profiles/profile_info_cache.h" 9 #include "chrome/browser/profiles/profile_info_cache.h"
10 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 const gfx::Image& avatar = cache.GetAvatarIconOfProfileAtIndex(index); 64 const gfx::Image& avatar = cache.GetAvatarIconOfProfileAtIndex(index);
65 if (avatar_button_.get()) { 65 if (avatar_button_.get()) {
66 avatar_button_->SetAvatarIcon(avatar, is_gaia_picture); 66 avatar_button_->SetAvatarIcon(avatar, is_gaia_picture);
67 avatar_button_->SetText(cache.GetNameOfProfileAtIndex(index)); 67 avatar_button_->SetText(cache.GetNameOfProfileAtIndex(index));
68 } 68 }
69 DrawTaskBarDecoration(frame_->GetNativeWindow(), &avatar); 69 DrawTaskBarDecoration(frame_->GetNativeWindow(), &avatar);
70 } 70 }
71 } 71 }
72 } 72 }
73 73
74 #if defined(OS_WIN)
75 // See the comments in the .h file as for why this code is windows-only.
76 void BrowserNonClientFrameView::VisibilityChanged(views::View* starting_from, 74 void BrowserNonClientFrameView::VisibilityChanged(views::View* starting_from,
77 bool is_visible) { 75 bool is_visible) {
78 if (!is_visible) 76 if (!is_visible)
79 return; 77 return;
80 // The first time UpdateAvatarInfo() is called the window is not visible so 78 // The first time UpdateAvatarInfo() is called the window is not visible so
81 // DrawTaskBarDecoration() has no effect. Therefore we need to call it again 79 // DrawTaskBarDecoration() has no effect. Therefore we need to call it again
82 // once the window is visible. 80 // once the window is visible.
83 UpdateAvatarInfo(); 81 UpdateAvatarInfo();
84 } 82 }
85 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_non_client_frame_view.h ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698