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

Side by Side Diff: chrome/browser/ui/gtk/avatar_menu_button_gtk.cc

Issue 11027017: Move ManagedMode classes to chrome/browser/managed_mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 1 month 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) 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/gtk/avatar_menu_button_gtk.h" 5 #include "chrome/browser/ui/gtk/avatar_menu_button_gtk.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "chrome/app/chrome_command_ids.h" 8 #include "chrome/app/chrome_command_ids.h"
9 #include "chrome/browser/command_updater.h" 9 #include "chrome/browser/command_updater.h"
10 #include "chrome/browser/managed_mode.h" 10 #include "chrome/browser/managed_mode/managed_mode.h"
11 #include "chrome/browser/profiles/profile_metrics.h" 11 #include "chrome/browser/profiles/profile_metrics.h"
12 #include "chrome/browser/profiles/profile_info_util.h" 12 #include "chrome/browser/profiles/profile_info_util.h"
13 #include "chrome/browser/ui/browser.h" 13 #include "chrome/browser/ui/browser.h"
14 #include "chrome/browser/ui/browser_commands.h" 14 #include "chrome/browser/ui/browser_commands.h"
15 #include "chrome/browser/ui/gtk/avatar_menu_bubble_gtk.h" 15 #include "chrome/browser/ui/gtk/avatar_menu_bubble_gtk.h"
16 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 16 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
17 #include "ui/gfx/gtk_util.h" 17 #include "ui/gfx/gtk_util.h"
18 18
19 AvatarMenuButtonGtk::AvatarMenuButtonGtk(Browser* browser) 19 AvatarMenuButtonGtk::AvatarMenuButtonGtk(Browser* browser)
20 : image_(NULL), 20 : image_(NULL),
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 GtkAllocation allocation; 81 GtkAllocation allocation;
82 gtk_widget_get_allocation(widget(), &allocation); 82 gtk_widget_get_allocation(widget(), &allocation);
83 old_height_ = allocation.height; 83 old_height_ = allocation.height;
84 gfx::Image icon = profiles::GetAvatarIconForTitleBar(*icon_, is_gaia_picture_, 84 gfx::Image icon = profiles::GetAvatarIconForTitleBar(*icon_, is_gaia_picture_,
85 profiles::kAvatarIconWidth, old_height_); 85 profiles::kAvatarIconWidth, old_height_);
86 gtk_image_set_from_pixbuf(GTK_IMAGE(image_), icon.ToGdkPixbuf()); 86 gtk_image_set_from_pixbuf(GTK_IMAGE(image_), icon.ToGdkPixbuf());
87 gtk_misc_set_alignment(GTK_MISC(image_), 0.0, 1.0); 87 gtk_misc_set_alignment(GTK_MISC(image_), 0.0, 1.0);
88 gtk_widget_set_size_request(image_, -1, 0); 88 gtk_widget_set_size_request(image_, -1, 0);
89 } 89 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/gtk/browser_titlebar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698