| 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" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "base/supports_user_data.h" | 12 #include "base/supports_user_data.h" |
| 13 #include "ui/aura/aura_export.h" | 13 #include "ui/aura/aura_export.h" |
| 14 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" | 14 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" |
| 15 #include "ui/events/event_handler.h" | 15 #include "ui/events/event_handler.h" |
| 16 #include "ui/events/event_target.h" | 16 #include "ui/events/event_target.h" |
| 17 #include "ui/gfx/geometry/point.h" | 17 #include "ui/gfx/geometry/point.h" |
| 18 | 18 |
| 19 #if defined(USE_OZONE) |
| 20 #include "ui/ozone/public/client_native_pixmap_factory_ozone.h" |
| 21 |
| 22 namespace gfx { |
| 23 class ClientNativePixmapFactory; |
| 24 } |
| 25 #endif |
| 26 |
| 19 namespace ui { | 27 namespace ui { |
| 20 class ContextFactory; | 28 class ContextFactory; |
| 21 class ContextFactoryPrivate; | 29 class ContextFactoryPrivate; |
| 22 class PlatformEventSource; | 30 class PlatformEventSource; |
| 23 } | 31 } |
| 24 namespace aura { | 32 namespace aura { |
| 25 namespace test { | 33 namespace test { |
| 26 class EnvTestHelper; | 34 class EnvTestHelper; |
| 27 } | 35 } |
| 28 | 36 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 bool get_last_mouse_location_from_mus_; | 157 bool get_last_mouse_location_from_mus_; |
| 150 // This may be set to true in tests to force using |last_mouse_location_| | 158 // This may be set to true in tests to force using |last_mouse_location_| |
| 151 // rather than querying WindowTreeClient. | 159 // rather than querying WindowTreeClient. |
| 152 bool always_use_last_mouse_location_ = false; | 160 bool always_use_last_mouse_location_ = false; |
| 153 // Whether we set ourselves as the OSExchangeDataProviderFactory. | 161 // Whether we set ourselves as the OSExchangeDataProviderFactory. |
| 154 bool is_os_exchange_data_provider_factory_ = false; | 162 bool is_os_exchange_data_provider_factory_ = false; |
| 155 | 163 |
| 156 std::unique_ptr<InputStateLookup> input_state_lookup_; | 164 std::unique_ptr<InputStateLookup> input_state_lookup_; |
| 157 std::unique_ptr<ui::PlatformEventSource> event_source_; | 165 std::unique_ptr<ui::PlatformEventSource> event_source_; |
| 158 | 166 |
| 167 #if defined(USE_OZONE) |
| 168 // Factory for pixmaps that can use be transported from the client to the GPU |
| 169 // process using a low-level ozone-provided platform specific mechanism. |
| 170 std::unique_ptr<gfx::ClientNativePixmapFactory> native_pixmap_factory_; |
| 171 #endif |
| 172 |
| 159 ui::ContextFactory* context_factory_; | 173 ui::ContextFactory* context_factory_; |
| 160 ui::ContextFactoryPrivate* context_factory_private_; | 174 ui::ContextFactoryPrivate* context_factory_private_; |
| 161 | 175 |
| 162 DISALLOW_COPY_AND_ASSIGN(Env); | 176 DISALLOW_COPY_AND_ASSIGN(Env); |
| 163 }; | 177 }; |
| 164 | 178 |
| 165 } // namespace aura | 179 } // namespace aura |
| 166 | 180 |
| 167 #endif // UI_AURA_ENV_H_ | 181 #endif // UI_AURA_ENV_H_ |
| OLD | NEW |