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

Unified Diff: chrome/browser/ui/gtk/menu_gtk.cc

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make this patch applicable to the latest trunk Created 9 years, 6 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 | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/menu_gtk.cc
diff --git a/chrome/browser/ui/gtk/menu_gtk.cc b/chrome/browser/ui/gtk/menu_gtk.cc
index d1205792c50a9ba6501c316b28c5fac31caaa5c8..838023ee5993a5811eb2a861bec7caf1a5ed7f3d 100644
--- a/chrome/browser/ui/gtk/menu_gtk.cc
+++ b/chrome/browser/ui/gtk/menu_gtk.cc
@@ -20,7 +20,7 @@
#include "ui/base/models/button_menu_item_model.h"
#include "ui/base/models/menu_model.h"
#include "ui/gfx/gtk_util.h"
-#include "webkit/glue/window_open_disposition.h"
+#include "views/events/event.h"
bool MenuGtk::block_activation_ = false;
@@ -707,8 +707,8 @@ void MenuGtk::ExecuteCommand(ui::MenuModel* model, int id) {
GdkEvent* event = gtk_get_current_event();
if (event && event->type == GDK_BUTTON_RELEASE) {
- model->ActivatedAtWithDisposition(
- id, event_utils::DispositionFromEventFlags(event->button.state));
+ int flags = event_utils::GetEventFlagsFromGdkState(event->button.state);
+ model->ActivatedAtWithFlags(id, flags);
} else {
model->ActivatedAt(id);
}
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698