| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 ServerWindow(ServerWindowDelegate* delegate, const WindowId& id); | 50 ServerWindow(ServerWindowDelegate* delegate, const WindowId& id); |
| 51 ServerWindow(ServerWindowDelegate* delegate, | 51 ServerWindow(ServerWindowDelegate* delegate, |
| 52 const WindowId& id, | 52 const WindowId& id, |
| 53 const Properties& properties); | 53 const Properties& properties); |
| 54 ~ServerWindow(); | 54 ~ServerWindow(); |
| 55 | 55 |
| 56 void AddObserver(ServerWindowObserver* observer); | 56 void AddObserver(ServerWindowObserver* observer); |
| 57 void RemoveObserver(ServerWindowObserver* observer); | 57 void RemoveObserver(ServerWindowObserver* observer); |
| 58 bool HasObserver(ServerWindowObserver* observer); | 58 bool HasObserver(ServerWindowObserver* observer); |
| 59 | 59 |
| 60 // Creates a new surface of the specified type, replacing the existing. | 60 // Creates a new CompositorFrameSink of the specified type, replacing the |
| 61 // existing. |
| 62 // TODO(fsamuel): We should not be passing in |gpu_memory_buffer_manager| and |
| 63 // |context_provider|. The window server should not know anything about them. |
| 64 // Instead, they should be a CompositorFrameSink service-side implementation |
| 65 // detail. |
| 61 void CreateCompositorFrameSink( | 66 void CreateCompositorFrameSink( |
| 62 mojom::CompositorFrameSinkType compositor_frame_sink_type, | 67 mojom::CompositorFrameSinkType compositor_frame_sink_type, |
| 68 gfx::AcceleratedWidget widget, |
| 69 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 70 scoped_refptr<SurfacesContextProvider> context_provider, |
| 63 cc::mojom::MojoCompositorFrameSinkRequest request, | 71 cc::mojom::MojoCompositorFrameSinkRequest request, |
| 64 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 72 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 65 | 73 |
| 66 const WindowId& id() const { return id_; } | 74 const WindowId& id() const { return id_; } |
| 67 | 75 |
| 68 void Add(ServerWindow* child); | 76 void Add(ServerWindow* child); |
| 69 void Remove(ServerWindow* child); | 77 void Remove(ServerWindow* child); |
| 70 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); | 78 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); |
| 71 void StackChildAtBottom(ServerWindow* child); | 79 void StackChildAtBottom(ServerWindow* child); |
| 72 void StackChildAtTop(ServerWindow* child); | 80 void StackChildAtTop(ServerWindow* child); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 262 |
| 255 base::ObserverList<ServerWindowObserver> observers_; | 263 base::ObserverList<ServerWindowObserver> observers_; |
| 256 | 264 |
| 257 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 265 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
| 258 }; | 266 }; |
| 259 | 267 |
| 260 } // namespace ws | 268 } // namespace ws |
| 261 } // namespace ui | 269 } // namespace ui |
| 262 | 270 |
| 263 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ | 271 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ |
| OLD | NEW |