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

Side by Side Diff: ui/aura/mus/window_tree_client.h

Issue 2521823002: Wires up PointerWatcherEventRouter for views aura-mus (Closed)
Patch Set: cleanup Created 4 years 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 | « no previous file | ui/aura/mus/window_tree_client.cc » ('j') | ui/views/mus/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class InFlightVisibleChange; 53 class InFlightVisibleChange;
54 class WindowMus; 54 class WindowMus;
55 class WindowPortMus; 55 class WindowPortMus;
56 struct WindowPortPropertyData; 56 struct WindowPortPropertyData;
57 class WindowTreeClientDelegate; 57 class WindowTreeClientDelegate;
58 class WindowTreeClientPrivate; 58 class WindowTreeClientPrivate;
59 class WindowTreeClientObserver; 59 class WindowTreeClientObserver;
60 class WindowTreeHost; 60 class WindowTreeHost;
61 class WindowTreeHostMus; 61 class WindowTreeHostMus;
62 62
63 namespace client {
64 class CaptureClient;
65 }
66
63 using EventResultCallback = base::Callback<void(ui::mojom::EventResult)>; 67 using EventResultCallback = base::Callback<void(ui::mojom::EventResult)>;
64 68
65 // Manages the connection with mus. 69 // Manages the connection with mus.
66 // 70 //
67 // WindowTreeClient is owned by the creator. Generally when the delegate gets 71 // WindowTreeClient is owned by the creator. Generally when the delegate gets
68 // one of OnEmbedRootDestroyed() or OnLostConnection() it should delete the 72 // one of OnEmbedRootDestroyed() or OnLostConnection() it should delete the
69 // WindowTreeClient. 73 // WindowTreeClient.
70 // 74 //
71 // When WindowTreeClient is deleted all windows are deleted (and observers 75 // When WindowTreeClient is deleted all windows are deleted (and observers
72 // notified). 76 // notified).
(...skipping 15 matching lines...) Expand all
88 92
89 // Establishes the connection by way of the WindowTreeFactory. 93 // Establishes the connection by way of the WindowTreeFactory.
90 void ConnectViaWindowTreeFactory(service_manager::Connector* connector); 94 void ConnectViaWindowTreeFactory(service_manager::Connector* connector);
91 95
92 // Establishes the connection by way of WindowManagerWindowTreeFactory. 96 // Establishes the connection by way of WindowManagerWindowTreeFactory.
93 void ConnectAsWindowManager(service_manager::Connector* connector); 97 void ConnectAsWindowManager(service_manager::Connector* connector);
94 98
95 bool connected() const { return tree_ != nullptr; } 99 bool connected() const { return tree_ != nullptr; }
96 ClientSpecificId client_id() const { return client_id_; } 100 ClientSpecificId client_id() const { return client_id_; }
97 101
102 client::CaptureClient* GetCaptureClient();
103
98 void SetClientArea(Window* window, 104 void SetClientArea(Window* window,
99 const gfx::Insets& client_area, 105 const gfx::Insets& client_area,
100 const std::vector<gfx::Rect>& additional_client_areas); 106 const std::vector<gfx::Rect>& additional_client_areas);
101 void SetHitTestMask(Window* window, const gfx::Rect& mask); 107 void SetHitTestMask(Window* window, const gfx::Rect& mask);
102 void ClearHitTestMask(Window* window); 108 void ClearHitTestMask(Window* window);
103 void SetCanFocus(Window* window, bool can_focus); 109 void SetCanFocus(Window* window, bool can_focus);
104 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); 110 void SetCanAcceptDrops(Id window_id, bool can_accept_drops);
105 void SetCanAcceptEvents(Id window_id, bool can_accept_events); 111 void SetCanAcceptEvents(Id window_id, bool can_accept_events);
106 void SetPredefinedCursor(WindowMus* window, 112 void SetPredefinedCursor(WindowMus* window,
107 ui::mojom::Cursor old_cursor, 113 ui::mojom::Cursor old_cursor,
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; 510 std::unique_ptr<DragDropControllerMus> drag_drop_controller_;
505 511
506 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 512 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
507 513
508 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 514 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
509 }; 515 };
510 516
511 } // namespace aura 517 } // namespace aura
512 518
513 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 519 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/mus/window_tree_client.cc » ('j') | ui/views/mus/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698