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

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

Issue 2714763002: Change FocusSynchronizer to maintain active focus client and window. (Closed)
Patch Set: fix crash in aura_test_helper tear down Created 3 years, 9 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 void ConnectViaWindowTreeFactory(); 98 void ConnectViaWindowTreeFactory();
99 99
100 // Establishes the connection by way of WindowManagerWindowTreeFactory. 100 // Establishes the connection by way of WindowManagerWindowTreeFactory.
101 void ConnectAsWindowManager(); 101 void ConnectAsWindowManager();
102 102
103 service_manager::Connector* connector() { return connector_; } 103 service_manager::Connector* connector() { return connector_; }
104 ui::Gpu* gpu() { return gpu_.get(); } 104 ui::Gpu* gpu() { return gpu_.get(); }
105 CaptureSynchronizer* capture_synchronizer() { 105 CaptureSynchronizer* capture_synchronizer() {
106 return capture_synchronizer_.get(); 106 return capture_synchronizer_.get();
107 } 107 }
108 FocusSynchronizer* focus_synchronizer() { return focus_synchronizer_.get(); }
108 109
109 bool connected() const { return tree_ != nullptr; } 110 bool connected() const { return tree_ != nullptr; }
110 ClientSpecificId client_id() const { return client_id_; } 111 ClientSpecificId client_id() const { return client_id_; }
111 112
112 void SetCanFocus(Window* window, bool can_focus); 113 void SetCanFocus(Window* window, bool can_focus);
113 void SetCanAcceptDrops(Id window_id, bool can_accept_drops); 114 void SetCanAcceptDrops(Id window_id, bool can_accept_drops);
114 void SetEventTargetingPolicy(WindowMus* window, 115 void SetEventTargetingPolicy(WindowMus* window,
115 ui::mojom::EventTargetingPolicy policy); 116 ui::mojom::EventTargetingPolicy policy);
116 void SetPredefinedCursor(WindowMus* window, 117 void SetPredefinedCursor(WindowMus* window,
117 ui::mojom::Cursor old_cursor, 118 ui::mojom::Cursor old_cursor,
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 // ContextFactory that was set on Env originally. 551 // ContextFactory that was set on Env originally.
551 ui::ContextFactory* initial_context_factory_ = nullptr; 552 ui::ContextFactory* initial_context_factory_ = nullptr;
552 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 553 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
553 554
554 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 555 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
555 }; 556 };
556 557
557 } // namespace aura 558 } // namespace aura
558 559
559 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 560 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698