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

Side by Side Diff: ui/views/mus/mus_client.h

Issue 2488723002: Reland of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)
Patch Set: Created 4 years, 1 month 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/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/mus/mus_client.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_VIEWS_MUS_MUS_CLIENT_INIT_H_ 5 #ifndef UI_VIEWS_MUS_MUS_CLIENT_INIT_H_
6 #define UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ 6 #define UI_VIEWS_MUS_MUS_CLIENT_INIT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 namespace base { 25 namespace base {
26 class SingleThreadTaskRunner; 26 class SingleThreadTaskRunner;
27 } 27 }
28 28
29 namespace service_manager { 29 namespace service_manager {
30 class Connector; 30 class Connector;
31 class Identity; 31 class Identity;
32 } 32 }
33 33
34 namespace wm { 34 namespace wm {
35 class FocusController;
36 class WMState; 35 class WMState;
37 } 36 }
38 37
39 namespace views { 38 namespace views {
40 39
41 class ScreenMus; 40 class ScreenMus;
42 class SurfaceContextFactory; 41 class SurfaceContextFactory;
43 42
44 namespace internal { 43 namespace internal {
45 class NativeWidgetDelegate; 44 class NativeWidgetDelegate;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const service_manager::Identity& identity, 83 const service_manager::Identity& identity,
85 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr); 84 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = nullptr);
86 85
87 // aura::WindowTreeClientDelegate: 86 // aura::WindowTreeClientDelegate:
88 void OnEmbed( 87 void OnEmbed(
89 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; 88 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override;
90 void OnLostConnection(aura::WindowTreeClient* client) override; 89 void OnLostConnection(aura::WindowTreeClient* client) override;
91 void OnEmbedRootDestroyed(aura::Window* root) override; 90 void OnEmbedRootDestroyed(aura::Window* root) override;
92 void OnPointerEventObserved(const ui::PointerEvent& event, 91 void OnPointerEventObserved(const ui::PointerEvent& event,
93 aura::Window* target) override; 92 aura::Window* target) override;
94 aura::client::FocusClient* GetFocusClient() override;
95 aura::client::CaptureClient* GetCaptureClient() override; 93 aura::client::CaptureClient* GetCaptureClient() override;
96 aura::PropertyConverter* GetPropertyConverter() override; 94 aura::PropertyConverter* GetPropertyConverter() override;
97 95
98 // ScreenMusDelegate: 96 // ScreenMusDelegate:
99 void OnWindowManagerFrameValuesChanged() override; 97 void OnWindowManagerFrameValuesChanged() override;
100 gfx::Point GetCursorScreenPoint() override; 98 gfx::Point GetCursorScreenPoint() override;
101 aura::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; 99 aura::Window* GetWindowAtScreenPoint(const gfx::Point& point) override;
102 100
103 // ui:OSExchangeDataProviderFactory::Factory: 101 // ui:OSExchangeDataProviderFactory::Factory:
104 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; 102 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override;
105 103
106 static MusClient* instance_; 104 static MusClient* instance_;
107 105
108 service_manager::Connector* connector_; 106 service_manager::Connector* connector_;
109 service_manager::Identity identity_; 107 service_manager::Identity identity_;
110 108
111 std::unique_ptr<wm::WMState> wm_state_; 109 std::unique_ptr<wm::WMState> wm_state_;
112 110
113 std::unique_ptr<ScreenMus> screen_; 111 std::unique_ptr<ScreenMus> screen_;
114 112
115 std::unique_ptr<wm::FocusController> focus_controller_;
116
117 std::unique_ptr<aura::PropertyConverter> property_converter_; 113 std::unique_ptr<aura::PropertyConverter> property_converter_;
118 114
119 std::unique_ptr<aura::WindowTreeClient> window_tree_client_; 115 std::unique_ptr<aura::WindowTreeClient> window_tree_client_;
120 116
121 std::unique_ptr<aura::GpuService> gpu_service_; 117 std::unique_ptr<aura::GpuService> gpu_service_;
122 118
123 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; 119 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_;
124 120
125 DISALLOW_COPY_AND_ASSIGN(MusClient); 121 DISALLOW_COPY_AND_ASSIGN(MusClient);
126 }; 122 };
127 123
128 } // namespace views 124 } // namespace views
129 125
130 #endif // UI_VIEWS_MUS_MUS_CLIENT_INIT_H_ 126 #endif // UI_VIEWS_MUS_MUS_CLIENT_INIT_H_
OLDNEW
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | ui/views/mus/mus_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698