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

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: Do it the other way + explicit checks that it is a mouse pointer. 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 SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id);
70 void SetVisible(Window* window, bool visible); 71 void SetVisible(Window* window, 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void OnWindowDeleted(Id window_id) override; 163 void OnWindowDeleted(Id window_id) override;
163 void OnWindowVisibilityChanged(Id window_id, bool visible) override; 164 void OnWindowVisibilityChanged(Id window_id, bool visible) override;
164 void OnWindowDrawnStateChanged(Id window_id, bool drawn) override; 165 void OnWindowDrawnStateChanged(Id window_id, bool drawn) override;
165 void OnWindowSharedPropertyChanged(Id window_id, 166 void OnWindowSharedPropertyChanged(Id window_id,
166 const mojo::String& name, 167 const mojo::String& name,
167 mojo::Array<uint8_t> new_data) override; 168 mojo::Array<uint8_t> new_data) override;
168 void OnWindowInputEvent(uint32_t event_id, 169 void OnWindowInputEvent(uint32_t event_id,
169 Id window_id, 170 Id window_id,
170 mojom::EventPtr event) override; 171 mojom::EventPtr event) override;
171 void OnWindowFocused(Id focused_window_id) override; 172 void OnWindowFocused(Id focused_window_id) override;
173 void OnWindowPredefinedCursorChanged(Id window_id,
174 mojom::Cursor cursor) override;
172 void OnChangeCompleted(uint32_t change_id, bool success) override; 175 void OnChangeCompleted(uint32_t change_id, bool success) override;
173 void WmSetBounds(uint32_t change_id, 176 void WmSetBounds(uint32_t change_id,
174 Id window_id, 177 Id window_id,
175 mojo::RectPtr transit_bounds) override; 178 mojo::RectPtr transit_bounds) override;
176 void WmSetProperty(uint32_t change_id, 179 void WmSetProperty(uint32_t change_id,
177 Id window_id, 180 Id window_id,
178 const mojo::String& name, 181 const mojo::String& name,
179 mojo::Array<uint8_t> transit_data) override; 182 mojo::Array<uint8_t> transit_data) override;
180 183
181 mojo::Callback<void(bool)> ActionCompletedCallback(); 184 mojo::Callback<void(bool)> ActionCompletedCallback();
(...skipping 28 matching lines...) Expand all
210 bool is_embed_root_; 213 bool is_embed_root_;
211 214
212 bool in_destructor_; 215 bool in_destructor_;
213 216
214 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); 217 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
215 }; 218 };
216 219
217 } // namespace mus 220 } // namespace mus
218 221
219 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 222 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_private.h ('k') | components/mus/public/cpp/lib/window_tree_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698