| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 ui::EventTarget* GetParentTarget() override; | 140 ui::EventTarget* GetParentTarget() override; |
| 141 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; | 141 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; |
| 142 ui::EventTargeter* GetEventTargeter() override; | 142 ui::EventTargeter* GetEventTargeter() override; |
| 143 | 143 |
| 144 // Overridden from ui::OSExchangeDataProviderFactory::Factory: | 144 // Overridden from ui::OSExchangeDataProviderFactory::Factory: |
| 145 std::unique_ptr<ui::OSExchangeData::Provider> BuildProvider() override; | 145 std::unique_ptr<ui::OSExchangeData::Provider> BuildProvider() override; |
| 146 | 146 |
| 147 // This is not const for tests, which may share Env across tests and so needs | 147 // This is not const for tests, which may share Env across tests and so needs |
| 148 // to reset the value. | 148 // to reset the value. |
| 149 Mode mode_; | 149 Mode mode_; |
| 150 |
| 151 // Intentionally not exposed publicly. Someday we might want to support |
| 152 // multiple WindowTreeClients. Use EnvTestHelper in tests. |
| 150 WindowTreeClient* window_tree_client_ = nullptr; | 153 WindowTreeClient* window_tree_client_ = nullptr; |
| 151 | 154 |
| 152 base::ObserverList<EnvObserver> observers_; | 155 base::ObserverList<EnvObserver> observers_; |
| 153 | 156 |
| 154 int mouse_button_flags_; | 157 int mouse_button_flags_; |
| 155 // Location of last mouse event, in screen coordinates. | 158 // Location of last mouse event, in screen coordinates. |
| 156 mutable gfx::Point last_mouse_location_; | 159 mutable gfx::Point last_mouse_location_; |
| 157 bool is_touch_down_; | 160 bool is_touch_down_; |
| 158 bool get_last_mouse_location_from_mus_; | 161 bool get_last_mouse_location_from_mus_; |
| 159 // This may be set to true in tests to force using |last_mouse_location_| | 162 // This may be set to true in tests to force using |last_mouse_location_| |
| (...skipping 10 matching lines...) Expand all Loading... |
| 170 client::FocusClient* active_focus_client_ = nullptr; | 173 client::FocusClient* active_focus_client_ = nullptr; |
| 171 std::unique_ptr<ActiveFocusClientWindowObserver> | 174 std::unique_ptr<ActiveFocusClientWindowObserver> |
| 172 active_focus_client_window_observer_; | 175 active_focus_client_window_observer_; |
| 173 | 176 |
| 174 DISALLOW_COPY_AND_ASSIGN(Env); | 177 DISALLOW_COPY_AND_ASSIGN(Env); |
| 175 }; | 178 }; |
| 176 | 179 |
| 177 } // namespace aura | 180 } // namespace aura |
| 178 | 181 |
| 179 #endif // UI_AURA_ENV_H_ | 182 #endif // UI_AURA_ENV_H_ |
| OLD | NEW |