| 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 COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 ConnectionSpecificId connection_id, | 160 ConnectionSpecificId connection_id, |
| 161 mojom::WindowDataPtr root_data, | 161 mojom::WindowDataPtr root_data, |
| 162 Id focused_window_id, | 162 Id focused_window_id, |
| 163 bool drawn); | 163 bool drawn); |
| 164 | 164 |
| 165 // Overridden from WindowTreeConnection: | 165 // Overridden from WindowTreeConnection: |
| 166 void SetDeleteOnNoRoots(bool value) override; | 166 void SetDeleteOnNoRoots(bool value) override; |
| 167 const std::set<Window*>& GetRoots() override; | 167 const std::set<Window*>& GetRoots() override; |
| 168 Window* GetFocusedWindow() override; | 168 Window* GetFocusedWindow() override; |
| 169 void ClearFocus() override; | 169 void ClearFocus() override; |
| 170 void SetEventObserver(mojom::EventMatcherPtr matcher) override; |
| 170 Window* NewWindow(const Window::SharedProperties* properties) override; | 171 Window* NewWindow(const Window::SharedProperties* properties) override; |
| 171 Window* NewTopLevelWindow( | 172 Window* NewTopLevelWindow( |
| 172 const Window::SharedProperties* properties) override; | 173 const Window::SharedProperties* properties) override; |
| 173 ConnectionSpecificId GetConnectionId() override; | 174 ConnectionSpecificId GetConnectionId() override; |
| 174 void AddObserver(WindowTreeConnectionObserver* observer) override; | 175 void AddObserver(WindowTreeConnectionObserver* observer) override; |
| 175 void RemoveObserver(WindowTreeConnectionObserver* observer) override; | 176 void RemoveObserver(WindowTreeConnectionObserver* observer) override; |
| 176 | 177 |
| 177 // Overridden from WindowTreeClient: | 178 // Overridden from WindowTreeClient: |
| 178 void OnEmbed(ConnectionSpecificId connection_id, | 179 void OnEmbed(ConnectionSpecificId connection_id, |
| 179 mojom::WindowDataPtr root, | 180 mojom::WindowDataPtr root, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 bool delete_on_no_roots_; | 293 bool delete_on_no_roots_; |
| 293 | 294 |
| 294 bool in_destructor_; | 295 bool in_destructor_; |
| 295 | 296 |
| 296 base::ObserverList<WindowTreeConnectionObserver> observers_; | 297 base::ObserverList<WindowTreeConnectionObserver> observers_; |
| 297 | 298 |
| 298 std::unique_ptr<mojo::AssociatedBinding<mojom::WindowManager>> | 299 std::unique_ptr<mojo::AssociatedBinding<mojom::WindowManager>> |
| 299 window_manager_internal_; | 300 window_manager_internal_; |
| 300 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; | 301 mojom::WindowManagerClientAssociatedPtr window_manager_internal_client_; |
| 301 | 302 |
| 303 bool has_event_observer_ = false; |
| 304 |
| 305 // Monotonically increasing ID for event observers. |
| 306 uint32_t event_observer_id_ = 0u; |
| 307 |
| 302 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 308 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
| 303 }; | 309 }; |
| 304 | 310 |
| 305 } // namespace mus | 311 } // namespace mus |
| 306 | 312 |
| 307 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 313 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| OLD | NEW |