| 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 "chrome/browser/history/history_types.h" | 10 #include "chrome/browser/history/history_types.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // going stale. That's why this method recurses into its child menus. | 74 // going stale. That's why this method recurses into its child menus. |
| 75 void ClearMenuSection(GtkWidget* menu, int tag); | 75 void ClearMenuSection(GtkWidget* menu, int tag); |
| 76 | 76 |
| 77 // Implementation detail of GetIndexOfMenuItemWithTag. | 77 // Implementation detail of GetIndexOfMenuItemWithTag. |
| 78 static void GetIndexCallback(GtkWidget* widget, GetIndexClosure* closure); | 78 static void GetIndexCallback(GtkWidget* widget, GetIndexClosure* closure); |
| 79 | 79 |
| 80 // Implementation detail of ClearMenuSection. | 80 // Implementation detail of ClearMenuSection. |
| 81 static void ClearMenuCallback(GtkWidget* widget, ClearMenuClosure* closure); | 81 static void ClearMenuCallback(GtkWidget* widget, ClearMenuClosure* closure); |
| 82 | 82 |
| 83 // NotificationObserver: | 83 // NotificationObserver: |
| 84 virtual void Observe(NotificationType type, | 84 virtual void Observe(int type, |
| 85 const NotificationSource& source, | 85 const NotificationSource& source, |
| 86 const NotificationDetails& details); | 86 const NotificationDetails& details); |
| 87 | 87 |
| 88 // For TabRestoreServiceObserver | 88 // For TabRestoreServiceObserver |
| 89 virtual void TabRestoreServiceChanged(TabRestoreService* service); | 89 virtual void TabRestoreServiceChanged(TabRestoreService* service); |
| 90 virtual void TabRestoreServiceDestroyed(TabRestoreService* service); | 90 virtual void TabRestoreServiceDestroyed(TabRestoreService* service); |
| 91 | 91 |
| 92 CHROMEGTK_CALLBACK_0(GlobalHistoryMenu, void, OnRecentlyClosedItemActivated); | 92 CHROMEGTK_CALLBACK_0(GlobalHistoryMenu, void, OnRecentlyClosedItemActivated); |
| 93 | 93 |
| 94 // Listen for the first menu show command so we can then connect to the | 94 // Listen for the first menu show command so we can then connect to the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 111 | 111 |
| 112 TabRestoreService* tab_restore_service_; // weak | 112 TabRestoreService* tab_restore_service_; // weak |
| 113 | 113 |
| 114 // A mapping from GtkMenuItems to HistoryItems that maintain data. | 114 // A mapping from GtkMenuItems to HistoryItems that maintain data. |
| 115 MenuItemToHistoryMap menu_item_history_map_; | 115 MenuItemToHistoryMap menu_item_history_map_; |
| 116 | 116 |
| 117 NotificationRegistrar registrar_; | 117 NotificationRegistrar registrar_; |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ | 120 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_HISTORY_MENU_H_ |
| OLD | NEW |