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

Side by Side Diff: mojo/services/html_viewer/webthemeengine_impl.cc

Issue 393983004: Move mojo/examples/html_viewer to mojo/services/html_viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nuke 'examples' namespace Created 6 years, 5 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 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 "mojo/examples/html_viewer/webthemeengine_impl.h" 5 #include "mojo/services/html_viewer/webthemeengine_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/native_theme.h" 10 #include "ui/native_theme/native_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::WebThemeEngine; 15 using blink::WebThemeEngine;
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace examples {
19 18
20 static ui::NativeTheme::Part NativeThemePart( 19 static ui::NativeTheme::Part NativeThemePart(
21 WebThemeEngine::Part part) { 20 WebThemeEngine::Part part) {
22 switch (part) { 21 switch (part) {
23 case WebThemeEngine::PartScrollbarDownArrow: 22 case WebThemeEngine::PartScrollbarDownArrow:
24 return ui::NativeTheme::kScrollbarDownArrow; 23 return ui::NativeTheme::kScrollbarDownArrow;
25 case WebThemeEngine::PartScrollbarLeftArrow: 24 case WebThemeEngine::PartScrollbarLeftArrow:
26 return ui::NativeTheme::kScrollbarLeftArrow; 25 return ui::NativeTheme::kScrollbarLeftArrow;
27 case WebThemeEngine::PartScrollbarRightArrow: 26 case WebThemeEngine::PartScrollbarRightArrow:
28 return ui::NativeTheme::kScrollbarRightArrow; 27 return ui::NativeTheme::kScrollbarRightArrow;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 const blink::WebRect& rect) { 192 const blink::WebRect& rect) {
194 ui::NativeTheme::instance()->PaintStateTransition( 193 ui::NativeTheme::instance()->PaintStateTransition(
195 canvas, 194 canvas,
196 NativeThemePart(part), 195 NativeThemePart(part),
197 NativeThemeState(startState), 196 NativeThemeState(startState),
198 NativeThemeState(endState), 197 NativeThemeState(endState),
199 progress, 198 progress,
200 gfx::Rect(rect)); 199 gfx::Rect(rect));
201 } 200 }
202 201
203 } // namespace examples
204 } // namespace mojo 202 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/html_viewer/webthemeengine_impl.h ('k') | mojo/services/html_viewer/webthread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698