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

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

Issue 1994763002: Wires up WorkspaceLayoutManager in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 7 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 | mash/BUILD.gn » ('j') | mash/test/mash_test_suite.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/cursor.mojom"; 7 import "components/mus/public/interfaces/cursor.mojom";
8 import "components/mus/public/interfaces/event_matcher.mojom"; 8 import "components/mus/public/interfaces/event_matcher.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/window_manager_constants.mojom"; 10 import "components/mus/public/interfaces/window_manager_constants.mojom";
11 import "ui/mojo/geometry/geometry.mojom"; 11 import "ui/mojo/geometry/geometry.mojom";
12 12
13 // WindowManager is used when a WindowTreeClient attempts to modify 13 // WindowManager is used when a WindowTreeClient attempts to modify
14 // a property of the embed root. When this happens WindowTree calls the 14 // a property of the embed root. When this happens WindowTree calls the
15 // appropriate function on WindowManager. For example, if a 15 // appropriate function on WindowManager. For example, if a
16 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree 16 // WindowTreeClient calls SetWindowBounds() on its embed root, WindowTree
17 // calls WmSetBounds(). WindowManager can then decide if it wants to 17 // calls WmSetBounds(). WindowManager can then decide if it wants to
18 // change the bounds or not. 18 // change the bounds or not.
19 // 19 //
20 // This interface is only used as an associated interface and is associated 20 // This interface is only used as an associated interface and is associated
21 // with WindowTreeClient, further WindowTree requests this interface from 21 // with WindowTreeClient, further WindowTree requests this interface from
22 // WindowTreeClient supplied at the time the WindowTreeHost is created. 22 // WindowTreeClient supplied at the time the WindowTreeHost is created.
23 interface WindowManager { 23 interface WindowManager {
24 // Whether the window is always on top. Type: bool.
25 const string kAlwaysOnTop_Property = "prop:always_on_top";
26 // Initial bounds to create the window at. If empty the WindowManager decides
27 // the initial bounds.
28 const string kInitialBounds_Property = "prop:initial_bounds";
24 // Internal window name. Useful for debugging. Type: mojom::String 29 // Internal window name. Useful for debugging. Type: mojom::String
25 const string kName_Property = "prop:name"; 30 const string kName_Property = "prop:name";
26 // The window's preferred size as defined by its content. Type: gfx::Size. 31 // The window's preferred size as defined by its content. Type: gfx::Size.
27 const string kPreferredSize_Property = "prop:preferred-size"; 32 const string kPreferredSize_Property = "prop:preferred-size";
28 // The window's resize behavior. Type: ResizeBehavior. 33 // The window's resize behavior. Type: ResizeBehavior.
29 const string kResizeBehavior_Property = "prop:resize-behavior"; 34 const string kResizeBehavior_Property = "prop:resize-behavior";
30 // Bounds the window is restored to. Type: gfx::Rect. 35 // Bounds the window is restored to. Type: gfx::Rect.
31 const string kRestoreBounds_Property = "prop:restore-bounds"; 36 const string kRestoreBounds_Property = "prop:restore-bounds";
32 // Shadow style for the window. Type: mojom::ShadowStyle. 37 // Shadow style for the window. Type: mojom::ShadowStyle.
33 const string kShadowStyle_Property = "prop:shadow-style"; 38 const string kShadowStyle_Property = "prop:shadow-style";
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // associated with. 104 // associated with.
100 WmSetFrameDecorationValues(FrameDecorationValues values); 105 WmSetFrameDecorationValues(FrameDecorationValues values);
101 106
102 // Sets the cursor that the non-client areas of the window should use. 107 // Sets the cursor that the non-client areas of the window should use.
103 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 108 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
104 109
105 // Response from WmCreateTopLevelWindow() informing the client of the id for 110 // Response from WmCreateTopLevelWindow() informing the client of the id for
106 // the new window. 111 // the new window.
107 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 112 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
108 }; 113 };
OLDNEW
« no previous file with comments | « no previous file | mash/BUILD.gn » ('j') | mash/test/mash_test_suite.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698