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

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: test mocks too 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 bool visible, 368 bool visible,
367 mojo::TextInputStatePtr state) override; 369 mojo::TextInputStatePtr state) override;
368 void OnWindowInputEventAck(uint32_t event_id, bool handled) override; 370 void OnWindowInputEventAck(uint32_t event_id, bool handled) override;
369 void SetClientArea( 371 void SetClientArea(
370 Id transport_window_id, 372 Id transport_window_id,
371 mojo::InsetsPtr insets, 373 mojo::InsetsPtr insets,
372 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; 374 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override;
373 void GetWindowManagerClient( 375 void GetWindowManagerClient(
374 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) 376 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
375 override; 377 override;
378 void GetCursorScreenPoint(const GetCursorScreenPointCallback& callback)
379 override;
376 380
377 // mojom::WindowManagerClient: 381 // mojom::WindowManagerClient:
378 void AddAccelerator(uint32_t id, 382 void AddAccelerator(uint32_t id,
379 mojom::EventMatcherPtr event_matcher, 383 mojom::EventMatcherPtr event_matcher,
380 const AddAcceleratorCallback& callback) override; 384 const AddAcceleratorCallback& callback) override;
381 void RemoveAccelerator(uint32_t id) override; 385 void RemoveAccelerator(uint32_t id) override;
382 void AddActivationParent(Id transport_window_id) override; 386 void AddActivationParent(Id transport_window_id) override;
383 void RemoveActivationParent(Id transport_window_id) override; 387 void RemoveActivationParent(Id transport_window_id) override;
384 void ActivateNextWindow() override; 388 void ActivateNextWindow() override;
385 void SetUnderlaySurfaceOffsetAndExtendedHitArea( 389 void SetUnderlaySurfaceOffsetAndExtendedHitArea(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 443
440 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 444 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
441 445
442 DISALLOW_COPY_AND_ASSIGN(WindowTree); 446 DISALLOW_COPY_AND_ASSIGN(WindowTree);
443 }; 447 };
444 448
445 } // namespace ws 449 } // namespace ws
446 } // namespace mus 450 } // namespace mus
447 451
448 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 452 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698