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> |
| 11 #include <memory> |
11 #include <set> | 12 #include <set> |
12 #include <string> | 13 #include <string> |
13 #include <vector> | 14 #include <vector> |
14 | 15 |
15 #include "base/atomicops.h" | 16 #include "base/atomicops.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
19 #include "mojo/public/cpp/bindings/associated_binding.h" | 20 #include "mojo/public/cpp/bindings/associated_binding.h" |
20 #include "mojo/public/cpp/bindings/strong_binding.h" | 21 #include "mojo/public/cpp/bindings/strong_binding.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 void OnWindowFocused(Id focused_window_id) override; | 315 void OnWindowFocused(Id focused_window_id) override; |
315 void OnWindowPredefinedCursorChanged(Id window_id, | 316 void OnWindowPredefinedCursorChanged(Id window_id, |
316 mojom::Cursor cursor) override; | 317 mojom::Cursor cursor) override; |
317 void OnChangeCompleted(uint32_t change_id, bool success) override; | 318 void OnChangeCompleted(uint32_t change_id, bool success) override; |
318 void RequestClose(uint32_t window_id) override; | 319 void RequestClose(uint32_t window_id) override; |
319 void GetWindowManager( | 320 void GetWindowManager( |
320 mojo::AssociatedInterfaceRequest<WindowManager> internal) override; | 321 mojo::AssociatedInterfaceRequest<WindowManager> internal) override; |
321 | 322 |
322 // Overridden from WindowManager: | 323 // Overridden from WindowManager: |
323 void OnConnect(ClientSpecificId client_id) override; | 324 void OnConnect(ClientSpecificId client_id) override; |
324 void WmNewDisplayAdded(mojom::DisplayPtr display, | 325 void WmNewDisplayAdded(const display::Display& display, |
325 mojom::WindowDataPtr root_data, | 326 mojom::WindowDataPtr root_data, |
326 bool parent_drawn) override; | 327 bool parent_drawn) override; |
327 void WmSetBounds(uint32_t change_id, | 328 void WmSetBounds(uint32_t change_id, |
328 Id window_id, | 329 Id window_id, |
329 const gfx::Rect& transit_bounds) override; | 330 const gfx::Rect& transit_bounds) override; |
330 void WmSetProperty(uint32_t change_id, | 331 void WmSetProperty(uint32_t change_id, |
331 Id window_id, | 332 Id window_id, |
332 const mojo::String& name, | 333 const mojo::String& name, |
333 mojo::Array<uint8_t> transit_data) override; | 334 mojo::Array<uint8_t> transit_data) override; |
334 void WmCreateTopLevelWindow(uint32_t change_id, | 335 void WmCreateTopLevelWindow(uint32_t change_id, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 base::Callback<void(bool)> on_current_move_finished_; | 431 base::Callback<void(bool)> on_current_move_finished_; |
431 | 432 |
432 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 433 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
433 | 434 |
434 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 435 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
435 }; | 436 }; |
436 | 437 |
437 } // namespace ui | 438 } // namespace ui |
438 | 439 |
439 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 440 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |