Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: ui/aura/mus/window_port_mus.h

Issue 2784663003: mus: Rename mojom::Cursor to mojom::CursorType. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ~WindowPortMus() override; 46 ~WindowPortMus() override;
47 47
48 static WindowPortMus* Get(Window* window); 48 static WindowPortMus* Get(Window* window);
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::CursorType predefined_cursor() const { return predefined_cursor_; }
57 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); 57 void SetPredefinedCursor(ui::mojom::CursorType 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. 62 // Sets whether this window can accept drops, defaults to false.
63 void SetCanAcceptDrops(bool can_accept_drops); 63 void SetCanAcceptDrops(bool can_accept_drops);
64 64
65 // Embeds a new client in this Window. See WindowTreeClient::Embed() for 65 // Embeds a new client in this Window. See WindowTreeClient::Embed() for
66 // details on arguments. 66 // details on arguments.
67 void Embed(ui::mojom::WindowTreeClientPtr client, 67 void Embed(ui::mojom::WindowTreeClientPtr client,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // WindowMus: 207 // WindowMus:
208 Window* GetWindow() override; 208 Window* GetWindow() override;
209 void AddChildFromServer(WindowMus* window) override; 209 void AddChildFromServer(WindowMus* window) override;
210 void RemoveChildFromServer(WindowMus* child) override; 210 void RemoveChildFromServer(WindowMus* child) override;
211 void ReorderFromServer(WindowMus* child, 211 void ReorderFromServer(WindowMus* child,
212 WindowMus* relative, 212 WindowMus* relative,
213 ui::mojom::OrderDirection) override; 213 ui::mojom::OrderDirection) override;
214 void SetBoundsFromServer(const gfx::Rect& bounds) override; 214 void SetBoundsFromServer(const gfx::Rect& bounds) override;
215 void SetVisibleFromServer(bool visible) override; 215 void SetVisibleFromServer(bool visible) override;
216 void SetOpacityFromServer(float opacity) override; 216 void SetOpacityFromServer(float opacity) override;
217 void SetPredefinedCursorFromServer(ui::mojom::Cursor cursor) override; 217 void SetPredefinedCursorFromServer(ui::mojom::CursorType cursor) override;
218 void SetPropertyFromServer( 218 void SetPropertyFromServer(
219 const std::string& property_name, 219 const std::string& property_name,
220 const std::vector<uint8_t>* property_data) override; 220 const std::vector<uint8_t>* property_data) override;
221 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override; 221 void SetFrameSinkIdFromServer(const cc::FrameSinkId& frame_sink_id) override;
222 void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override; 222 void SetSurfaceInfoFromServer(const cc::SurfaceInfo& surface_info) override;
223 void DestroyFromServer() override; 223 void DestroyFromServer() override;
224 void AddTransientChildFromServer(WindowMus* child) override; 224 void AddTransientChildFromServer(WindowMus* child) override;
225 void RemoveTransientChildFromServer(WindowMus* child) override; 225 void RemoveTransientChildFromServer(WindowMus* child) override;
226 ChangeSource OnTransientChildAdded(WindowMus* child) override; 226 ChangeSource OnTransientChildAdded(WindowMus* child) override;
227 ChangeSource OnTransientChildRemoved(WindowMus* child) override; 227 ChangeSource OnTransientChildRemoved(WindowMus* child) override;
(...skipping 29 matching lines...) Expand all
257 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder; 257 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder;
258 258
259 ServerChangeIdType next_server_change_id_ = 0; 259 ServerChangeIdType next_server_change_id_ = 0;
260 ServerChanges server_changes_; 260 ServerChanges server_changes_;
261 261
262 cc::FrameSinkId frame_sink_id_; 262 cc::FrameSinkId frame_sink_id_;
263 base::Closure pending_compositor_frame_sink_request_; 263 base::Closure pending_compositor_frame_sink_request_;
264 264
265 cc::SurfaceInfo surface_info_; 265 cc::SurfaceInfo surface_info_;
266 266
267 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; 267 ui::mojom::CursorType predefined_cursor_ = ui::mojom::CursorType::CURSOR_NULL;
268 268
269 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); 269 DISALLOW_COPY_AND_ASSIGN(WindowPortMus);
270 }; 270 };
271 271
272 } // namespace aura 272 } // namespace aura
273 273
274 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ 274 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_mus.h ('k') | ui/aura/mus/window_port_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698