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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 bool visible, | 121 bool visible, |
122 mojo::TextInputStatePtr state); | 122 mojo::TextInputStatePtr state); |
123 | 123 |
124 void Embed(Id window_id, | 124 void Embed(Id window_id, |
125 mojom::WindowTreeClientPtr client, | 125 mojom::WindowTreeClientPtr client, |
126 uint32_t flags, | 126 uint32_t flags, |
127 const mojom::WindowTree::EmbedCallback& callback); | 127 const mojom::WindowTree::EmbedCallback& callback); |
128 | 128 |
129 void RequestClose(Window* window); | 129 void RequestClose(Window* window); |
130 | 130 |
131 void AttachSurface( | 131 void AttachCompositorFrameSink( |
132 Id window_id, | 132 Id window_id, |
133 mojom::SurfaceType type, | 133 mojom::CompositorFrameSinkType type, |
134 mojo::InterfaceRequest<cc::mojom::MojoCompositorFrameSink> surface, | 134 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink, |
135 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 135 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
136 | 136 |
137 void OnWindowSurfaceDetached(Id window_id, | 137 void OnWindowSurfaceDetached(Id window_id, |
138 const cc::SurfaceSequence& sequence); | 138 const cc::SurfaceSequence& sequence); |
139 | 139 |
140 // Sets the input capture to |window| without notifying the server. | 140 // Sets the input capture to |window| without notifying the server. |
141 void LocalSetCapture(Window* window); | 141 void LocalSetCapture(Window* window); |
142 // Sets focus to |window| without notifying the server. | 142 // Sets focus to |window| without notifying the server. |
143 void LocalSetFocus(Window* window); | 143 void LocalSetFocus(Window* window); |
144 | 144 |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 std::set<Id> drag_entered_windows_; | 487 std::set<Id> drag_entered_windows_; |
488 | 488 |
489 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 489 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
490 | 490 |
491 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 491 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
492 }; | 492 }; |
493 | 493 |
494 } // namespace ui | 494 } // namespace ui |
495 | 495 |
496 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 496 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |