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

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: test Created 3 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
« no previous file with comments | « ui/aura/mus/focus_synchronizer_observer.h ('k') | ui/aura/mus/window_tree_client_unittest.cc » ('j') | no next file with comments »
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void ConnectViaWindowTreeFactory(); 113 void ConnectViaWindowTreeFactory();
114 114
115 // Establishes the connection by way of WindowManagerWindowTreeFactory. 115 // Establishes the connection by way of WindowManagerWindowTreeFactory.
116 void ConnectAsWindowManager(); 116 void ConnectAsWindowManager();
117 117
118 service_manager::Connector* connector() { return connector_; } 118 service_manager::Connector* connector() { return connector_; }
119 ui::Gpu* gpu() { return gpu_.get(); } 119 ui::Gpu* gpu() { return gpu_.get(); }
120 CaptureSynchronizer* capture_synchronizer() { 120 CaptureSynchronizer* capture_synchronizer() {
121 return capture_synchronizer_.get(); 121 return capture_synchronizer_.get();
122 } 122 }
123 FocusSynchronizer* focus_synchronizer() { return focus_synchronizer_.get(); }
123 124
124 bool connected() const { return tree_ != nullptr; } 125 bool connected() const { return tree_ != nullptr; }
125 ClientSpecificId client_id() const { return client_id_; } 126 ClientSpecificId client_id() const { return client_id_; }
126 127
127 void SetCanFocus(Window* window, bool can_focus); 128 void SetCanFocus(Window* window, bool can_focus);
128 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops); 129 void SetCanAcceptDrops(WindowMus* window, bool can_accept_drops);
129 void SetEventTargetingPolicy(WindowMus* window, 130 void SetEventTargetingPolicy(WindowMus* window,
130 ui::mojom::EventTargetingPolicy policy); 131 ui::mojom::EventTargetingPolicy policy);
131 void SetPredefinedCursor(WindowMus* window, 132 void SetPredefinedCursor(WindowMus* window,
132 ui::mojom::CursorType old_cursor, 133 ui::mojom::CursorType old_cursor,
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 bool got_initial_displays_ = false; 609 bool got_initial_displays_ = false;
609 610
610 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 611 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
611 612
612 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 613 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
613 }; 614 };
614 615
615 } // namespace aura 616 } // namespace aura
616 617
617 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 618 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/focus_synchronizer_observer.h ('k') | ui/aura/mus/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698