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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "mojo/public/cpp/bindings/binding.h" | 17 #include "mojo/public/cpp/bindings/binding.h" |
18 #include "services/ui/public/interfaces/window_tree.mojom.h" | 18 #include "services/ui/public/interfaces/window_tree.mojom.h" |
19 #include "services/ui/surfaces/surfaces_context_provider.h" | |
20 #include "services/ui/ws/ids.h" | 19 #include "services/ui/ws/ids.h" |
21 #include "ui/gfx/geometry/insets.h" | 20 #include "ui/gfx/geometry/insets.h" |
22 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
23 #include "ui/gfx/geometry/vector2d.h" | 22 #include "ui/gfx/geometry/vector2d.h" |
24 #include "ui/gfx/transform.h" | 23 #include "ui/gfx/transform.h" |
25 #include "ui/platform_window/text_input_state.h" | 24 #include "ui/platform_window/text_input_state.h" |
26 | 25 |
27 namespace gpu { | 26 namespace gpu { |
28 class GpuMemoryBufferManager; | 27 class GpuMemoryBufferManager; |
29 } | 28 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 62 |
64 // Creates a new CompositorFrameSink of the specified type, replacing the | 63 // Creates a new CompositorFrameSink of the specified type, replacing the |
65 // existing. | 64 // existing. |
66 // TODO(fsamuel): We should not be passing in |gpu_memory_buffer_manager| and | 65 // TODO(fsamuel): We should not be passing in |gpu_memory_buffer_manager| and |
67 // |context_provider|. The window server should not know anything about them. | 66 // |context_provider|. The window server should not know anything about them. |
68 // Instead, they should be a CompositorFrameSink service-side implementation | 67 // Instead, they should be a CompositorFrameSink service-side implementation |
69 // detail. | 68 // detail. |
70 void CreateCompositorFrameSink( | 69 void CreateCompositorFrameSink( |
71 mojom::CompositorFrameSinkType compositor_frame_sink_type, | 70 mojom::CompositorFrameSinkType compositor_frame_sink_type, |
72 gfx::AcceleratedWidget widget, | 71 gfx::AcceleratedWidget widget, |
73 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | |
74 scoped_refptr<SurfacesContextProvider> context_provider, | |
75 cc::mojom::MojoCompositorFrameSinkRequest request, | 72 cc::mojom::MojoCompositorFrameSinkRequest request, |
76 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 73 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
77 | 74 |
78 const WindowId& id() const { return id_; } | 75 const WindowId& id() const { return id_; } |
79 | 76 |
80 void Add(ServerWindow* child); | 77 void Add(ServerWindow* child); |
81 void Remove(ServerWindow* child); | 78 void Remove(ServerWindow* child); |
82 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); | 79 void Reorder(ServerWindow* relative, mojom::OrderDirection diretion); |
83 void StackChildAtBottom(ServerWindow* child); | 80 void StackChildAtBottom(ServerWindow* child); |
84 void StackChildAtTop(ServerWindow* child); | 81 void StackChildAtTop(ServerWindow* child); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 | 263 |
267 base::ObserverList<ServerWindowObserver> observers_; | 264 base::ObserverList<ServerWindowObserver> observers_; |
268 | 265 |
269 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 266 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
270 }; | 267 }; |
271 | 268 |
272 } // namespace ws | 269 } // namespace ws |
273 } // namespace ui | 270 } // namespace ui |
274 | 271 |
275 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ | 272 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ |
OLD | NEW |