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

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

Issue 2021483002: mus: Remove ViewportMetrics from mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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/display.h » ('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 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 "cc/ipc/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "components/mus/public/interfaces/compositor_frame.mojom"; 8 import "components/mus/public/interfaces/compositor_frame.mojom";
9 import "components/mus/public/interfaces/cursor.mojom"; 9 import "components/mus/public/interfaces/cursor.mojom";
10 import "components/mus/public/interfaces/event_matcher.mojom"; 10 import "components/mus/public/interfaces/event_matcher.mojom";
11 import "components/mus/public/interfaces/input_events.mojom"; 11 import "components/mus/public/interfaces/input_events.mojom";
12 import "components/mus/public/interfaces/mus_constants.mojom"; 12 import "components/mus/public/interfaces/mus_constants.mojom";
13 import "components/mus/public/interfaces/window_manager.mojom"; 13 import "components/mus/public/interfaces/window_manager.mojom";
14 import "components/mus/public/interfaces/window_manager_constants.mojom"; 14 import "components/mus/public/interfaces/window_manager_constants.mojom";
15 import "ui/gfx/geometry/mojo/geometry.mojom"; 15 import "ui/gfx/geometry/mojo/geometry.mojom";
16 import "ui/mojo/ime/text_input_state.mojom"; 16 import "ui/mojo/ime/text_input_state.mojom";
17 17
18 struct ViewportMetrics {
19 mojo.Size size_in_pixels;
20 // A value of 0 indicates the real value is not yet available.
21 float device_pixel_ratio = 0.0;
22 };
23
24 struct WindowData { 18 struct WindowData {
25 uint32 parent_id; 19 uint32 parent_id;
26 uint32 window_id; 20 uint32 window_id;
27 mojo.Rect bounds; 21 mojo.Rect bounds;
28 map<string, array<uint8>> properties; 22 map<string, array<uint8>> properties;
29 // True if this window is visible. The window may not be drawn on screen (see 23 // True if this window is visible. The window may not be drawn on screen (see
30 // OnWindowParentDrawnStateChanged() for details). 24 // OnWindowParentDrawnStateChanged() for details).
31 bool visible; 25 bool visible;
32 int64 display_id; 26 int64 display_id;
33 }; 27 };
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // See description of WindowManager for details. 396 // See description of WindowManager for details.
403 GetWindowManager(associated WindowManager& internal); 397 GetWindowManager(associated WindowManager& internal);
404 }; 398 };
405 399
406 // Mus provides this interface as a way for clients to connect and obtain a 400 // Mus provides this interface as a way for clients to connect and obtain a
407 // WindowTree handle with a supplied WindowTreeClient handle. The 401 // WindowTree handle with a supplied WindowTreeClient handle. The
408 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 402 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
409 interface WindowTreeFactory { 403 interface WindowTreeFactory {
410 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 404 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
411 }; 405 };
OLDNEW
« no previous file with comments | « no previous file | components/mus/ws/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698