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

Side by Side Diff: services/ui/public/interfaces/window_manager.mojom

Issue 2060513002: Tab dragging as implemented as a mus API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng nits Created 4 years, 5 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 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 ui.mojom; 5 module ui.mojom;
6 6
7 import "services/ui/public/interfaces/cursor.mojom"; 7 import "services/ui/public/interfaces/cursor.mojom";
8 import "services/ui/public/interfaces/event_matcher.mojom"; 8 import "services/ui/public/interfaces/event_matcher.mojom";
9 import "services/ui/public/interfaces/window_manager_constants.mojom"; 9 import "services/ui/public/interfaces/window_manager_constants.mojom";
10 import "services/ui/public/interfaces/window_tree_constants.mojom"; 10 import "services/ui/public/interfaces/window_tree_constants.mojom";
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 WmCreateTopLevelWindow(uint32 change_id, 76 WmCreateTopLevelWindow(uint32 change_id,
77 uint16 requesting_client_id, 77 uint16 requesting_client_id,
78 map<string, array<uint8>> properties); 78 map<string, array<uint8>> properties);
79 79
80 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input 80 // A WindowTreeClient is considered "janky" by Mus when it stops ACK'ing input
81 // events within a reasonable timeframe. When a client enters or exits this 81 // events within a reasonable timeframe. When a client enters or exits this
82 // state, Mus will tell the window manager about it so that the window manager 82 // state, Mus will tell the window manager about it so that the window manager
83 // can update the UI for the janky windows. 83 // can update the UI for the janky windows.
84 WmClientJankinessChanged(uint16 client_id, bool janky); 84 WmClientJankinessChanged(uint16 client_id, bool janky);
85 85
86 // Asks the WindowManager to interactively move the window. This will return
87 // whether this completed successfully or not through the client's
88 // OnWmMoveLoopCompleted().
89 WmPerformMoveLoop(uint32 change_id, uint32 window_id,
90 MoveLoopSource source,
91 gfx.mojom.Point cursor_location);
92
93 // Asks the WindowManager to cancel any outstanding move loop on |change_id|.
94 WmCancelMoveLoop(uint32 change_id);
95
86 // An accelerator registered via AddAccelerator() has been triggered. 96 // An accelerator registered via AddAccelerator() has been triggered.
87 OnAccelerator(uint32 id, ui.mojom.Event event); 97 OnAccelerator(uint32 id, ui.mojom.Event event);
88 }; 98 };
89 99
90 // This interface is only used as an associated interface and is associated 100 // This interface is only used as an associated interface and is associated
91 // with WindowTree. 101 // with WindowTree.
92 interface WindowManagerClient { 102 interface WindowManagerClient {
93 // Enables (or disables) child windows of |window_id| to be activated. 103 // Enables (or disables) child windows of |window_id| to be activated.
94 AddActivationParent(uint32 window_id); 104 AddActivationParent(uint32 window_id);
95 RemoveActivationParent(uint32 window_id); 105 RemoveActivationParent(uint32 window_id);
(...skipping 29 matching lines...) Expand all
125 // associated with. 135 // associated with.
126 WmSetFrameDecorationValues(FrameDecorationValues values); 136 WmSetFrameDecorationValues(FrameDecorationValues values);
127 137
128 // Sets the cursor that the non-client areas of the window should use. 138 // Sets the cursor that the non-client areas of the window should use.
129 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 139 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
130 140
131 // Response from WmCreateTopLevelWindow() informing the client of the id for 141 // Response from WmCreateTopLevelWindow() informing the client of the id for
132 // the new window. 142 // the new window.
133 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 143 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
134 }; 144 };
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_tree_client.h ('k') | services/ui/public/interfaces/window_manager_constants.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698