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

Unified Diff: chrome/browser/gtk/browser_titlebar.h

Issue 244029: GTK: Implement popup favicon menu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_titlebar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_titlebar.h
===================================================================
--- chrome/browser/gtk/browser_titlebar.h (revision 27516)
+++ chrome/browser/gtk/browser_titlebar.h (working copy)
@@ -95,6 +95,9 @@
// 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 @@
// 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 @@
// The context menu.
scoped_ptr<MenuGtk> context_menu_;
+ // The favicon menu.
+ scoped_ptr<MenuGtk> favicon_menu_;
+
// The throbber used when the window is in app mode or popup window mode.
Throbber throbber_;
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_titlebar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698