| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |