| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ | 6 #define CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/common/cancelable_request.h" | 11 #include "chrome/browser/common/cancelable_request.h" |
| 12 #include "chrome/browser/history/history_types.h" | 12 #include "chrome/browser/history/history_types.h" |
| 13 #include "chrome/browser/sessions/tab_restore_service.h" | 13 #include "chrome/browser/sessions/tab_restore_service.h" |
| 14 #include "chrome/browser/sessions/tab_restore_service_observer.h" | 14 #include "chrome/browser/sessions/tab_restore_service_observer.h" |
| 15 #include "chrome/browser/ui/gtk/global_menu_owner.h" | 15 #include "chrome/browser/ui/gtk/global_menu_owner.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "ui/base/gtk/gtk_signal.h" | 18 #include "ui/base/gtk/gtk_signal.h" |
| 19 #include "ui/base/gtk/owned_widget_gtk.h" | 19 #include "ui/base/gtk/owned_widget_gtk.h" |
| 20 | 20 |
| 21 class Browser; | 21 class Browser; |
| 22 class Profile; |
| 22 | 23 |
| 23 namespace history { | 24 namespace history { |
| 24 class TopSites; | 25 class TopSites; |
| 25 } | 26 } |
| 26 | 27 |
| 27 typedef struct _GdkPixbuf GdkPixbuf; | 28 typedef struct _GdkPixbuf GdkPixbuf; |
| 28 | 29 |
| 29 // Controls the History menu. | 30 // Controls the History menu. |
| 30 class GlobalHistoryMenu : public GlobalMenuOwner, | 31 class GlobalHistoryMenu : public GlobalMenuOwner, |
| 31 public content::NotificationObserver, | 32 public content::NotificationObserver, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 114 |
| 114 TabRestoreService* tab_restore_service_; // weak | 115 TabRestoreService* tab_restore_service_; // weak |
| 115 | 116 |
| 116 // A mapping from GtkMenuItems to HistoryItems that maintain data. | 117 // A mapping from GtkMenuItems to HistoryItems that maintain data. |
| 117 MenuItemToHistoryMap menu_item_history_map_; | 118 MenuItemToHistoryMap menu_item_history_map_; |
| 118 | 119 |
| 119 content::NotificationRegistrar registrar_; | 120 content::NotificationRegistrar registrar_; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ | 123 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ |
| OLD | NEW |