Chromium Code Reviews| Index: components/mus/ws/server_window.h |
| diff --git a/components/mus/ws/server_window.h b/components/mus/ws/server_window.h |
| index 46a1b21b81a798ccc661821f08527a3adf336c5b..0c15490eab7a42e09a4b1bab38db52269104a005 100644 |
| --- a/components/mus/ws/server_window.h |
| +++ b/components/mus/ws/server_window.h |
| @@ -108,6 +108,16 @@ class ServerWindow { |
| const Windows& transient_children() const { return transient_children_; } |
| + bool is_modal() const { return is_modal_; } |
| + void SetAsModal(); |
|
sky
2016/03/09 16:33:56
SetModal.
mohsen
2016/03/09 18:32:51
Done. Also changed AccessPolicy::CanSetAsModal to
|
| + |
| + bool IsBlockedByModalWindow() const; |
| + const ServerWindow* GetModalTarget() const; |
|
sky
2016/03/09 16:33:56
Add description of GetModalTarget.
mohsen
2016/03/09 18:32:51
Done.
|
| + ServerWindow* GetModalTarget() { |
| + return const_cast<ServerWindow*>( |
| + static_cast<const ServerWindow*>(this)->GetModalTarget()); |
| + } |
| + |
| // Returns true if this contains |window| or is |window|. |
| bool Contains(const ServerWindow* window) const; |
| @@ -197,6 +207,7 @@ class ServerWindow { |
| ServerWindow* transient_parent_; |
| Windows transient_children_; |
| + bool is_modal_; |
| bool visible_; |
| gfx::Rect bounds_; |
| gfx::Insets client_area_; |