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

Unified Diff: ui/views/widget/widget.h

Issue 23533030: rAc: Enforce a 3 second grace period for generated card bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index d8a32001a3b120cef3dda2d75e09dc611afd994d..1a7733f762412e2d595f2dd055aa9b96eccf726d 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -631,7 +631,9 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
}
// Sets capture to the specified view. This makes it so that all mouse, touch
- // and gesture events go to |view|.
+ // and gesture events go to |view|. |view| may be NULL, in which case the
+ // widget will still capture events but they will be handled by the view
+ // that would normally handle them.
void SetCapture(View* view);
// Releases capture.
@@ -852,6 +854,10 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
bool last_mouse_event_was_move_;
gfx::Point last_mouse_event_position_;
+ // True if event capture was set via SetCapture(). Reset to false when
+ // ReleaseCapture() is invoked.
+ bool capture_explicitly_set_;
+
// See description in GetRootLayers().
std::vector<ui::Layer*> root_layers_;

Powered by Google App Engine
This is Rietveld 408576698