OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |