OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 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. |
| 8 |
| 9 #ifndef WebTestThemeEngineMac_h |
| 10 #define WebTestThemeEngineMac_h |
| 11 |
| 12 #include "third_party/WebKit/public/platform/WebNonCopyable.h" |
| 13 #include "third_party/WebKit/public/platform/mac/WebThemeEngine.h" |
| 14 |
| 15 namespace WebTestRunner { |
| 16 |
| 17 class WebTestThemeEngineMac : public blink::WebThemeEngine, public blink::WebNon
Copyable { |
| 18 public: |
| 19 virtual ~WebTestThemeEngineMac() { } |
| 20 |
| 21 virtual void paintScrollbarThumb( |
| 22 blink::WebCanvas*, |
| 23 blink::WebThemeEngine::State, |
| 24 blink::WebThemeEngine::Size, |
| 25 const blink::WebRect&, |
| 26 const blink::WebThemeEngine::ScrollbarInfo&); |
| 27 |
| 28 private: |
| 29 virtual void paintHIThemeScrollbarThumb( |
| 30 blink::WebCanvas*, |
| 31 blink::WebThemeEngine::State, |
| 32 blink::WebThemeEngine::Size, |
| 33 const blink::WebRect&, |
| 34 const blink::WebThemeEngine::ScrollbarInfo&); |
| 35 virtual void paintNSScrollerScrollbarThumb( |
| 36 blink::WebCanvas*, |
| 37 blink::WebThemeEngine::State, |
| 38 blink::WebThemeEngine::Size, |
| 39 const blink::WebRect&, |
| 40 const blink::WebThemeEngine::ScrollbarInfo&); |
| 41 }; |
| 42 |
| 43 } |
| 44 |
| 45 #endif // WebTestThemeEngineMac_h |
OLD | NEW |