| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 void Embed(Id window_id, | 123 void Embed(Id window_id, |
| 124 mojom::WindowTreeClientPtr client, | 124 mojom::WindowTreeClientPtr client, |
| 125 uint32_t flags, | 125 uint32_t flags, |
| 126 const mojom::WindowTree::EmbedCallback& callback); | 126 const mojom::WindowTree::EmbedCallback& callback); |
| 127 | 127 |
| 128 void RequestClose(Window* window); | 128 void RequestClose(Window* window); |
| 129 | 129 |
| 130 void AttachCompositorFrameSink( | 130 void AttachCompositorFrameSink( |
| 131 Id window_id, | 131 Id window_id, |
| 132 mojom::CompositorFrameSinkType type, | |
| 133 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink, | 132 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink, |
| 134 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 133 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 135 | 134 |
| 136 // Sets the input capture to |window| without notifying the server. | 135 // Sets the input capture to |window| without notifying the server. |
| 137 void LocalSetCapture(Window* window); | 136 void LocalSetCapture(Window* window); |
| 138 // Sets focus to |window| without notifying the server. | 137 // Sets focus to |window| without notifying the server. |
| 139 void LocalSetFocus(Window* window); | 138 void LocalSetFocus(Window* window); |
| 140 | 139 |
| 141 // Start/stop tracking windows. While tracked, they can be retrieved via | 140 // Start/stop tracking windows. While tracked, they can be retrieved via |
| 142 // WindowTreeClient::GetWindowById. | 141 // WindowTreeClient::GetWindowById. |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 std::set<Id> drag_entered_windows_; | 484 std::set<Id> drag_entered_windows_; |
| 486 | 485 |
| 487 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 486 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 488 | 487 |
| 489 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 488 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 490 }; | 489 }; |
| 491 | 490 |
| 492 } // namespace ui | 491 } // namespace ui |
| 493 | 492 |
| 494 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 493 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |