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

Side by Side Diff: content/shell/renderer/test_runner/mock_web_theme_engine_mac.h

Issue 421703003: test_runner: Rename WebTestThemeEngineMac to MockWebThemeEngineMac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gyp fix Created 6 years, 4 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 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_THEME_ENGINE_MAC_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_THEME_ENGINE_MAC_H_
7
8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebThemeEngine.h"
10
11 namespace content {
12
5 // This implements the WebThemeEngine API in such a way that we match the Mac 13 // This implements the WebThemeEngine API in such a way that we match the Mac
6 // port rendering more than usual Chromium path, thus allowing us to share 14 // port rendering more than usual Chromium path, thus allowing us to share
7 // more pixel baselines. 15 // more pixel baselines.
16 class MockWebThemeEngineMac : public blink::WebThemeEngine {
17 public:
18 MockWebThemeEngineMac() {}
19 virtual ~MockWebThemeEngineMac() {}
8 20
9 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTTHEMEENGINEMAC_H_ 21 virtual void paintScrollbarThumb(blink::WebCanvas*,
10 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTTHEMEENGINEMAC_H_ 22 blink::WebThemeEngine::State,
23 blink::WebThemeEngine::Size,
24 const blink::WebRect&,
25 const blink::WebThemeEngine::ScrollbarInfo&);
11 26
12 #include "base/basictypes.h" 27 private:
13 #include "third_party/WebKit/public/platform/WebThemeEngine.h" 28 virtual void paintHIThemeScrollbarThumb(
29 blink::WebCanvas*,
30 blink::WebThemeEngine::State,
31 blink::WebThemeEngine::Size,
32 const blink::WebRect&,
33 const blink::WebThemeEngine::ScrollbarInfo&);
34 virtual void paintNSScrollerScrollbarThumb(
35 blink::WebCanvas*,
36 blink::WebThemeEngine::State,
37 blink::WebThemeEngine::Size,
38 const blink::WebRect&,
39 const blink::WebThemeEngine::ScrollbarInfo&);
14 40
15 namespace content { 41 DISALLOW_COPY_AND_ASSIGN(MockWebThemeEngineMac);
16
17 class WebTestThemeEngineMac : public blink::WebThemeEngine {
18 public:
19 WebTestThemeEngineMac() { }
20 virtual ~WebTestThemeEngineMac() { }
21
22 virtual void paintScrollbarThumb(
23 blink::WebCanvas*,
24 blink::WebThemeEngine::State,
25 blink::WebThemeEngine::Size,
26 const blink::WebRect&,
27 const blink::WebThemeEngine::ScrollbarInfo&);
28
29 private:
30 virtual void paintHIThemeScrollbarThumb(
31 blink::WebCanvas*,
32 blink::WebThemeEngine::State,
33 blink::WebThemeEngine::Size,
34 const blink::WebRect&,
35 const blink::WebThemeEngine::ScrollbarInfo&);
36 virtual void paintNSScrollerScrollbarThumb(
37 blink::WebCanvas*,
38 blink::WebThemeEngine::State,
39 blink::WebThemeEngine::Size,
40 const blink::WebRect&,
41 const blink::WebThemeEngine::ScrollbarInfo&);
42
43 DISALLOW_COPY_AND_ASSIGN(WebTestThemeEngineMac);
44 }; 42 };
45 43
46 } // namespace content 44 } // namespace content
47 45
48 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTTHEMEENGINEMAC_H_ 46 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_THEME_ENGINE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698