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

Side by Side Diff: webkit/child/webfallbackthemeengine_impl.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
« no previous file with comments | « no previous file | webkit/child/webthemeengine_impl_android.cc » ('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 (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/webfallbackthemeengine_impl.h" 5 #include "webkit/child/webfallbackthemeengine_impl.h"
6 6
7 #include "skia/ext/platform_canvas.h" 7 #include "skia/ext/platform_canvas.h"
8 #include "third_party/WebKit/public/platform/WebRect.h" 8 #include "third_party/WebKit/public/platform/WebRect.h"
9 #include "third_party/WebKit/public/platform/WebSize.h" 9 #include "third_party/WebKit/public/platform/WebSize.h"
10 #include "ui/native_theme/fallback_theme.h" 10 #include "ui/native_theme/fallback_theme.h"
(...skipping 17 matching lines...) Expand all
28 case WebFallbackThemeEngine::PartScrollbarUpArrow: 28 case WebFallbackThemeEngine::PartScrollbarUpArrow:
29 return ui::NativeTheme::kScrollbarUpArrow; 29 return ui::NativeTheme::kScrollbarUpArrow;
30 case WebFallbackThemeEngine::PartScrollbarHorizontalThumb: 30 case WebFallbackThemeEngine::PartScrollbarHorizontalThumb:
31 return ui::NativeTheme::kScrollbarHorizontalThumb; 31 return ui::NativeTheme::kScrollbarHorizontalThumb;
32 case WebFallbackThemeEngine::PartScrollbarVerticalThumb: 32 case WebFallbackThemeEngine::PartScrollbarVerticalThumb:
33 return ui::NativeTheme::kScrollbarVerticalThumb; 33 return ui::NativeTheme::kScrollbarVerticalThumb;
34 case WebFallbackThemeEngine::PartScrollbarHorizontalTrack: 34 case WebFallbackThemeEngine::PartScrollbarHorizontalTrack:
35 return ui::NativeTheme::kScrollbarHorizontalTrack; 35 return ui::NativeTheme::kScrollbarHorizontalTrack;
36 case WebFallbackThemeEngine::PartScrollbarVerticalTrack: 36 case WebFallbackThemeEngine::PartScrollbarVerticalTrack:
37 return ui::NativeTheme::kScrollbarVerticalTrack; 37 return ui::NativeTheme::kScrollbarVerticalTrack;
38 case WebFallbackThemeEngine::PartScrollbarCorner:
39 return ui::NativeTheme::kScrollbarCorner;
38 case WebFallbackThemeEngine::PartCheckbox: 40 case WebFallbackThemeEngine::PartCheckbox:
39 return ui::NativeTheme::kCheckbox; 41 return ui::NativeTheme::kCheckbox;
40 case WebFallbackThemeEngine::PartRadio: 42 case WebFallbackThemeEngine::PartRadio:
41 return ui::NativeTheme::kRadio; 43 return ui::NativeTheme::kRadio;
42 case WebFallbackThemeEngine::PartButton: 44 case WebFallbackThemeEngine::PartButton:
43 return ui::NativeTheme::kPushButton; 45 return ui::NativeTheme::kPushButton;
44 case WebFallbackThemeEngine::PartTextField: 46 case WebFallbackThemeEngine::PartTextField:
45 return ui::NativeTheme::kTextField; 47 return ui::NativeTheme::kTextField;
46 case WebFallbackThemeEngine::PartMenuList: 48 case WebFallbackThemeEngine::PartMenuList:
47 return ui::NativeTheme::kMenuList; 49 return ui::NativeTheme::kMenuList;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 GetNativeThemeExtraParams( 184 GetNativeThemeExtraParams(
183 part, state, extra_params, &native_theme_extra_params); 185 part, state, extra_params, &native_theme_extra_params);
184 theme_->Paint(canvas, 186 theme_->Paint(canvas,
185 NativeThemePart(part), 187 NativeThemePart(part),
186 NativeThemeState(state), 188 NativeThemeState(state),
187 gfx::Rect(rect), 189 gfx::Rect(rect),
188 native_theme_extra_params); 190 native_theme_extra_params);
189 } 191 }
190 192
191 } // namespace webkit_glue 193 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « no previous file | webkit/child/webthemeengine_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698