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

Side by Side Diff: ui/views/test/test_views_delegate_aura.cc

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase (conflict in layout_delegate.h due to r457774) Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/views/test/test_views_delegate.h" 5 #include "ui/views/test/test_views_delegate.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "ui/aura/env.h" 8 #include "ui/aura/env.h"
9 9
10 #if !defined(OS_CHROMEOS) 10 #if !defined(OS_CHROMEOS)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 ui::ContextFactoryPrivate* TestViewsDelegate::GetContextFactoryPrivate() { 54 ui::ContextFactoryPrivate* TestViewsDelegate::GetContextFactoryPrivate() {
55 if (context_factory_private_) 55 if (context_factory_private_)
56 return context_factory_private_; 56 return context_factory_private_;
57 if (aura::Env::GetInstance()) 57 if (aura::Env::GetInstance())
58 return aura::Env::GetInstance()->context_factory_private(); 58 return aura::Env::GetInstance()->context_factory_private();
59 return nullptr; 59 return nullptr;
60 } 60 }
61 61
62 const TypographyProvider& TestViewsDelegate::GetTypographyProvider() const {
63 return typography_provider_;
64 }
65
62 } // namespace views 66 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698