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

Unified Diff: ui/views/view.h

Issue 22934007: linux_aura: Fix crash on drags from the omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index 2ffc6204be76c4a1e29e37c198d8a3696f7695f7..337012c053e51577a250b0161823ee86b9bc7226 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1540,6 +1540,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
DragController* drag_controller_;
+ // True while we're performing DoDrag(). On X11, we can have multiple mouse
+ // move events in our event queue when we start a drag, so we need a way to
+ // ignore events after the first one.
+ bool currently_dragging_;
+
// Input --------------------------------------------------------------------
scoped_ptr<internal::PostEventDispatchHandler> post_dispatch_handler_;
« no previous file with comments | « no previous file | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698