| 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_PUBLIC_CPP_WINDOW_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 void LocalSetVisible(bool visible); | 307 void LocalSetVisible(bool visible); |
| 308 void LocalSetOpacity(float opacity); | 308 void LocalSetOpacity(float opacity); |
| 309 void LocalSetPredefinedCursor(mojom::Cursor cursor_id); | 309 void LocalSetPredefinedCursor(mojom::Cursor cursor_id); |
| 310 void LocalSetSharedProperty(const std::string& name, | 310 void LocalSetSharedProperty(const std::string& name, |
| 311 const std::vector<uint8_t>* data); | 311 const std::vector<uint8_t>* data); |
| 312 | 312 |
| 313 // Notifies this winodw that its stacking position has changed. | 313 // Notifies this winodw that its stacking position has changed. |
| 314 void NotifyWindowStackingChanged(); | 314 void NotifyWindowStackingChanged(); |
| 315 // Methods implementing visibility change notifications. See WindowObserver | 315 // Methods implementing visibility change notifications. See WindowObserver |
| 316 // for more details. | 316 // for more details. |
| 317 void NotifyWindowVisibilityChanged(Window* target); | 317 void NotifyWindowVisibilityChanged(Window* target, bool visible); |
| 318 // Notifies this window's observers. Returns false if |this| was deleted | 318 // Notifies this window's observers. Returns false if |this| was deleted |
| 319 // during the call (by an observer), otherwise true. | 319 // during the call (by an observer), otherwise true. |
| 320 bool NotifyWindowVisibilityChangedAtReceiver(Window* target); | 320 bool NotifyWindowVisibilityChangedAtReceiver(Window* target, bool visible); |
| 321 // Notifies this window and its child hierarchy. Returns false if |this| was | 321 // Notifies this window and its child hierarchy. Returns false if |this| was |
| 322 // deleted during the call (by an observer), otherwise true. | 322 // deleted during the call (by an observer), otherwise true. |
| 323 bool NotifyWindowVisibilityChangedDown(Window* target); | 323 bool NotifyWindowVisibilityChangedDown(Window* target, bool visible); |
| 324 // Notifies this window and its parent hierarchy. | 324 // Notifies this window and its parent hierarchy. |
| 325 void NotifyWindowVisibilityChangedUp(Window* target); | 325 void NotifyWindowVisibilityChangedUp(Window* target, bool visible); |
| 326 | 326 |
| 327 // Returns true if embed is allowed for this node. If embedding is allowed all | 327 // Returns true if embed is allowed for this node. If embedding is allowed all |
| 328 // the children are removed. | 328 // the children are removed. |
| 329 bool PrepareForEmbed(); | 329 bool PrepareForEmbed(); |
| 330 | 330 |
| 331 void RemoveTransientWindowImpl(Window* child); | 331 void RemoveTransientWindowImpl(Window* child); |
| 332 static void ReorderWithoutNotification(Window* window, | 332 static void ReorderWithoutNotification(Window* window, |
| 333 Window* relative, | 333 Window* relative, |
| 334 mojom::OrderDirection direction); | 334 mojom::OrderDirection direction); |
| 335 static bool ReorderImpl(Window* window, | 335 static bool ReorderImpl(Window* window, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 }; | 391 }; |
| 392 | 392 |
| 393 std::map<const void*, Value> prop_map_; | 393 std::map<const void*, Value> prop_map_; |
| 394 | 394 |
| 395 DISALLOW_COPY_AND_ASSIGN(Window); | 395 DISALLOW_COPY_AND_ASSIGN(Window); |
| 396 }; | 396 }; |
| 397 | 397 |
| 398 } // namespace ui | 398 } // namespace ui |
| 399 | 399 |
| 400 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 400 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| OLD | NEW |