[safe-browsing] Database full hash matches like prefix match.
[chromium-blink-merge.git] / content / shell / renderer / test_runner / WebTestThemeEngineMac.h
blob2583e81cdc0d4c6f4012d4e3bffd3ec179889c04
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
3 // found in the LICENSE file.
5 // 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
7 // more pixel baselines.
9 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTTHEMEENGINEMAC_H_
10 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTTHEMEENGINEMAC_H_
12 #include "base/basictypes.h"
13 #include "third_party/WebKit/public/platform/WebThemeEngine.h"
15 namespace WebTestRunner {
17 class WebTestThemeEngineMac : public blink::WebThemeEngine {
18 public:
19 WebTestThemeEngineMac() { }
20 virtual ~WebTestThemeEngineMac() { }
22 virtual void paintScrollbarThumb(
23 blink::WebCanvas*,
24 blink::WebThemeEngine::State,
25 blink::WebThemeEngine::Size,
26 const blink::WebRect&,
27 const blink::WebThemeEngine::ScrollbarInfo&);
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&);
43 DISALLOW_COPY_AND_ASSIGN(WebTestThemeEngineMac);
48 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTTHEMEENGINEMAC_H_