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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/global_bookmark_menu.cc ('k') | chrome/browser/ui/gtk/global_history_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698