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

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

Issue 2125883003: Adds ability for pre-target accelerators to not consume events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 // An accelerator registered via AddAccelerator() has been triggered. 86 // An accelerator registered via AddAccelerator() has been triggered. If
87 OnAccelerator(uint32 id, ui.mojom.Event event); 87 // |ack_id| is non-zero the accelerator matches a PRE_TARGET and must be
88 // acknowledged by WindowManagerClient::OnAcceleratorAck().
89 OnAccelerator(uint32 ack_id, uint32 accelerator_id, ui.mojom.Event event);
88 }; 90 };
89 91
90 // This interface is only used as an associated interface and is associated 92 // This interface is only used as an associated interface and is associated
91 // with WindowTree. 93 // with WindowTree.
92 interface WindowManagerClient { 94 interface WindowManagerClient {
93 // Enables (or disables) child windows of |window_id| to be activated. 95 // Enables (or disables) child windows of |window_id| to be activated.
94 AddActivationParent(uint32 window_id); 96 AddActivationParent(uint32 window_id);
95 RemoveActivationParent(uint32 window_id); 97 RemoveActivationParent(uint32 window_id);
96 98
97 ActivateNextWindow(); 99 ActivateNextWindow();
(...skipping 26 matching lines...) Expand all
124 // Sets the frame decoration constants of the display the window manager is 126 // Sets the frame decoration constants of the display the window manager is
125 // associated with. 127 // associated with.
126 WmSetFrameDecorationValues(FrameDecorationValues values); 128 WmSetFrameDecorationValues(FrameDecorationValues values);
127 129
128 // Sets the cursor that the non-client areas of the window should use. 130 // Sets the cursor that the non-client areas of the window should use.
129 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id); 131 WmSetNonClientCursor(uint32 window_id, Cursor cursor_id);
130 132
131 // Response from WmCreateTopLevelWindow() informing the client of the id for 133 // Response from WmCreateTopLevelWindow() informing the client of the id for
132 // the new window. 134 // the new window.
133 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id); 135 OnWmCreatedTopLevelWindow(uint32 change_id, uint32 window_id);
136
137 // See description in WindowManager::OnAccelerator(). |ack_id| is the value
138 // that was passed to OnAccelerator().
139 OnAcceleratorAck(uint32 ack_id, EventResult event_result);
134 }; 140 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698