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

Side by Side Diff: content/shell/renderer/test_runner/WebTestThemeEngineMock.cpp

Issue 264003003: test_runner: Move everything else into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/shell/renderer/test_runner/WebTestThemeEngineMock.h" 5 #include "content/shell/renderer/test_runner/WebTestThemeEngineMock.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"
11 #include "third_party/skia/include/core/SkRect.h" 11 #include "third_party/skia/include/core/SkRect.h"
12 12
13 using blink::WebCanvas; 13 using blink::WebCanvas;
14 using blink::WebColor; 14 using blink::WebColor;
15 using blink::WebRect; 15 using blink::WebRect;
16 using blink::WebThemeEngine; 16 using blink::WebThemeEngine;
17 17
18 namespace WebTestRunner { 18 namespace content {
19 19
20 static const SkColor edgeColor = SK_ColorBLACK; 20 static const SkColor edgeColor = SK_ColorBLACK;
21 static const SkColor readOnlyColor = SkColorSetRGB(0xe9, 0xc2, 0xa6); 21 static const SkColor readOnlyColor = SkColorSetRGB(0xe9, 0xc2, 0xa6);
22 22
23 SkColor bgColors(WebThemeEngine::State state) { 23 SkColor bgColors(WebThemeEngine::State state) {
24 switch (state) { 24 switch (state) {
25 case WebThemeEngine::StateDisabled: 25 case WebThemeEngine::StateDisabled:
26 return SkColorSetRGB(0xc9, 0xc9, 0xc9); 26 return SkColorSetRGB(0xc9, 0xc9, 0xc9);
27 case WebThemeEngine::StateHover: 27 case WebThemeEngine::StateHover:
28 return SkColorSetRGB(0x43, 0xf9, 0xff); 28 return SkColorSetRGB(0x43, 0xf9, 0xff);
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 markState(canvas, irect, state); 638 markState(canvas, irect, state);
639 break; 639 break;
640 } 640 }
641 default: 641 default:
642 // FIXME: Should we do something here to indicate that we got an invalid part? 642 // FIXME: Should we do something here to indicate that we got an invalid part?
643 // Unfortunately, we can't assert because we don't have access to WTF or base. 643 // Unfortunately, we can't assert because we don't have access to WTF or base.
644 break; 644 break;
645 } 645 }
646 } 646 }
647 647
648 } // namespace WebTestRunner 648 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698