diff options
Diffstat (limited to 'ui/aura/window.h')
-rw-r--r-- | ui/aura/window.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/ui/aura/window.h b/ui/aura/window.h index f642d7b..3b0cc34 100644 --- a/ui/aura/window.h +++ b/ui/aura/window.h @@ -292,18 +292,15 @@ class AURA_EXPORT Window : public ui::LayerDelegate, virtual internal::FocusManager* GetFocusManager(); virtual const internal::FocusManager* GetFocusManager() const; - // Sets the capture window to |window|, for events specified in - // |flags|. |flags| is ui::CaptureEventFlags. This does nothing if - // the window isn't showing (VISIBILITY_SHOWN), or isn't contained - // in a valid window hierarchy. - void SetCapture(unsigned int flags); + // Does a mouse capture on the window. This does nothing if the window isn't + // showing (VISIBILITY_SHOWN) or isn't contained in a valid window hierarchy. + void SetCapture(); - // Stop capturing all events (mouse and touch). + // Releases a mouse capture. void ReleaseCapture(); - // Returns true if there is a window capturing all event types - // specified by |flags|. |flags| is ui::CaptureEventFlags. - bool HasCapture(unsigned int flags); + // Returns true if this window has a mouse capture. + bool HasCapture(); // Suppresses painting window content by disgarding damaged rect and ignoring // new paint requests. |