| 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // Called by WmNewDisplayAdded(). | 257 // Called by WmNewDisplayAdded(). |
| 258 void WmNewDisplayAddedImpl(const display::Display& display, | 258 void WmNewDisplayAddedImpl(const display::Display& display, |
| 259 mojom::WindowDataPtr root_data, | 259 mojom::WindowDataPtr root_data, |
| 260 bool parent_drawn); | 260 bool parent_drawn); |
| 261 | 261 |
| 262 void OnReceivedCursorLocationMemory(mojo::ScopedSharedBufferHandle handle); | 262 void OnReceivedCursorLocationMemory(mojo::ScopedSharedBufferHandle handle); |
| 263 | 263 |
| 264 // Callback passed from WmPerformMoveLoop(). | 264 // Callback passed from WmPerformMoveLoop(). |
| 265 void OnWmMoveLoopCompleted(uint32_t change_id, bool completed); | 265 void OnWmMoveLoopCompleted(uint32_t change_id, bool completed); |
| 266 | 266 |
| 267 // Notifies the delegate of an |event| matching an event observer. |target| |
| 268 // may be null if the event did not hit a window owned by this client. |
| 269 void SendToEventObserver(const ui::Event& event, Window* target); |
| 270 |
| 267 // Overridden from WindowTreeClient: | 271 // Overridden from WindowTreeClient: |
| 268 void OnEmbed(ClientSpecificId client_id, | 272 void OnEmbed(ClientSpecificId client_id, |
| 269 mojom::WindowDataPtr root, | 273 mojom::WindowDataPtr root, |
| 270 mojom::WindowTreePtr tree, | 274 mojom::WindowTreePtr tree, |
| 271 int64_t display_id, | 275 int64_t display_id, |
| 272 Id focused_window_id, | 276 Id focused_window_id, |
| 273 bool drawn) override; | 277 bool drawn) override; |
| 274 void OnEmbeddedAppDisconnected(Id window_id) override; | 278 void OnEmbeddedAppDisconnected(Id window_id) override; |
| 275 void OnUnembed(Id window_id) override; | 279 void OnUnembed(Id window_id) override; |
| 276 void OnLostCapture(Id window_id) override; | 280 void OnLostCapture(Id window_id) override; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 base::Callback<void(bool)> on_current_move_finished_; | 435 base::Callback<void(bool)> on_current_move_finished_; |
| 432 | 436 |
| 433 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 437 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 434 | 438 |
| 435 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 439 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 436 }; | 440 }; |
| 437 | 441 |
| 438 } // namespace ui | 442 } // namespace ui |
| 439 | 443 |
| 440 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 444 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |