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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // Windows are initially hidden, use SetVisible(true) to show. | 185 // Windows are initially hidden, use SetVisible(true) to show. |
186 Window* NewWindow() { return NewWindow(nullptr); } | 186 Window* NewWindow() { return NewWindow(nullptr); } |
187 Window* NewWindow( | 187 Window* NewWindow( |
188 const std::map<std::string, std::vector<uint8_t>>* properties); | 188 const std::map<std::string, std::vector<uint8_t>>* properties); |
189 Window* NewTopLevelWindow( | 189 Window* NewTopLevelWindow( |
190 const std::map<std::string, std::vector<uint8_t>>* properties); | 190 const std::map<std::string, std::vector<uint8_t>>* properties); |
191 | 191 |
192 void AddObserver(WindowTreeClientObserver* observer); | 192 void AddObserver(WindowTreeClientObserver* observer); |
193 void RemoveObserver(WindowTreeClientObserver* observer); | 193 void RemoveObserver(WindowTreeClientObserver* observer); |
194 | 194 |
| 195 void SetAcceptEvents(Id window_id, bool accept_events); |
| 196 |
195 #if !defined(NDEBUG) | 197 #if !defined(NDEBUG) |
196 std::string GetDebugWindowHierarchy() const; | 198 std::string GetDebugWindowHierarchy() const; |
197 void BuildDebugInfo(const std::string& depth, | 199 void BuildDebugInfo(const std::string& depth, |
198 Window* window, | 200 Window* window, |
199 std::string* result) const; | 201 std::string* result) const; |
200 #endif | 202 #endif |
201 | 203 |
202 private: | 204 private: |
203 friend class WindowTreeClientPrivate; | 205 friend class WindowTreeClientPrivate; |
204 | 206 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 uint32_t event_observer_id_ = 0u; | 399 uint32_t event_observer_id_ = 0u; |
398 | 400 |
399 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 401 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
400 | 402 |
401 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 403 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
402 }; | 404 }; |
403 | 405 |
404 } // namespace ui | 406 } // namespace ui |
405 | 407 |
406 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 408 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |