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

Side by Side Diff: mandoline/ui/aura/aura_init.cc

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated all the namespaces in mus Created 5 years, 3 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "mandoline/ui/aura/aura_init.h" 5 #include "mandoline/ui/aura/aura_init.h"
6 6
7 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "components/mus/public/cpp/view.h" 10 #include "components/mus/public/cpp/view.h"
(...skipping 19 matching lines...) Expand all
30 std::set<std::string> paths; 30 std::set<std::string> paths;
31 paths.insert(kResourceUIPak); 31 paths.insert(kResourceUIPak);
32 return paths; 32 return paths;
33 } 33 }
34 34
35 } // namespace 35 } // namespace
36 36
37 // TODO(sky): the 1.f should be view->viewport_metrics().device_scale_factor, 37 // TODO(sky): the 1.f should be view->viewport_metrics().device_scale_factor,
38 // but that causes clipping problems. No doubt we're not scaling a size 38 // but that causes clipping problems. No doubt we're not scaling a size
39 // correctly. 39 // correctly.
40 AuraInit::AuraInit(mojo::View* view, mojo::Shell* shell) 40 AuraInit::AuraInit(mus::View* view, mojo::Shell* shell)
41 : ui_init_(view->viewport_metrics().size_in_pixels.To<gfx::Size>(), 1.f) { 41 : ui_init_(view->viewport_metrics().size_in_pixels.To<gfx::Size>(), 1.f) {
42 aura::Env::CreateInstance(false); 42 aura::Env::CreateInstance(false);
43 43
44 InitializeResources(shell); 44 InitializeResources(shell);
45 45
46 ui::InitializeInputMethodForTesting(); 46 ui::InitializeInputMethodForTesting();
47 } 47 }
48 48
49 AuraInit::~AuraInit() { 49 AuraInit::~AuraInit() {
50 } 50 }
(...skipping 18 matching lines...) Expand all
69 #if defined(OS_LINUX) && !defined(OS_ANDROID) 69 #if defined(OS_LINUX) && !defined(OS_ANDROID)
70 SkFontConfigInterface::SetGlobal(new font_service::FontLoader(shell)); 70 SkFontConfigInterface::SetGlobal(new font_service::FontLoader(shell));
71 #endif 71 #endif
72 72
73 // There is a bunch of static state in gfx::Font, by running this now, 73 // There is a bunch of static state in gfx::Font, by running this now,
74 // before any other apps load, we ensure all the state is set up. 74 // before any other apps load, we ensure all the state is set up.
75 gfx::Font(); 75 gfx::Font();
76 } 76 }
77 77
78 } // namespace mandoline 78 } // namespace mandoline
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698