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

Side by Side Diff: ui/native_theme/native_theme_aurawin.cc

Issue 1461923002: Change name of NativeTheme::instance() to make it clear it's web only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NATIVE_THEME_EXPORT for mac Created 5 years, 1 month 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/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_mac.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 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/native_theme/native_theme_aurawin.h" 5 #include "ui/native_theme/native_theme_aurawin.h"
6 6
7 #include "third_party/skia/include/core/SkCanvas.h" 7 #include "third_party/skia/include/core/SkCanvas.h"
8 #include "ui/native_theme/common_theme.h" 8 #include "ui/native_theme/common_theme.h"
9 #include "ui/native_theme/native_theme_win.h" 9 #include "ui/native_theme/native_theme_win.h"
10 10
(...skipping 16 matching lines...) Expand all
27 case NativeTheme::kScrollbarCorner: 27 case NativeTheme::kScrollbarCorner:
28 return true; 28 return true;
29 default: 29 default:
30 return false; 30 return false;
31 } 31 }
32 } 32 }
33 33
34 } // namespace 34 } // namespace
35 35
36 // static 36 // static
37 NativeTheme* NativeTheme::instance() { 37 NativeTheme* NativeTheme::GetInstanceForWeb() {
38 return NativeThemeAuraWin::instance(); 38 return NativeThemeAuraWin::instance();
39 } 39 }
40 40
41 // static 41 // static
42 NativeThemeAura* NativeThemeAura::instance() { 42 NativeThemeAura* NativeThemeAura::instance() {
43 return NativeThemeAuraWin::instance(); 43 return NativeThemeAuraWin::instance();
44 } 44 }
45 45
46 // static 46 // static
47 NativeThemeAuraWin* NativeThemeAuraWin::instance() { 47 NativeThemeAuraWin* NativeThemeAuraWin::instance() {
(...skipping 30 matching lines...) Expand all
78 78
79 // We want aura on windows to use the same size for scrollbars as we would in 79 // We want aura on windows to use the same size for scrollbars as we would in
80 // the native theme. 80 // the native theme.
81 if (IsScrollbarPart(part)) 81 if (IsScrollbarPart(part))
82 return NativeThemeWin::instance()->GetPartSize(part, state, extra); 82 return NativeThemeWin::instance()->GetPartSize(part, state, extra);
83 83
84 return NativeThemeAura::GetPartSize(part, state, extra); 84 return NativeThemeAura::GetPartSize(part, state, extra);
85 } 85 }
86 86
87 } // namespace ui 87 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_aura.cc ('k') | ui/native_theme/native_theme_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698