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

Unified Diff: content/shell/renderer/test_runner/WebTestThemeEngineMac.h

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/renderer/test_runner/WebTestThemeEngineMac.h
diff --git a/content/shell/renderer/test_runner/WebTestThemeEngineMac.h b/content/shell/renderer/test_runner/WebTestThemeEngineMac.h
new file mode 100644
index 0000000000000000000000000000000000000000..f51d128eb73d1349cd7f17dc56070f62a3065c38
--- /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

Powered by Google App Engine
This is Rietveld 408576698