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

Side by Side Diff: components/mus/ws/window_tree.h

Issue 1881253002: mus: Implement ScreenMus::GetCursorScreenPoint(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows more. Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_WS_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 EMBED, 231 EMBED,
232 }; 232 };
233 233
234 DisplayManager* display_manager(); 234 DisplayManager* display_manager();
235 const DisplayManager* display_manager() const; 235 const DisplayManager* display_manager() const;
236 236
237 // Used when this tree is the window manager. 237 // Used when this tree is the window manager.
238 Display* GetDisplayForWindowManager(); 238 Display* GetDisplayForWindowManager();
239 WindowManagerState* GetWindowManagerStateForWindowManager(); 239 WindowManagerState* GetWindowManagerStateForWindowManager();
240 240
241 // Gets the current |user_id_|'s window manager state.
242 WindowManagerState* GetWindowManagerStateForUser();
243
241 bool ShouldRouteToWindowManager(const ServerWindow* window) const; 244 bool ShouldRouteToWindowManager(const ServerWindow* window) const;
242 245
243 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; 246 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const;
244 247
245 // Returns true if |id| is a valid WindowId for a new window. 248 // Returns true if |id| is a valid WindowId for a new window.
246 bool IsValidIdForNewWindow(const ClientWindowId& id) const; 249 bool IsValidIdForNewWindow(const ClientWindowId& id) const;
247 250
248 WindowId GenerateNewWindowId(); 251 WindowId GenerateNewWindowId();
249 252
250 // These functions return true if the corresponding mojom function is allowed 253 // These functions return true if the corresponding mojom function is allowed
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 mojo::TextInputStatePtr state) override; 370 mojo::TextInputStatePtr state) override;
368 void OnWindowInputEventAck(uint32_t event_id, 371 void OnWindowInputEventAck(uint32_t event_id,
369 mojom::EventResult result) override; 372 mojom::EventResult result) override;
370 void SetClientArea( 373 void SetClientArea(
371 Id transport_window_id, 374 Id transport_window_id,
372 mojo::InsetsPtr insets, 375 mojo::InsetsPtr insets,
373 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; 376 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override;
374 void GetWindowManagerClient( 377 void GetWindowManagerClient(
375 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) 378 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
376 override; 379 override;
380 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback)
381 override;
377 382
378 // mojom::WindowManagerClient: 383 // mojom::WindowManagerClient:
379 void AddAccelerator(uint32_t id, 384 void AddAccelerator(uint32_t id,
380 mojom::EventMatcherPtr event_matcher, 385 mojom::EventMatcherPtr event_matcher,
381 const AddAcceleratorCallback& callback) override; 386 const AddAcceleratorCallback& callback) override;
382 void RemoveAccelerator(uint32_t id) override; 387 void RemoveAccelerator(uint32_t id) override;
383 void AddActivationParent(Id transport_window_id) override; 388 void AddActivationParent(Id transport_window_id) override;
384 void RemoveActivationParent(Id transport_window_id) override; 389 void RemoveActivationParent(Id transport_window_id) override;
385 void ActivateNextWindow() override; 390 void ActivateNextWindow() override;
386 void SetUnderlaySurfaceOffsetAndExtendedHitArea( 391 void SetUnderlaySurfaceOffsetAndExtendedHitArea(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 445
441 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 446 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
442 447
443 DISALLOW_COPY_AND_ASSIGN(WindowTree); 448 DISALLOW_COPY_AND_ASSIGN(WindowTree);
444 }; 449 };
445 450
446 } // namespace ws 451 } // namespace ws
447 } // namespace mus 452 } // namespace mus
448 453
449 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 454 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698