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 SetCanAcceptEvents(Id window_id, bool can_accept_events); | |
sadrul
2016/07/12 19:44:19
Move above, close to SetCanFocus()
riajiang
2016/07/12 20:51:40
Done.
| |
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
429 base::Callback<void(bool)> on_current_move_finished_; | 431 base::Callback<void(bool)> on_current_move_finished_; |
430 | 432 |
431 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 433 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
432 | 434 |
433 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 435 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
434 }; | 436 }; |
435 | 437 |
436 } // namespace ui | 438 } // namespace ui |
437 | 439 |
438 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 440 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |