Chromium Code Reviews| Index: ui/aura/window.h |
| diff --git a/ui/aura/window.h b/ui/aura/window.h |
| index a97194c0b7a3869b099aa7a318001fae67cb82b3..509dacb3a1d90be6cbb4c57bb30921a0d602790b 100644 |
| --- a/ui/aura/window.h |
| +++ b/ui/aura/window.h |
| @@ -220,6 +220,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate { |
| // Returns true if the Window can be focused. |
| virtual bool CanFocus() const; |
| + // Returns true if the Window can receive events. |
| + virtual bool CanReceiveEvents() const; |
| + |
| // Returns the FocusManager for the Window, which may be attached to a parent |
| // Window. Can return NULL if the Window has no FocusManager. |
| virtual internal::FocusManager* GetFocusManager(); |
| @@ -250,6 +253,10 @@ class AURA_EXPORT Window : public ui::LayerDelegate { |
| void* GetProperty(const char* name) const; |
| int GetIntProperty(const char* name) const; |
| + // This window is currently stopping event propagation for any windows behind |
|
sky
2012/01/12 21:11:36
Returns true if this window ...
oshima
2012/01/12 21:32:50
Done.
|
| + // it in the z-order. |
| + bool StopsEventPropagation() const; |
| + |
| protected: |
| // Returns the root window or NULL if we aren't yet attached to the root |
| // window. |
| @@ -272,10 +279,6 @@ class AURA_EXPORT Window : public ui::LayerDelegate { |
| // Schedules a paint for the Window's entire bounds. |
| void SchedulePaint(); |
| - // This window is currently stopping event propagation for any windows behind |
| - // it in the z-order. |
| - bool StopsEventPropagation() const; |
| - |
| // Gets a Window (either this one or a subwindow) containing |local_point|. |
| // If |return_tightest| is true, returns the tightest-containing (i.e. |
| // furthest down the hierarchy) Window containing the point; otherwise, |
| @@ -298,6 +301,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate { |
| // Updates the layer name with a name based on the window's name and id. |
| void UpdateLayerName(const std::string& name); |
| + // Returns true if the Window is behind a window that stops event propagation. |
|
sky
2012/01/12 21:11:36
'the Window' -> 'this Window'
oshima
2012/01/12 21:32:50
Done.
|
| + bool IsBehindStopEventsWindow() const; |
| + |
| client::WindowType type_; |
| WindowDelegate* delegate_; |