OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_H_ |
6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ | 6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Adding transient child fails if the child window is modal to system. | 123 // Adding transient child fails if the child window is modal to system. |
124 bool AddTransientWindow(ServerWindow* child); | 124 bool AddTransientWindow(ServerWindow* child); |
125 void RemoveTransientWindow(ServerWindow* child); | 125 void RemoveTransientWindow(ServerWindow* child); |
126 | 126 |
127 ServerWindow* transient_parent() { return transient_parent_; } | 127 ServerWindow* transient_parent() { return transient_parent_; } |
128 const ServerWindow* transient_parent() const { return transient_parent_; } | 128 const ServerWindow* transient_parent() const { return transient_parent_; } |
129 | 129 |
130 const Windows& transient_children() const { return transient_children_; } | 130 const Windows& transient_children() const { return transient_children_; } |
131 | 131 |
132 bool is_modal() const { return is_modal_; } | 132 bool is_modal() const { return is_modal_; } |
133 void SetModal(); | 133 void SetModal(bool is_modal); |
134 | 134 |
135 // Returns true if this contains |window| or is |window|. | 135 // Returns true if this contains |window| or is |window|. |
136 bool Contains(const ServerWindow* window) const; | 136 bool Contains(const ServerWindow* window) const; |
137 | 137 |
138 // Returns the visibility requested by this window. IsDrawn() returns whether | 138 // Returns the visibility requested by this window. IsDrawn() returns whether |
139 // the window is actually visible on screen. | 139 // the window is actually visible on screen. |
140 bool visible() const { return visible_; } | 140 bool visible() const { return visible_; } |
141 void SetVisible(bool value); | 141 void SetVisible(bool value); |
142 | 142 |
143 float opacity() const { return opacity_; } | 143 float opacity() const { return opacity_; } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 base::ObserverList<ServerWindowObserver> observers_; | 273 base::ObserverList<ServerWindowObserver> observers_; |
274 | 274 |
275 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 275 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
276 }; | 276 }; |
277 | 277 |
278 } // namespace ws | 278 } // namespace ws |
279 } // namespace ui | 279 } // namespace ui |
280 | 280 |
281 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ | 281 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ |
OLD | NEW |