| 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_TREE_CLIENT_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // Windows are initially hidden, use SetVisible(true) to show. | 196 // Windows are initially hidden, use SetVisible(true) to show. |
| 197 Window* NewWindow() { return NewWindow(nullptr); } | 197 Window* NewWindow() { return NewWindow(nullptr); } |
| 198 Window* NewWindow( | 198 Window* NewWindow( |
| 199 const std::map<std::string, std::vector<uint8_t>>* properties); | 199 const std::map<std::string, std::vector<uint8_t>>* properties); |
| 200 Window* NewTopLevelWindow( | 200 Window* NewTopLevelWindow( |
| 201 const std::map<std::string, std::vector<uint8_t>>* properties); | 201 const std::map<std::string, std::vector<uint8_t>>* properties); |
| 202 | 202 |
| 203 void AddObserver(WindowTreeClientObserver* observer); | 203 void AddObserver(WindowTreeClientObserver* observer); |
| 204 void RemoveObserver(WindowTreeClientObserver* observer); | 204 void RemoveObserver(WindowTreeClientObserver* observer); |
| 205 | 205 |
| 206 void SetAcceptEvents(Id window_id, bool accept_events); |
| 207 |
| 206 #if !defined(NDEBUG) | 208 #if !defined(NDEBUG) |
| 207 std::string GetDebugWindowHierarchy() const; | 209 std::string GetDebugWindowHierarchy() const; |
| 208 void BuildDebugInfo(const std::string& depth, | 210 void BuildDebugInfo(const std::string& depth, |
| 209 Window* window, | 211 Window* window, |
| 210 std::string* result) const; | 212 std::string* result) const; |
| 211 #endif | 213 #endif |
| 212 | 214 |
| 213 private: | 215 private: |
| 214 friend class WindowTreeClientPrivate; | 216 friend class WindowTreeClientPrivate; |
| 215 | 217 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 base::Callback<void(bool)> on_current_move_finished_; | 429 base::Callback<void(bool)> on_current_move_finished_; |
| 428 | 430 |
| 429 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 431 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 430 | 432 |
| 431 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 433 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 432 }; | 434 }; |
| 433 | 435 |
| 434 } // namespace ui | 436 } // namespace ui |
| 435 | 437 |
| 436 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 438 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |