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

Side by Side Diff: ui/aura/env.h

Issue 2869273010: aura: Introduce EventInjector. (Closed)
Patch Set: . Created 3 years, 7 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/BUILD.gn ('k') | ui/aura/event_injector.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ENV_H_ 5 #ifndef UI_AURA_ENV_H_
6 #define UI_AURA_ENV_H_ 6 #define UI_AURA_ENV_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 ui::ContextFactoryPrivate* context_factory_private() { 107 ui::ContextFactoryPrivate* context_factory_private() {
108 return context_factory_private_; 108 return context_factory_private_;
109 } 109 }
110 110
111 // See CreateInstance() for description. 111 // See CreateInstance() for description.
112 void SetWindowTreeClient(WindowTreeClient* window_tree_client); 112 void SetWindowTreeClient(WindowTreeClient* window_tree_client);
113 bool HasWindowTreeClient() const { return window_tree_client_ != nullptr; } 113 bool HasWindowTreeClient() const { return window_tree_client_ != nullptr; }
114 114
115 private: 115 private:
116 friend class test::EnvTestHelper; 116 friend class test::EnvTestHelper;
117 friend class EventInjector;
117 friend class MusMouseLocationUpdater; 118 friend class MusMouseLocationUpdater;
118 friend class Window; 119 friend class Window;
119 friend class WindowTreeHost; 120 friend class WindowTreeHost;
120 121
121 explicit Env(Mode mode); 122 explicit Env(Mode mode);
122 123
123 void Init(); 124 void Init();
124 125
125 // After calling this method, all OSExchangeDataProvider instances will be 126 // After calling this method, all OSExchangeDataProvider instances will be
126 // Mus instances. We can't do this work in Init(), because our mode may 127 // Mus instances. We can't do this work in Init(), because our mode may
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 179
179 ui::ContextFactory* context_factory_; 180 ui::ContextFactory* context_factory_;
180 ui::ContextFactoryPrivate* context_factory_private_; 181 ui::ContextFactoryPrivate* context_factory_private_;
181 182
182 DISALLOW_COPY_AND_ASSIGN(Env); 183 DISALLOW_COPY_AND_ASSIGN(Env);
183 }; 184 };
184 185
185 } // namespace aura 186 } // namespace aura
186 187
187 #endif // UI_AURA_ENV_H_ 188 #endif // UI_AURA_ENV_H_
OLDNEW
« no previous file with comments | « ui/aura/BUILD.gn ('k') | ui/aura/event_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698