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

Unified Diff: views/window/window_gtk.cc

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 9 years, 9 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 | « views/widget/widget_win.cc ('k') | views/window/window_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/window_gtk.cc
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index a2fb38ccb0cb30dedcd33cd5a14456305dbe63f4..1e5f48a18abb4b7cbf9c391f18eb1dd9ae97b114 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -124,7 +124,7 @@ gboolean WindowGtk::OnButtonPress(GtkWidget* widget, GdkEventButton* event) {
switch (hittest_code) {
case HTCAPTION: {
MouseEvent mouse_pressed(ui::ET_MOUSE_PRESSED, event->x, event->y,
- WidgetGtk::GetFlagsForEventButton(*event));
+ Event::GetFlagsFromGdkEvent(reinterpret_cast<GdkEvent*>(event)));
// Start dragging if the mouse event is a single click and *not* a right
// click. If it is a right click, then pass it through to
// WidgetGtk::OnButtonPress so that View class can show ContextMenu upon a
« no previous file with comments | « views/widget/widget_win.cc ('k') | views/window/window_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698