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

Unified Diff: views/widget/widget_gtk.cc

Issue 6685069: Disambiguate OnMouseCaptureLost from OnMouseReleased, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, fix tests, cleanup, etc. 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/root_view.cc ('k') | views/widget/widget_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget_gtk.cc
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index b2371f8fa5bf02a80585b9ee8c43ce71a00dd2cd..d8f074eae90227d01f1ab52ef4080db7460e1519 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -1279,7 +1279,7 @@ void WidgetGtk::HandleXGrabBroke() {
void WidgetGtk::HandleGtkGrabBroke() {
if (is_mouse_down_)
- GetRootView()->ProcessMouseDragCanceled();
+ GetRootView()->OnMouseCaptureLost();
is_mouse_down_ = false;
}
@@ -1350,7 +1350,7 @@ void WidgetGtk::ProcessMouseReleased(GdkEventButton* event) {
is_mouse_down_ = false;
// GTK generates a mouse release at the end of dnd. We need to ignore it.
if (!drag_data_)
- GetRootView()->OnMouseReleased(mouse_up, false);
+ GetRootView()->OnMouseReleased(mouse_up);
}
bool WidgetGtk::ProcessScroll(GdkEventScroll* event) {
« no previous file with comments | « views/widget/root_view.cc ('k') | views/widget/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698