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

Side by Side Diff: components/mus/public/interfaces/window_tree.mojom

Issue 1862853002: Makes WindowTree::SetFocus(null) work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar cleanup Created 4 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
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 module mus.mojom; 5 module mus.mojom;
6 6
7 import "components/mus/public/interfaces/compositor_frame.mojom"; 7 import "components/mus/public/interfaces/compositor_frame.mojom";
8 import "components/mus/public/interfaces/cursor.mojom"; 8 import "components/mus/public/interfaces/cursor.mojom";
9 import "components/mus/public/interfaces/input_events.mojom"; 9 import "components/mus/public/interfaces/input_events.mojom";
10 import "components/mus/public/interfaces/mus_constants.mojom"; 10 import "components/mus/public/interfaces/mus_constants.mojom";
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 // WindowTreeClient being removed. The embedded app is told this by way of 208 // WindowTreeClient being removed. The embedded app is told this by way of
209 // OnUnembed(), which is followed by OnWindowDeleted() (as the connection no 209 // OnUnembed(), which is followed by OnWindowDeleted() (as the connection no
210 // longer has access to the window). 210 // longer has access to the window).
211 // 211 //
212 // The embedder can detect when the embedded app disconnects by way of 212 // The embedder can detect when the embedded app disconnects by way of
213 // OnEmbeddedAppDisconnected(). 213 // OnEmbeddedAppDisconnected().
214 // 214 //
215 // The callback returns whether the embedding was successful. 215 // The callback returns whether the embedding was successful.
216 Embed(uint32 window_id, WindowTreeClient client) => (bool success); 216 Embed(uint32 window_id, WindowTreeClient client) => (bool success);
217 217
218 // Sets focus to the specified window, use 0 to clear focus. For a window to
219 // get focus the following has to happen: the window is drawn, the window has
220 // been marked as focusable (see SetCanFocus()) and the window is in a
221 // container the WindowManager has identified as allowing activation
222 // (see WindowManagerClient::AddActivationParent()).
218 SetFocus(uint32 change_id, uint32 window_id); 223 SetFocus(uint32 change_id, uint32 window_id);
224
225 // Marks the specified window as being able to receive focus.
219 SetCanFocus(uint32 window_id, bool can_focus); 226 SetCanFocus(uint32 window_id, bool can_focus);
220 227
221 // Sets the cursor when the pointer is inside |window_id| to a system standard 228 // Sets the cursor when the pointer is inside |window_id| to a system standard
222 // cursor provided by the window manager. 229 // cursor provided by the window manager.
223 SetPredefinedCursor(uint32 change_id, uint32 window_id, Cursor cursor_id); 230 SetPredefinedCursor(uint32 change_id, uint32 window_id, Cursor cursor_id);
224 231
225 // TODO(erg): Additional cursor methods. Image based cursors, visibility, 232 // TODO(erg): Additional cursor methods. Image based cursors, visibility,
226 // and cursor locking. 233 // and cursor locking.
227 234
228 // Set text input state for the given window. 235 // Set text input state for the given window.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // See description of WindowManager for details. 369 // See description of WindowManager for details.
363 GetWindowManager(associated WindowManager& internal); 370 GetWindowManager(associated WindowManager& internal);
364 }; 371 };
365 372
366 // Mus provides this interface as a way for clients to connect and obtain a 373 // Mus provides this interface as a way for clients to connect and obtain a
367 // WindowTree handle with a supplied WindowTreeClient handle. The 374 // WindowTree handle with a supplied WindowTreeClient handle. The
368 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 375 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
369 interface WindowTreeFactory { 376 interface WindowTreeFactory {
370 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 377 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
371 }; 378 };
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window_tree_connection.h ('k') | components/mus/ws/default_access_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698