OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 // This implements the WebThemeEngine API in such a way that we match the Mac | 26 // This implements the WebThemeEngine API in such a way that we match the Mac |
27 // port rendering more than usual Chromium path, thus allowing us to share | 27 // port rendering more than usual Chromium path, thus allowing us to share |
28 // more pixel baselines. | 28 // more pixel baselines. |
29 | 29 |
30 #ifndef WebTestThemeEngineMac_h | 30 #ifndef WebTestThemeEngineMac_h |
31 #define WebTestThemeEngineMac_h | 31 #define WebTestThemeEngineMac_h |
32 | 32 |
| 33 #include "public/platform/WebNonCopyable.h" |
33 #include "public/platform/mac/WebThemeEngine.h" | 34 #include "public/platform/mac/WebThemeEngine.h" |
34 | 35 |
35 namespace WebTestRunner { | 36 namespace WebTestRunner { |
36 | 37 |
37 class WebTestThemeEngineMac : public WebKit::WebThemeEngine { | 38 class WebTestThemeEngineMac : public WebKit::WebThemeEngine, public WebKit::WebN
onCopyable { |
38 public: | 39 public: |
39 virtual void paintScrollbarThumb( | 40 virtual void paintScrollbarThumb( |
40 WebKit::WebCanvas*, | 41 WebKit::WebCanvas*, |
41 WebKit::WebThemeEngine::State, | 42 WebKit::WebThemeEngine::State, |
42 WebKit::WebThemeEngine::Size, | 43 WebKit::WebThemeEngine::Size, |
43 const WebKit::WebRect&, | 44 const WebKit::WebRect&, |
44 const WebKit::WebThemeEngine::ScrollbarInfo&); | 45 const WebKit::WebThemeEngine::ScrollbarInfo&); |
45 | 46 |
46 private: | 47 private: |
47 virtual void paintHIThemeScrollbarThumb( | 48 virtual void paintHIThemeScrollbarThumb( |
48 WebKit::WebCanvas*, | 49 WebKit::WebCanvas*, |
49 WebKit::WebThemeEngine::State, | 50 WebKit::WebThemeEngine::State, |
50 WebKit::WebThemeEngine::Size, | 51 WebKit::WebThemeEngine::Size, |
51 const WebKit::WebRect&, | 52 const WebKit::WebRect&, |
52 const WebKit::WebThemeEngine::ScrollbarInfo&); | 53 const WebKit::WebThemeEngine::ScrollbarInfo&); |
53 virtual void paintNSScrollerScrollbarThumb( | 54 virtual void paintNSScrollerScrollbarThumb( |
54 WebKit::WebCanvas*, | 55 WebKit::WebCanvas*, |
55 WebKit::WebThemeEngine::State, | 56 WebKit::WebThemeEngine::State, |
56 WebKit::WebThemeEngine::Size, | 57 WebKit::WebThemeEngine::Size, |
57 const WebKit::WebRect&, | 58 const WebKit::WebRect&, |
58 const WebKit::WebThemeEngine::ScrollbarInfo&); | 59 const WebKit::WebThemeEngine::ScrollbarInfo&); |
59 }; | 60 }; |
60 | 61 |
61 } | 62 } |
62 | 63 |
63 #endif // WebTestThemeEngineMac_h | 64 #endif // WebTestThemeEngineMac_h |
OLD | NEW |