| 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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_X11_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_X11_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_X11_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_X11_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/prefs/pref_change_registrar.h" | 13 #include "base/prefs/pref_change_registrar.h" |
| 14 #include "chrome/browser/command_observer.h" | 14 #include "chrome/browser/command_observer.h" |
| 15 #include "chrome/browser/profiles/avatar_menu.h" | 15 #include "chrome/browser/profiles/avatar_menu.h" |
| 16 #include "chrome/browser/profiles/avatar_menu_observer.h" | 16 #include "chrome/browser/profiles/avatar_menu_observer.h" |
| 17 #include "chrome/browser/sessions/tab_restore_service.h" | 17 #include "chrome/browser/sessions/tab_restore_service.h" |
| 18 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 18 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
| 19 #include "chrome/browser/ui/browser_list_observer.h" | 19 #include "chrome/browser/ui/browser_list_observer.h" |
| 20 #include "components/history/core/browser/history_types.h" | 20 #include "components/history/core/browser/history_types.h" |
| 21 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
| 22 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
| 23 #include "ui/base/glib/glib_signal.h" | 23 #include "ui/base/glib/glib_signal.h" |
| 24 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_observer_x11.h" | 24 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_observer_x11.h" |
| 25 | 25 |
| 26 typedef struct _DbusmenuMenuitem DbusmenuMenuitem; | 26 typedef struct _DbusmenuMenuitem DbusmenuMenuitem; |
| 27 typedef struct _DbusmenuServer DbusmenuServer; | 27 typedef struct _DbusmenuServer DbusmenuServer; |
| 28 | 28 |
| 29 namespace history { | 29 namespace history { |
| 30 class TopSites; | 30 class TopSitesProvider; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace ui { | 33 namespace ui { |
| 34 class Accelerator; | 34 class Accelerator; |
| 35 } | 35 } |
| 36 | 36 |
| 37 class Browser; | 37 class Browser; |
| 38 class BrowserView; | 38 class BrowserView; |
| 39 class Profile; | 39 class Profile; |
| 40 | 40 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 CommandIDMenuItemMap id_to_menu_item_; | 166 CommandIDMenuItemMap id_to_menu_item_; |
| 167 | 167 |
| 168 DbusmenuServer* server_; | 168 DbusmenuServer* server_; |
| 169 DbusmenuMenuitem* root_item_; | 169 DbusmenuMenuitem* root_item_; |
| 170 DbusmenuMenuitem* history_menu_; | 170 DbusmenuMenuitem* history_menu_; |
| 171 DbusmenuMenuitem* profiles_menu_; | 171 DbusmenuMenuitem* profiles_menu_; |
| 172 | 172 |
| 173 // Tracks value of the kShowBookmarkBar preference. | 173 // Tracks value of the kShowBookmarkBar preference. |
| 174 PrefChangeRegistrar pref_change_registrar_; | 174 PrefChangeRegistrar pref_change_registrar_; |
| 175 | 175 |
| 176 history::TopSites* top_sites_; | 176 history::TopSitesProvider* top_sites_; |
| 177 | 177 |
| 178 TabRestoreService* tab_restore_service_; // weak | 178 TabRestoreService* tab_restore_service_; // weak |
| 179 | 179 |
| 180 scoped_ptr<AvatarMenu> avatar_menu_; | 180 scoped_ptr<AvatarMenu> avatar_menu_; |
| 181 | 181 |
| 182 content::NotificationRegistrar registrar_; | 182 content::NotificationRegistrar registrar_; |
| 183 | 183 |
| 184 // For callbacks may be run after destruction. | 184 // For callbacks may be run after destruction. |
| 185 base::WeakPtrFactory<GlobalMenuBarX11> weak_ptr_factory_; | 185 base::WeakPtrFactory<GlobalMenuBarX11> weak_ptr_factory_; |
| 186 | 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(GlobalMenuBarX11); | 187 DISALLOW_COPY_AND_ASSIGN(GlobalMenuBarX11); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_X11_H_ | 190 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLOBAL_MENU_BAR_X11_H_ |
| OLD | NEW |