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

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: GetClientVisibleRoot 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
« no previous file with comments | « services/ui/ws/window_manager_display_root.cc ('k') | services/ui/ws/window_manager_state.cc » ('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 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 191
192 // Called from the callback supplied to WindowTree::OnAccelerator(). 192 // Called from the callback supplied to WindowTree::OnAccelerator().
193 void OnAcceleratorAck( 193 void OnAcceleratorAck(
194 mojom::EventResult result, 194 mojom::EventResult result,
195 const std::unordered_map<std::string, std::vector<uint8_t>>& properties); 195 const std::unordered_map<std::string, std::vector<uint8_t>>& properties);
196 196
197 // Called from the callback supplied to WindowTree::DispatchInputEvent(). 197 // Called from the callback supplied to WindowTree::DispatchInputEvent().
198 void OnEventAck(mojom::WindowTree* tree, mojom::EventResult result); 198 void OnEventAck(mojom::WindowTree* tree, mojom::EventResult result);
199 199
200 // Called if the client doesn't ack an event in the appropriate amount of 200 // 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. 295 // destroyed.
296 WindowManagerDisplayRoots orphaned_window_manager_display_roots_; 296 WindowManagerDisplayRoots orphaned_window_manager_display_roots_;
297 297
298 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 298 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
299 }; 299 };
300 300
301 } // namespace ws 301 } // namespace ws
302 } // namespace ui 302 } // namespace ui
303 303
304 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 304 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_display_root.cc ('k') | services/ui/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698