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

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

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test mocks too 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Set the input method editor UI (software keyboard, etc) visibility. 238 // Set the input method editor UI (software keyboard, etc) visibility.
239 // If state is non-null, the specified window's text input state is updated. 239 // If state is non-null, the specified window's text input state is updated.
240 // Otherwise the existing state is used. 240 // Otherwise the existing state is used.
241 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state); 241 SetImeVisibility(uint32 window_id, bool visible, mojo.TextInputState? state);
242 242
243 // See documentation for WindowTreeClient::OnWindowInputEvent(). 243 // See documentation for WindowTreeClient::OnWindowInputEvent().
244 OnWindowInputEventAck(uint32 event_id, bool handled); 244 OnWindowInputEventAck(uint32 event_id, bool handled);
245 245
246 // See description of WindowManager for details. 246 // See description of WindowManager for details.
247 GetWindowManagerClient(associated WindowManagerClient& internal); 247 GetWindowManagerClient(associated WindowManagerClient& internal);
248
249 // The mouse cursor on this display moved.
250 [Sync]
251 GetCursorScreenPoint() => (mojo.Point location);
248 }; 252 };
249 253
250 // Changes to windows are not sent to the connection that originated the 254 // Changes to windows are not sent to the connection that originated the
251 // change. For example, if connection 1 changes the bounds of a window by 255 // change. For example, if connection 1 changes the bounds of a window by
252 // calling SetWindowBounds(), connection 1 does not receive 256 // calling SetWindowBounds(), connection 1 does not receive
253 // OnWindowBoundsChanged(). 257 // OnWindowBoundsChanged().
254 interface WindowTreeClient { 258 interface WindowTreeClient {
255 // Invoked when the client application has been embedded at |root|. 259 // Invoked when the client application has been embedded at |root|.
256 // See Embed() on WindowTree for more details. |tree| will be a handle back to 260 // See Embed() on WindowTree for more details. |tree| will be a handle back to
257 // the window manager service, unless the connection is to the root connection 261 // the window manager service, unless the connection is to the root connection
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // See description of WindowManager for details. 380 // See description of WindowManager for details.
377 GetWindowManager(associated WindowManager& internal); 381 GetWindowManager(associated WindowManager& internal);
378 }; 382 };
379 383
380 // Mus provides this interface as a way for clients to connect and obtain a 384 // Mus provides this interface as a way for clients to connect and obtain a
381 // WindowTree handle with a supplied WindowTreeClient handle. The 385 // WindowTree handle with a supplied WindowTreeClient handle. The
382 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 386 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
383 interface WindowTreeFactory { 387 interface WindowTreeFactory {
384 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 388 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
385 }; 389 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698