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

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync pass the nacl breakage Created 5 years 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
OLDNEW
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 COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "components/mus/common/types.h" 10 #include "components/mus/common/types.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Returns true if the specified window was created by this connection. 61 // Returns true if the specified window was created by this connection.
62 bool OwnsWindow(Id id) const; 62 bool OwnsWindow(Id id) const;
63 63
64 void SetBounds(Window* window, 64 void SetBounds(Window* window,
65 const gfx::Rect& old_bounds, 65 const gfx::Rect& old_bounds,
66 const gfx::Rect& bounds); 66 const gfx::Rect& bounds);
67 void SetClientArea(Id window_id, const gfx::Insets& client_area); 67 void SetClientArea(Id window_id, const gfx::Insets& client_area);
68 void SetFocus(Id window_id); 68 void SetFocus(Id window_id);
69 void SetCanFocus(Id window_id, bool can_focus); 69 void SetCanFocus(Id window_id, bool can_focus);
70 void SetStandardCursor(Id window_id, mus::mojom::Cursor cursor_id);
70 void SetVisible(Id window_id, bool visible); 71 void SetVisible(Id window_id, bool visible);
71 void SetProperty(Window* window, 72 void SetProperty(Window* window,
72 const std::string& name, 73 const std::string& name,
73 mojo::Array<uint8_t> data); 74 mojo::Array<uint8_t> data);
74 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); 75 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state);
75 void SetImeVisibility(Id window_id, 76 void SetImeVisibility(Id window_id,
76 bool visible, 77 bool visible,
77 mojo::TextInputStatePtr state); 78 mojo::TextInputStatePtr state);
78 79
79 void Embed(Id window_id, 80 void Embed(Id window_id,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void OnWindowDeleted(Id window_id) override; 168 void OnWindowDeleted(Id window_id) override;
168 void OnWindowVisibilityChanged(Id window_id, bool visible) override; 169 void OnWindowVisibilityChanged(Id window_id, bool visible) override;
169 void OnWindowDrawnStateChanged(Id window_id, bool drawn) override; 170 void OnWindowDrawnStateChanged(Id window_id, bool drawn) override;
170 void OnWindowSharedPropertyChanged(Id window_id, 171 void OnWindowSharedPropertyChanged(Id window_id,
171 const mojo::String& name, 172 const mojo::String& name,
172 mojo::Array<uint8_t> new_data) override; 173 mojo::Array<uint8_t> new_data) override;
173 void OnWindowInputEvent(uint32_t event_id, 174 void OnWindowInputEvent(uint32_t event_id,
174 Id window_id, 175 Id window_id,
175 mojom::EventPtr event) override; 176 mojom::EventPtr event) override;
176 void OnWindowFocused(Id focused_window_id) override; 177 void OnWindowFocused(Id focused_window_id) override;
178 void OnWindowCursorChanged(Id window_id, mojom::Cursor cursor) override;
177 void OnChangeCompleted(uint32_t change_id, bool success) override; 179 void OnChangeCompleted(uint32_t change_id, bool success) override;
178 void WmSetBounds(uint32_t change_id, 180 void WmSetBounds(uint32_t change_id,
179 Id window_id, 181 Id window_id,
180 mojo::RectPtr transit_bounds) override; 182 mojo::RectPtr transit_bounds) override;
181 void WmSetProperty(uint32_t change_id, 183 void WmSetProperty(uint32_t change_id,
182 Id window_id, 184 Id window_id,
183 const mojo::String& name, 185 const mojo::String& name,
184 mojo::Array<uint8_t> transit_data) override; 186 mojo::Array<uint8_t> transit_data) override;
185 187
186 void OnActionCompleted(bool success); 188 void OnActionCompleted(bool success);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 bool is_embed_root_; 221 bool is_embed_root_;
220 222
221 bool in_destructor_; 223 bool in_destructor_;
222 224
223 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); 225 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
224 }; 226 };
225 227
226 } // namespace mus 228 } // namespace mus
227 229
228 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 230 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698