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_WS_SERVER_WINDOW_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_H_ |
6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ | 6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void RemoveObserver(ServerWindowObserver* observer); | 58 void RemoveObserver(ServerWindowObserver* observer); |
59 bool HasObserver(ServerWindowObserver* observer); | 59 bool HasObserver(ServerWindowObserver* observer); |
60 | 60 |
61 // Creates a new CompositorFrameSink of the specified type, replacing the | 61 // Creates a new CompositorFrameSink of the specified type, replacing the |
62 // existing. | 62 // existing. |
63 void CreateDisplayCompositorFrameSink( | 63 void CreateDisplayCompositorFrameSink( |
64 gfx::AcceleratedWidget widget, | 64 gfx::AcceleratedWidget widget, |
65 cc::mojom::MojoCompositorFrameSinkRequest request, | 65 cc::mojom::MojoCompositorFrameSinkRequest request, |
66 cc::mojom::MojoCompositorFrameSinkClientPtr client, | 66 cc::mojom::MojoCompositorFrameSinkClientPtr client, |
67 cc::mojom::DisplayPrivateRequest display_private_request); | 67 cc::mojom::DisplayPrivateRequest display_private_request); |
| 68 |
68 void CreateOffscreenCompositorFrameSink( | 69 void CreateOffscreenCompositorFrameSink( |
69 mojom::CompositorFrameSinkType compositor_frame_sink_type, | |
70 cc::mojom::MojoCompositorFrameSinkRequest request, | 70 cc::mojom::MojoCompositorFrameSinkRequest request, |
71 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 71 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
72 | 72 |
73 const WindowId& id() const { return id_; } | 73 const WindowId& id() const { return id_; } |
74 | 74 |
75 void Add(ServerWindow* child); | 75 void Add(ServerWindow* child); |
76 void Remove(ServerWindow* child); | 76 void Remove(ServerWindow* child); |
77 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); | 77 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); |
78 void StackChildAtBottom(ServerWindow* child); | 78 void StackChildAtBottom(ServerWindow* child); |
79 void StackChildAtTop(ServerWindow* child); | 79 void StackChildAtTop(ServerWindow* child); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 267 |
268 base::ObserverList<ServerWindowObserver> observers_; | 268 base::ObserverList<ServerWindowObserver> observers_; |
269 | 269 |
270 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 270 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
271 }; | 271 }; |
272 | 272 |
273 } // namespace ws | 273 } // namespace ws |
274 } // namespace ui | 274 } // namespace ui |
275 | 275 |
276 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ | 276 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ |
OLD | NEW |