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

Side by Side Diff: services/ui/ws/window_manager_state.h

Issue 2863913004: chromeos: makes mus send keyevents to display root when nothing has focus (Closed)
Patch Set: moar Created 3 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
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 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 std::unique_ptr<WindowManagerDisplayRoot> display_root); 180 std::unique_ptr<WindowManagerDisplayRoot> display_root);
181 181
182 // Called when a Display is deleted. 182 // Called when a Display is deleted.
183 void OnDisplayDestroying(Display* display); 183 void OnDisplayDestroying(Display* display);
184 184
185 // Sets the visibility of all window manager roots windows to |value|. 185 // Sets the visibility of all window manager roots windows to |value|.
186 void SetAllRootWindowsVisible(bool value); 186 void SetAllRootWindowsVisible(bool value);
187 187
188 // Returns the ServerWindow that is the root of the WindowManager for 188 // Returns the ServerWindow that is the root of the WindowManager for
189 // |window|. |window| corresponds to the root of a Display. 189 // |window|. |window| corresponds to the root of a Display.
190 ServerWindow* GetWindowManagerRoot(ServerWindow* window); 190 ServerWindow* GetWindowManagerRootForDisplayRoot(ServerWindow* window);
191
192 // Returns the ServerWindow that is used as the root of the WindowTree for
193 // |display_root|.
194 ServerWindow* GetWindowManagerRoot(WindowManagerDisplayRoot* display_root);
191 195
192 // Called from the callback supplied to WindowTree::OnAccelerator(). 196 // Called from the callback supplied to WindowTree::OnAccelerator().
193 void OnAcceleratorAck( 197 void OnAcceleratorAck(
194 mojom::EventResult result, 198 mojom::EventResult result,
195 const std::unordered_map<std::string, std::vector<uint8_t>>& properties); 199 const std::unordered_map<std::string, std::vector<uint8_t>>& properties);
196 200
197 // Called from the callback supplied to WindowTree::DispatchInputEvent(). 201 // Called from the callback supplied to WindowTree::DispatchInputEvent().
198 void OnEventAck(mojom::WindowTree* tree, mojom::EventResult result); 202 void OnEventAck(mojom::WindowTree* tree, mojom::EventResult result);
199 203
200 // Called if the client doesn't ack an event in the appropriate amount of 204 // Called if the client doesn't ack an event in the appropriate amount of
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // destroyed. 299 // destroyed.
296 WindowManagerDisplayRoots orphaned_window_manager_display_roots_; 300 WindowManagerDisplayRoots orphaned_window_manager_display_roots_;
297 301
298 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 302 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
299 }; 303 };
300 304
301 } // namespace ws 305 } // namespace ws
302 } // namespace ui 306 } // namespace ui
303 307
304 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 308 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698