| 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_;
|
|
|
|
|