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 #include "ui/aura/env.h" | 5 #include "ui/aura/env.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/threading/thread_local.h" | 10 #include "base/threading/thread_local.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 149 } |
150 | 150 |
151 //////////////////////////////////////////////////////////////////////////////// | 151 //////////////////////////////////////////////////////////////////////////////// |
152 // Env, private: | 152 // Env, private: |
153 | 153 |
154 Env::Env(Mode mode) | 154 Env::Env(Mode mode) |
155 : mode_(mode), | 155 : mode_(mode), |
156 mouse_button_flags_(0), | 156 mouse_button_flags_(0), |
157 is_touch_down_(false), | 157 is_touch_down_(false), |
158 input_state_lookup_(InputStateLookup::Create()), | 158 input_state_lookup_(InputStateLookup::Create()), |
159 context_factory_(NULL) { | 159 context_factory_(nullptr), |
| 160 context_factory_private_(nullptr) { |
160 DCHECK(lazy_tls_ptr.Pointer()->Get() == NULL); | 161 DCHECK(lazy_tls_ptr.Pointer()->Get() == NULL); |
161 lazy_tls_ptr.Pointer()->Set(this); | 162 lazy_tls_ptr.Pointer()->Set(this); |
162 } | 163 } |
163 | 164 |
164 void Env::Init() { | 165 void Env::Init() { |
165 if (RunningInsideMus()) | 166 if (RunningInsideMus()) |
166 return; | 167 return; |
167 #if defined(USE_OZONE) | 168 #if defined(USE_OZONE) |
168 // The ozone platform can provide its own event source. So initialize the | 169 // The ozone platform can provide its own event source. So initialize the |
169 // platform before creating the default event source. If running inside mus | 170 // platform before creating the default event source. If running inside mus |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 std::unique_ptr<ui::EventTargetIterator> Env::GetChildIterator() const { | 208 std::unique_ptr<ui::EventTargetIterator> Env::GetChildIterator() const { |
208 return nullptr; | 209 return nullptr; |
209 } | 210 } |
210 | 211 |
211 ui::EventTargeter* Env::GetEventTargeter() { | 212 ui::EventTargeter* Env::GetEventTargeter() { |
212 NOTREACHED(); | 213 NOTREACHED(); |
213 return NULL; | 214 return NULL; |
214 } | 215 } |
215 | 216 |
216 } // namespace aura | 217 } // namespace aura |
OLD | NEW |