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

Side by Side Diff: components/mus/public/cpp/window.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_WINDOW_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 Window* GetChildById(Id id); 169 Window* GetChildById(Id id);
170 170
171 void SetTextInputState(mojo::TextInputStatePtr state); 171 void SetTextInputState(mojo::TextInputStatePtr state);
172 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state); 172 void SetImeVisibility(bool visible, mojo::TextInputStatePtr state);
173 173
174 // Focus. 174 // Focus.
175 void SetFocus(); 175 void SetFocus();
176 bool HasFocus() const; 176 bool HasFocus() const;
177 void SetCanFocus(bool can_focus); 177 void SetCanFocus(bool can_focus);
178 178
179 // Cursors
180 void SetStandardCursor(mus::mojom::Cursor cursor_id);
181
179 // Embedding. See window_tree.mojom for details. 182 // Embedding. See window_tree.mojom for details.
180 void Embed(mus::mojom::WindowTreeClientPtr client); 183 void Embed(mus::mojom::WindowTreeClientPtr client);
181 184
182 // NOTE: callback is run synchronously if Embed() is not allowed on this 185 // NOTE: callback is run synchronously if Embed() is not allowed on this
183 // Window. 186 // Window.
184 void Embed(mus::mojom::WindowTreeClientPtr client, 187 void Embed(mus::mojom::WindowTreeClientPtr client,
185 uint32_t policy_bitmask, 188 uint32_t policy_bitmask,
186 const EmbedCallback& callback); 189 const EmbedCallback& callback);
187 190
188 protected: 191 protected:
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 }; 296 };
294 297
295 std::map<const void*, Value> prop_map_; 298 std::map<const void*, Value> prop_map_;
296 299
297 MOJO_DISALLOW_COPY_AND_ASSIGN(Window); 300 MOJO_DISALLOW_COPY_AND_ASSIGN(Window);
298 }; 301 };
299 302
300 } // namespace mus 303 } // namespace mus
301 304
302 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_ 305 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698