| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const WindowId& id, | 53 const WindowId& id, |
| 54 const Properties& properties); | 54 const Properties& properties); |
| 55 ~ServerWindow(); | 55 ~ServerWindow(); |
| 56 | 56 |
| 57 void AddObserver(ServerWindowObserver* observer); | 57 void AddObserver(ServerWindowObserver* observer); |
| 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 CreateRootCompositorFrameSink( |
| 64 gfx::AcceleratedWidget widget, | 64 gfx::AcceleratedWidget widget, |
| 65 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request, | 65 cc::mojom::MojoCompositorFrameSinkAssociatedRequest sink_request, |
| 66 cc::mojom::MojoCompositorFrameSinkClientPtr client, | 66 cc::mojom::MojoCompositorFrameSinkClientPtr client, |
| 67 cc::mojom::DisplayPrivateAssociatedRequest display_request); | 67 cc::mojom::DisplayPrivateAssociatedRequest display_request); |
| 68 | 68 |
| 69 void CreateOffscreenCompositorFrameSink( | 69 void CreateCompositorFrameSink( |
| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 base::ObserverList<ServerWindowObserver> observers_; | 273 base::ObserverList<ServerWindowObserver> observers_; |
| 274 | 274 |
| 275 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 275 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 } // namespace ws | 278 } // namespace ws |
| 279 } // namespace ui | 279 } // namespace ui |
| 280 | 280 |
| 281 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ | 281 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ |
| OLD | NEW |