Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: ui/aura/env.cc

Issue 2563783002: ui + mus: Split ContextFactory into ContextFactory(Client) and ContextFactoryPrivate (Closed)
Patch Set: Restore mash Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/env.h ('k') | ui/aura/mus/mus_context_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/env.h ('k') | ui/aura/mus/mus_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698