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

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

Issue 155164: Give page/app menu native menu bar feel.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_toolbar_gtk.h
===================================================================
--- chrome/browser/gtk/browser_toolbar_gtk.h (revision 20047)
+++ chrome/browser/gtk/browser_toolbar_gtk.h (working copy)
@@ -109,6 +109,10 @@
// Connect signals for dragging a url onto the home button.
void SetUpDragForHomeButton();
+ // Helper for the PageAppMenu event handlers. Pops down the currently active
+ // meun and pops up the other menu.
+ void ChangeActiveMenu(GtkWidget* active_menu, guint timestamp);
+
// Gtk callback for the "expose-event" signal.
static gboolean OnToolbarExpose(GtkWidget* widget, GdkEventExpose* e,
BrowserToolbarGtk* toolbar);
@@ -133,6 +137,15 @@
guint info, guint time,
BrowserToolbarGtk* toolbar);
+ // These event handlers are used to fake menu-bar behavior in the page and
+ // app menus.
+ static gboolean OnPageAppMenuMouseMotion(GtkWidget* widget,
+ GdkEventMotion* event,
+ BrowserToolbarGtk* toolbar);
+ static void OnPageAppMenuMoveCurrent(GtkWidget* widget,
+ GtkMenuDirectionType dir,
+ BrowserToolbarGtk* toolbar);
+
// Initialize the background NineBox.
void InitNineBox();
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_toolbar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698