| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
| 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 Window* window() { return window_; } | 50 Window* window() { return window_; } |
| 51 const Window* window() const { return window_; } | 51 const Window* window() const { return window_; } |
| 52 | 52 |
| 53 void SetTextInputState(mojo::TextInputStatePtr state); | 53 void SetTextInputState(mojo::TextInputStatePtr state); |
| 54 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); | 54 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); |
| 55 | 55 |
| 56 ui::mojom::Cursor predefined_cursor() const { return predefined_cursor_; } | 56 ui::mojom::Cursor predefined_cursor() const { return predefined_cursor_; } |
| 57 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); | 57 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); |
| 58 | 58 |
| 59 // Sets whether the window can receive events. Default value is true. | 59 // Sets the EventTargetingPolicy, default is TARGET_AND_DESCENDANTS. |
| 60 void SetCanAcceptEvents(bool value); | 60 void SetEventTargetingPolicy(ui::mojom::EventTargetingPolicy policy); |
| 61 | 61 |
| 62 // Embeds a new client in this Window. See WindowTreeClient::Embed() for | 62 // Embeds a new client in this Window. See WindowTreeClient::Embed() for |
| 63 // details on arguments. | 63 // details on arguments. |
| 64 void Embed(ui::mojom::WindowTreeClientPtr client, | 64 void Embed(ui::mojom::WindowTreeClientPtr client, |
| 65 uint32_t flags, | 65 uint32_t flags, |
| 66 const ui::mojom::WindowTree::EmbedCallback& callback); | 66 const ui::mojom::WindowTree::EmbedCallback& callback); |
| 67 | 67 |
| 68 std::unique_ptr<ui::WindowCompositorFrameSink> RequestCompositorFrameSink( | 68 std::unique_ptr<ui::WindowCompositorFrameSink> RequestCompositorFrameSink( |
| 69 scoped_refptr<cc::ContextProvider> context_provider, | 69 scoped_refptr<cc::ContextProvider> context_provider, |
| 70 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); | 70 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 cc::SurfaceInfo surface_info_; | 249 cc::SurfaceInfo surface_info_; |
| 250 | 250 |
| 251 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; | 251 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; |
| 252 | 252 |
| 253 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); | 253 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 } // namespace aura | 256 } // namespace aura |
| 257 | 257 |
| 258 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 258 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
| OLD | NEW |