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

Side by Side Diff: content/child/webfallbackthemeengine_impl.cc

Issue 160023003: Move webfallbackthemeengine_impl.* to content/child/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix namespace nits 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/webfallbackthemeengine_impl.h" 5 #include "content/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"
11 11
12 using blink::WebCanvas; 12 using blink::WebCanvas;
13 using blink::WebColor; 13 using blink::WebColor;
14 using blink::WebRect; 14 using blink::WebRect;
15 using blink::WebFallbackThemeEngine; 15 using blink::WebFallbackThemeEngine;
16 16
17 namespace webkit_glue { 17 namespace content {
18 18
19 static ui::NativeTheme::Part NativeThemePart( 19 static ui::NativeTheme::Part NativeThemePart(
20 WebFallbackThemeEngine::Part part) { 20 WebFallbackThemeEngine::Part part) {
21 switch (part) { 21 switch (part) {
22 case WebFallbackThemeEngine::PartScrollbarDownArrow: 22 case WebFallbackThemeEngine::PartScrollbarDownArrow:
23 return ui::NativeTheme::kScrollbarDownArrow; 23 return ui::NativeTheme::kScrollbarDownArrow;
24 case WebFallbackThemeEngine::PartScrollbarLeftArrow: 24 case WebFallbackThemeEngine::PartScrollbarLeftArrow:
25 return ui::NativeTheme::kScrollbarLeftArrow; 25 return ui::NativeTheme::kScrollbarLeftArrow;
26 case WebFallbackThemeEngine::PartScrollbarRightArrow: 26 case WebFallbackThemeEngine::PartScrollbarRightArrow:
27 return ui::NativeTheme::kScrollbarRightArrow; 27 return ui::NativeTheme::kScrollbarRightArrow;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 ui::NativeTheme::ExtraParams native_theme_extra_params; 183 ui::NativeTheme::ExtraParams native_theme_extra_params;
184 GetNativeThemeExtraParams( 184 GetNativeThemeExtraParams(
185 part, state, extra_params, &native_theme_extra_params); 185 part, state, extra_params, &native_theme_extra_params);
186 theme_->Paint(canvas, 186 theme_->Paint(canvas,
187 NativeThemePart(part), 187 NativeThemePart(part),
188 NativeThemeState(state), 188 NativeThemeState(state),
189 gfx::Rect(rect), 189 gfx::Rect(rect),
190 native_theme_extra_params); 190 native_theme_extra_params);
191 } 191 }
192 192
193 } // namespace webkit_glue 193 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698