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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 the EventTargetingPolicy, default is TARGET_AND_DESCENDANTS. | 59 // Sets the EventTargetingPolicy, default is TARGET_AND_DESCENDANTS. |
60 void SetEventTargetingPolicy(ui::mojom::EventTargetingPolicy policy); | 60 void SetEventTargetingPolicy(ui::mojom::EventTargetingPolicy policy); |
61 | 61 |
| 62 // Sets whether this window can accept drops, defaults to false. |
| 63 void SetCanAcceptDrops(bool can_accept_drops); |
| 64 |
62 // Embeds a new client in this Window. See WindowTreeClient::Embed() for | 65 // Embeds a new client in this Window. See WindowTreeClient::Embed() for |
63 // details on arguments. | 66 // details on arguments. |
64 void Embed(ui::mojom::WindowTreeClientPtr client, | 67 void Embed(ui::mojom::WindowTreeClientPtr client, |
65 uint32_t flags, | 68 uint32_t flags, |
66 const ui::mojom::WindowTree::EmbedCallback& callback); | 69 const ui::mojom::WindowTree::EmbedCallback& callback); |
67 | 70 |
68 std::unique_ptr<ui::WindowCompositorFrameSink> RequestCompositorFrameSink( | 71 std::unique_ptr<ui::WindowCompositorFrameSink> RequestCompositorFrameSink( |
69 scoped_refptr<cc::ContextProvider> context_provider, | 72 scoped_refptr<cc::ContextProvider> context_provider, |
70 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); | 73 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); |
71 | 74 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 cc::SurfaceInfo surface_info_; | 253 cc::SurfaceInfo surface_info_; |
251 | 254 |
252 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; | 255 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; |
253 | 256 |
254 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); | 257 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); |
255 }; | 258 }; |
256 | 259 |
257 } // namespace aura | 260 } // namespace aura |
258 | 261 |
259 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 262 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
OLD | NEW |