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

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

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And fix chromeos. 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
« no previous file with comments | « no previous file | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/window_manager_constants.mojom"; 7 import "components/mus/public/interfaces/window_manager_constants.mojom";
8 import "ui/mojo/geometry/geometry.mojom";
8 9
9 interface DisplayManagerObserver { 10 interface DisplayManagerObserver {
10 // Sent when the observer is added. Gives the initial state. 11 // Sent when the observer is added. Gives the initial state.
11 OnDisplays(array<Display> displays); 12 OnDisplays(array<Display> displays);
12 13
13 // The specified set of displays has changed in some way. This is used both 14 // The specified set of displays has changed in some way. This is used both
14 // when a new display is added, or when a property of a display changes. 15 // when a new display is added, or when a property of a display changes.
15 // |displays| does not necessarily contain the complete set of displays, 16 // |displays| does not necessarily contain the complete set of displays,
16 // only those that changed. 17 // only those that changed.
17 OnDisplaysChanged(array<Display> displays); 18 OnDisplaysChanged(array<Display> displays);
18 19
19 // An existing display was removed. 20 // An existing display was removed.
20 OnDisplayRemoved(int64 id); 21 OnDisplayRemoved(int64 id);
21 }; 22 };
22 23
23 interface DisplayManager { 24 interface DisplayManager {
24 AddObserver(DisplayManagerObserver observer); 25 AddObserver(DisplayManagerObserver observer);
26
27 // The mouse cursor on this display moved.
28 [Sync]
29 GetCursorScreenPoint() => (mojo.Point location);
sky 2016/04/15 20:38:57 If you keep this on DisplayManager then there is e
Elliot Glaysher 2016/04/15 23:56:52 Done. The call is now on WindowTree. I left the s
25 }; 30 };
OLDNEW
« no previous file with comments | « no previous file | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698