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

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: Don't crash on empty roots. 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>
11 #include <queue> 11 #include <queue>
12 #include <set> 12 #include <set>
13 #include <string> 13 #include <string>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/containers/hash_tables.h" 16 #include "base/containers/hash_tables.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "components/mus/public/interfaces/surface_id.mojom.h" 19 #include "components/mus/public/interfaces/surface_id.mojom.h"
20 #include "components/mus/public/interfaces/window_tree.mojom.h" 20 #include "components/mus/public/interfaces/window_tree.mojom.h"
21 #include "components/mus/ws/access_policy_delegate.h" 21 #include "components/mus/ws/access_policy_delegate.h"
22 #include "components/mus/ws/ids.h" 22 #include "components/mus/ws/ids.h"
23 #include "components/mus/ws/user_id.h" 23 #include "components/mus/ws/user_id.h"
24 #include "components/mus/ws/window_tree_binding.h" 24 #include "components/mus/ws/window_tree_binding.h"
25 #include "mojo/public/cpp/bindings/associated_binding.h" 25 #include "mojo/public/cpp/bindings/associated_binding.h"
26 #include "ui/gfx/geometry/point.h"
26 27
27 namespace gfx { 28 namespace gfx {
28 class Insets; 29 class Insets;
29 class Rect; 30 class Rect;
31 class Point;
30 } 32 }
31 33
32 namespace ui { 34 namespace ui {
33 class Event; 35 class Event;
34 } 36 }
35 37
36 namespace mus { 38 namespace mus {
37 namespace ws { 39 namespace ws {
38 40
39 class AccessPolicy; 41 class AccessPolicy;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 mojo::TextInputStatePtr state) override; 369 mojo::TextInputStatePtr state) override;
368 void OnWindowInputEventAck(uint32_t event_id, 370 void OnWindowInputEventAck(uint32_t event_id,
369 mojom::EventResult result) override; 371 mojom::EventResult result) override;
370 void SetClientArea( 372 void SetClientArea(
371 Id transport_window_id, 373 Id transport_window_id,
372 mojo::InsetsPtr insets, 374 mojo::InsetsPtr insets,
373 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; 375 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override;
374 void GetWindowManagerClient( 376 void GetWindowManagerClient(
375 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) 377 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
376 override; 378 override;
379 void GetCursorScreenPoint(const GetCursorScreenPointCallback& callback)
380 override;
377 381
378 // mojom::WindowManagerClient: 382 // mojom::WindowManagerClient:
379 void AddAccelerator(uint32_t id, 383 void AddAccelerator(uint32_t id,
380 mojom::EventMatcherPtr event_matcher, 384 mojom::EventMatcherPtr event_matcher,
381 const AddAcceleratorCallback& callback) override; 385 const AddAcceleratorCallback& callback) override;
382 void RemoveAccelerator(uint32_t id) override; 386 void RemoveAccelerator(uint32_t id) override;
383 void AddActivationParent(Id transport_window_id) override; 387 void AddActivationParent(Id transport_window_id) override;
384 void RemoveActivationParent(Id transport_window_id) override; 388 void RemoveActivationParent(Id transport_window_id) override;
385 void ActivateNextWindow() override; 389 void ActivateNextWindow() override;
386 void SetUnderlaySurfaceOffsetAndExtendedHitArea( 390 void SetUnderlaySurfaceOffsetAndExtendedHitArea(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 444
441 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 445 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
442 446
443 DISALLOW_COPY_AND_ASSIGN(WindowTree); 447 DISALLOW_COPY_AND_ASSIGN(WindowTree);
444 }; 448 };
445 449
446 } // namespace ws 450 } // namespace ws
447 } // namespace mus 451 } // namespace mus
448 452
449 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 453 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698