| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #if defined(USE_OZONE) | 24 #if defined(USE_OZONE) |
| 25 #include "ui/ozone/public/ozone_platform.h" | 25 #include "ui/ozone/public/ozone_platform.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 namespace aura { | 28 namespace aura { |
| 29 | 29 |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 // Env is thread local so that aura may be used on multiple threads. | 32 // Env is thread local so that aura may be used on multiple threads. |
| 33 base::LazyInstance<base::ThreadLocalPointer<Env> >::Leaky lazy_tls_ptr = | 33 base::LazyInstance<base::ThreadLocalPointer<Env>>::Leaky lazy_tls_ptr = |
| 34 LAZY_INSTANCE_INITIALIZER; | 34 LAZY_INSTANCE_INITIALIZER; |
| 35 | 35 |
| 36 // Returns true if running inside of mus. Checks for mojo specific flag. | 36 // Returns true if running inside of mus. Checks for mojo specific flag. |
| 37 bool RunningInsideMus() { | 37 bool RunningInsideMus() { |
| 38 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 38 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 39 "primordial-pipe-token"); | 39 "primordial-pipe-token"); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace | 42 } // namespace |
| 43 | 43 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 std::unique_ptr<ui::EventTargetIterator> Env::GetChildIterator() const { | 227 std::unique_ptr<ui::EventTargetIterator> Env::GetChildIterator() const { |
| 228 return nullptr; | 228 return nullptr; |
| 229 } | 229 } |
| 230 | 230 |
| 231 ui::EventTargeter* Env::GetEventTargeter() { | 231 ui::EventTargeter* Env::GetEventTargeter() { |
| 232 NOTREACHED(); | 232 NOTREACHED(); |
| 233 return NULL; | 233 return NULL; |
| 234 } | 234 } |
| 235 | 235 |
| 236 } // namespace aura | 236 } // namespace aura |
| OLD | NEW |