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

Side by Side Diff: webkit/child/webthemeengine_impl_android.cc

Issue 149513010: Wires through ScrollbarCorner to NativeTheme. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 "webkit/child/webthemeengine_impl_android.h" 5 #include "webkit/child/webthemeengine_impl_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "skia/ext/platform_canvas.h" 8 #include "skia/ext/platform_canvas.h"
9 #include "third_party/WebKit/public/platform/WebRect.h" 9 #include "third_party/WebKit/public/platform/WebRect.h"
10 #include "third_party/WebKit/public/platform/WebSize.h" 10 #include "third_party/WebKit/public/platform/WebSize.h"
(...skipping 11 matching lines...) Expand all
22 switch (part) { 22 switch (part) {
23 case WebThemeEngine::PartScrollbarDownArrow: 23 case WebThemeEngine::PartScrollbarDownArrow:
24 return ui::NativeTheme::kScrollbarDownArrow; 24 return ui::NativeTheme::kScrollbarDownArrow;
25 case WebThemeEngine::PartScrollbarLeftArrow: 25 case WebThemeEngine::PartScrollbarLeftArrow:
26 return ui::NativeTheme::kScrollbarLeftArrow; 26 return ui::NativeTheme::kScrollbarLeftArrow;
27 case WebThemeEngine::PartScrollbarRightArrow: 27 case WebThemeEngine::PartScrollbarRightArrow:
28 return ui::NativeTheme::kScrollbarRightArrow; 28 return ui::NativeTheme::kScrollbarRightArrow;
29 case WebThemeEngine::PartScrollbarUpArrow: 29 case WebThemeEngine::PartScrollbarUpArrow:
30 return ui::NativeTheme::kScrollbarUpArrow; 30 return ui::NativeTheme::kScrollbarUpArrow;
31 case WebThemeEngine::PartScrollbarHorizontalThumb: 31 case WebThemeEngine::PartScrollbarHorizontalThumb:
32 case WebThemeEngine::PartScrollbarVerticalThumb:
33 case WebThemeEngine::PartScrollbarHorizontalTrack:
34 case WebThemeEngine::PartScrollbarVerticalTrack:
35 case WebThemeEngine::PartScrollbarCorner:
32 // Android doesn't draw scrollbars. 36 // Android doesn't draw scrollbars.
33 NOTREACHED(); 37 NOTREACHED();
34 return static_cast<ui::NativeTheme::Part>(0); 38 return static_cast<ui::NativeTheme::Part>(0);
35 case WebThemeEngine::PartScrollbarVerticalThumb:
36 // Android doesn't draw scrollbars.
37 NOTREACHED();
38 return static_cast<ui::NativeTheme::Part>(0);
39 case WebThemeEngine::PartScrollbarHorizontalTrack:
40 // Android doesn't draw scrollbars.
41 NOTREACHED();
42 return static_cast<ui::NativeTheme::Part>(0);
43 case WebThemeEngine::PartScrollbarVerticalTrack:
44 // Android doesn't draw scrollbars.
45 NOTREACHED();
46 return static_cast<ui::NativeTheme::Part>(0);
47 case WebThemeEngine::PartCheckbox: 39 case WebThemeEngine::PartCheckbox:
48 return ui::NativeTheme::kCheckbox; 40 return ui::NativeTheme::kCheckbox;
49 case WebThemeEngine::PartRadio: 41 case WebThemeEngine::PartRadio:
50 return ui::NativeTheme::kRadio; 42 return ui::NativeTheme::kRadio;
51 case WebThemeEngine::PartButton: 43 case WebThemeEngine::PartButton:
52 return ui::NativeTheme::kPushButton; 44 return ui::NativeTheme::kPushButton;
53 case WebThemeEngine::PartTextField: 45 case WebThemeEngine::PartTextField:
54 return ui::NativeTheme::kTextField; 46 return ui::NativeTheme::kTextField;
55 case WebThemeEngine::PartMenuList: 47 case WebThemeEngine::PartMenuList:
56 return ui::NativeTheme::kMenuList; 48 return ui::NativeTheme::kMenuList;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 GetNativeThemeExtraParams( 169 GetNativeThemeExtraParams(
178 part, state, extra_params, &native_theme_extra_params); 170 part, state, extra_params, &native_theme_extra_params);
179 ui::NativeTheme::instance()->Paint( 171 ui::NativeTheme::instance()->Paint(
180 canvas, 172 canvas,
181 NativeThemePart(part), 173 NativeThemePart(part),
182 NativeThemeState(state), 174 NativeThemeState(state),
183 gfx::Rect(rect), 175 gfx::Rect(rect),
184 native_theme_extra_params); 176 native_theme_extra_params);
185 } 177 }
186 } // namespace webkit_glue 178 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/child/webfallbackthemeengine_impl.cc ('k') | webkit/child/webthemeengine_impl_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698