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

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

Issue 2626013005: Change CaptureSynchronizer and PointerWatcherEventRouter to support multiple CaptureClients. (Closed)
Patch Set: comments; sequence; test Created 3 years, 10 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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 ~WindowTreeClient() override; 98 ~WindowTreeClient() override;
99 99
100 // Establishes the connection by way of the WindowTreeFactory. 100 // Establishes the connection by way of the WindowTreeFactory.
101 void ConnectViaWindowTreeFactory(); 101 void ConnectViaWindowTreeFactory();
102 102
103 // Establishes the connection by way of WindowManagerWindowTreeFactory. 103 // Establishes the connection by way of WindowManagerWindowTreeFactory.
104 void ConnectAsWindowManager(); 104 void ConnectAsWindowManager();
105 105
106 service_manager::Connector* connector() { return connector_; } 106 service_manager::Connector* connector() { return connector_; }
107 ui::Gpu* gpu() { return gpu_.get(); } 107 ui::Gpu* gpu() { return gpu_.get(); }
108 CaptureSynchronizer* capture_synchronizer() {
109 return capture_synchronizer_.get();
110 }
108 111
109 bool connected() const { return tree_ != nullptr; } 112 bool connected() const { return tree_ != nullptr; }
110 ClientSpecificId client_id() const { return client_id_; } 113 ClientSpecificId client_id() const { return client_id_; }
111 114
112 client::CaptureClient* GetCaptureClient(); 115 client::CaptureClient* GetCaptureClient();
113 116
114 void SetCanFocus(Window* window, bool can_focus); 117 void SetCanFocus(Window* window, bool can_focus);
115 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); 118 void SetCanAcceptDrops(Id window_id, bool can_accept_drops);
116 void SetCanAcceptEvents(WindowMus* window, bool can_accept_events); 119 void SetCanAcceptEvents(WindowMus* window, bool can_accept_events);
117 void SetPredefinedCursor(WindowMus* window, 120 void SetPredefinedCursor(WindowMus* window,
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 std::unique_ptr<ui::Gpu> gpu_; 544 std::unique_ptr<ui::Gpu> gpu_;
542 std::unique_ptr<MusContextFactory> compositor_context_factory_; 545 std::unique_ptr<MusContextFactory> compositor_context_factory_;
543 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 546 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
544 547
545 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 548 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
546 }; 549 };
547 550
548 } // namespace aura 551 } // namespace aura
549 552
550 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 553 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698