summaryrefslogtreecommitdiffstats
path: root/content/shell/renderer/test_runner/WebTestThemeEngineMac.h
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 13:27:38 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 13:27:38 +0000
commit3de922f39b244a05cf5ed58699256158048a1b89 (patch)
tree80f5fd65f420f54afa2daef7d217670812614bb6 /content/shell/renderer/test_runner/WebTestThemeEngineMac.h
parenta3e41cd4f1ed6879b25a3dcc8730db868df69fd4 (diff)
downloadchromium_src-3de922f39b244a05cf5ed58699256158048a1b89.zip
chromium_src-3de922f39b244a05cf5ed58699256158048a1b89.tar.gz
chromium_src-3de922f39b244a05cf5ed58699256158048a1b89.tar.bz2
Import TestRunner library into chromium.
The reasons for the move are: - it's actually a blink embedder, so it can't use blink/wtf types - it can't use base either - we want to replace CppBoundClass with gin::Wrappable, not possible in blink In the first step, this is mostly a 1:1 copy (except for include paths). Follow-up CLs will move the test plugin and layout tests helpers and clean up the coding style BUG=324658 R=abarth@chromium.org, maruel@chromium.org, torne@chromium.org, jam@chromium.org TBR=torne@chromium.org Review URL: https://codereview.chromium.org/110533009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/renderer/test_runner/WebTestThemeEngineMac.h')
-rw-r--r--content/shell/renderer/test_runner/WebTestThemeEngineMac.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/content/shell/renderer/test_runner/WebTestThemeEngineMac.h b/content/shell/renderer/test_runner/WebTestThemeEngineMac.h
new file mode 100644
index 0000000..f51d128
--- /dev/null
+++ b/content/shell/renderer/test_runner/WebTestThemeEngineMac.h
@@ -0,0 +1,45 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This implements the WebThemeEngine API in such a way that we match the Mac
+// port rendering more than usual Chromium path, thus allowing us to share
+// more pixel baselines.
+
+#ifndef WebTestThemeEngineMac_h
+#define WebTestThemeEngineMac_h
+
+#include "third_party/WebKit/public/platform/WebNonCopyable.h"
+#include "third_party/WebKit/public/platform/mac/WebThemeEngine.h"
+
+namespace WebTestRunner {
+
+class WebTestThemeEngineMac : public blink::WebThemeEngine, public blink::WebNonCopyable {
+public:
+ virtual ~WebTestThemeEngineMac() { }
+
+ virtual void paintScrollbarThumb(
+ blink::WebCanvas*,
+ blink::WebThemeEngine::State,
+ blink::WebThemeEngine::Size,
+ const blink::WebRect&,
+ const blink::WebThemeEngine::ScrollbarInfo&);
+
+private:
+ virtual void paintHIThemeScrollbarThumb(
+ blink::WebCanvas*,
+ blink::WebThemeEngine::State,
+ blink::WebThemeEngine::Size,
+ const blink::WebRect&,
+ const blink::WebThemeEngine::ScrollbarInfo&);
+ virtual void paintNSScrollerScrollbarThumb(
+ blink::WebCanvas*,
+ blink::WebThemeEngine::State,
+ blink::WebThemeEngine::Size,
+ const blink::WebRect&,
+ const blink::WebThemeEngine::ScrollbarInfo&);
+};
+
+}
+
+#endif // WebTestThemeEngineMac_h