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

Side by Side Diff: chrome/browser/ui/gtk/avatar_menu_bubble_gtk.h

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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) 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 #ifndef CHROME_BROWSER_UI_GTK_AVATAR_MENU_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_AVATAR_MENU_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_AVATAR_MENU_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_AVATAR_MENU_BUBBLE_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include <gtk/gtk.h> 11 #include <gtk/gtk.h>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "chrome/browser/profiles/avatar_menu_model_observer.h" 16 #include "chrome/browser/profiles/avatar_menu_model_observer.h"
17 #include "chrome/browser/ui/gtk/avatar_menu_item_gtk.h" 17 #include "chrome/browser/ui/gtk/avatar_menu_item_gtk.h"
18 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" 18 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "ui/base/gtk/gtk_signal.h" 21 #include "ui/base/gtk/gtk_signal.h"
22 22
23 class AvatarMenuModel; 23 class AvatarMenuModel;
24 class Browser; 24 class Browser;
25 class GtkThemeService; 25 class ThemeServiceGtk;
26 26
27 // This bubble is displayed when the user clicks on the avatar button. 27 // This bubble is displayed when the user clicks on the avatar button.
28 // It displays a list of profiles and allows users to switch between profiles. 28 // It displays a list of profiles and allows users to switch between profiles.
29 class AvatarMenuBubbleGtk : public BubbleDelegateGtk, 29 class AvatarMenuBubbleGtk : public BubbleDelegateGtk,
30 public AvatarMenuModelObserver, 30 public AvatarMenuModelObserver,
31 public AvatarMenuItemGtk::Delegate, 31 public AvatarMenuItemGtk::Delegate,
32 public content::NotificationObserver { 32 public content::NotificationObserver {
33 public: 33 public:
34 AvatarMenuBubbleGtk(Browser* browser, 34 AvatarMenuBubbleGtk(Browser* browser,
35 GtkWidget* anchor, 35 GtkWidget* anchor,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // A model of all the profile information to be displayed in the menu. 67 // A model of all the profile information to be displayed in the menu.
68 scoped_ptr<AvatarMenuModel> avatar_menu_model_; 68 scoped_ptr<AvatarMenuModel> avatar_menu_model_;
69 69
70 // A weak pointer to the parent widget of all widgets in the bubble. 70 // A weak pointer to the parent widget of all widgets in the bubble.
71 GtkWidget* contents_; 71 GtkWidget* contents_;
72 72
73 // A weak pointer to the bubble window. 73 // A weak pointer to the bubble window.
74 BubbleGtk* bubble_; 74 BubbleGtk* bubble_;
75 75
76 // A weak pointer to the theme service. 76 // A weak pointer to the theme service.
77 GtkThemeService* theme_service_; 77 ThemeServiceGtk* theme_service_;
78 78
79 // A weak pointer to the new proifle link to keep its theme information 79 // A weak pointer to the new proifle link to keep its theme information
80 // updated. 80 // updated.
81 GtkWidget* new_profile_link_; 81 GtkWidget* new_profile_link_;
82 82
83 // A vector of all profile items in the menu. 83 // A vector of all profile items in the menu.
84 std::vector<AvatarMenuItemGtk*> items_; 84 std::vector<AvatarMenuItemGtk*> items_;
85 85
86 // The minimum width to display the bubble. This is used to prevent the bubble 86 // The minimum width to display the bubble. This is used to prevent the bubble
87 // from automatically reducing its size when hovering over a profile item. 87 // from automatically reducing its size when hovering over a profile item.
88 int minimum_width_; 88 int minimum_width_;
89 89
90 content::NotificationRegistrar registrar_; 90 content::NotificationRegistrar registrar_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleGtk); 92 DISALLOW_COPY_AND_ASSIGN(AvatarMenuBubbleGtk);
93 }; 93 };
94 94
95 #endif // CHROME_BROWSER_UI_GTK_AVATAR_MENU_BUBBLE_GTK_H_ 95 #endif // CHROME_BROWSER_UI_GTK_AVATAR_MENU_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_service_factory.cc ('k') | chrome/browser/ui/gtk/avatar_menu_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698