From 6dce30b06f8f099a7e2a753126dab23f0c02c874 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Wed, 30 Sep 2009 22:16:33 +0000 Subject: GTK: Implement popup favicon menu. BUG=18181 Review URL: http://codereview.chromium.org/244029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27666 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/browser_titlebar.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chrome/browser/gtk/browser_titlebar.h') diff --git a/chrome/browser/gtk/browser_titlebar.h b/chrome/browser/gtk/browser_titlebar.h index 84d9236..a9ace55 100644 --- a/chrome/browser/gtk/browser_titlebar.h +++ b/chrome/browser/gtk/browser_titlebar.h @@ -95,6 +95,9 @@ class BrowserTitlebar : public MenuGtk::Delegate, // change in the window. void UpdateTextColor(); + // Show the menu that the user gets from left-clicking the favicon. + void ShowFaviconMenu(GdkEventButton* event); + // Callback for changes to window state. This includes // maximizing/restoring/minimizing the window. static gboolean OnWindowStateChanged(GtkWindow* window, @@ -108,6 +111,10 @@ class BrowserTitlebar : public MenuGtk::Delegate, // Callback for min/max/close buttons. static void OnButtonClicked(GtkWidget* button, BrowserTitlebar* window); + // Callback for favicon. + static gboolean OnButtonPressed(GtkWidget* widget, GdkEventButton* event, + BrowserTitlebar* titlebar); + // -- Context Menu ----------------------------------------------------------- // MenuGtk::Delegate implementation: @@ -166,6 +173,9 @@ class BrowserTitlebar : public MenuGtk::Delegate, // The context menu. scoped_ptr context_menu_; + // The favicon menu. + scoped_ptr favicon_menu_; + // The throbber used when the window is in app mode or popup window mode. Throbber throbber_; -- cgit v1.1