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

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 most TODOs and sync. 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
Index: views/widget/widget_gtk.cc
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index 1c3d5411e9d6e7c062b145764437aae8e58f5b89..ddcbe0c2eebe49ff3c4e5e228e299d2394521035 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -1272,7 +1272,7 @@ void WidgetGtk::HandleXGrabBroke() {
void WidgetGtk::HandleGtkGrabBroke() {
if (is_mouse_down_)
- GetRootView()->ProcessMouseDragCanceled();
+ GetRootView()->OnMouseCaptureLost();
is_mouse_down_ = false;
}
@@ -1343,7 +1343,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) {

Powered by Google App Engine
This is Rietveld 408576698