| 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_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // Cursors | 107 // Cursors |
| 108 mojom::Cursor predefined_cursor() const { return cursor_id_; } | 108 mojom::Cursor predefined_cursor() const { return cursor_id_; } |
| 109 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); | 109 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); |
| 110 | 110 |
| 111 // A Window is drawn if the Window and all its ancestors are visible and the | 111 // A Window is drawn if the Window and all its ancestors are visible and the |
| 112 // Window is attached to the root. | 112 // Window is attached to the root. |
| 113 bool IsDrawn() const; | 113 bool IsDrawn() const; |
| 114 | 114 |
| 115 std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink( | 115 std::unique_ptr<WindowCompositorFrameSink> RequestCompositorFrameSink( |
| 116 mojom::CompositorFrameSinkType type, | |
| 117 scoped_refptr<cc::ContextProvider> context_provider, | 116 scoped_refptr<cc::ContextProvider> context_provider, |
| 118 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); | 117 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); |
| 119 | 118 |
| 120 void AttachCompositorFrameSink( | 119 void AttachCompositorFrameSink( |
| 121 mojom::CompositorFrameSinkType type, | |
| 122 std::unique_ptr<WindowCompositorFrameSinkBinding> | 120 std::unique_ptr<WindowCompositorFrameSinkBinding> |
| 123 compositor_frame_sink_binding); | 121 compositor_frame_sink_binding); |
| 124 | 122 |
| 125 // The template-ized versions of the following methods rely on the presence | 123 // The template-ized versions of the following methods rely on the presence |
| 126 // of a mojo::TypeConverter<const std::vector<uint8_t>, T>. | 124 // of a mojo::TypeConverter<const std::vector<uint8_t>, T>. |
| 127 // Sets a shared property on the window which is sent to the window server and | 125 // Sets a shared property on the window which is sent to the window server and |
| 128 // shared with other clients that can view this window. | 126 // shared with other clients that can view this window. |
| 129 template <typename T> | 127 template <typename T> |
| 130 void SetSharedProperty(const std::string& name, const T& data); | 128 void SetSharedProperty(const std::string& name, const T& data); |
| 131 // Gets a shared property set on the window. The property must exist. Call | 129 // Gets a shared property set on the window. The property must exist. Call |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 std::map<const void*, Value> prop_map_; | 398 std::map<const void*, Value> prop_map_; |
| 401 | 399 |
| 402 cc::SurfaceInfo surface_info_; | 400 cc::SurfaceInfo surface_info_; |
| 403 | 401 |
| 404 DISALLOW_COPY_AND_ASSIGN(Window); | 402 DISALLOW_COPY_AND_ASSIGN(Window); |
| 405 }; | 403 }; |
| 406 | 404 |
| 407 } // namespace ui | 405 } // namespace ui |
| 408 | 406 |
| 409 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ | 407 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_H_ |
| OLD | NEW |