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

Unified Diff: content/shell/test_runner/web_test_delegate.h

Issue 2962073002: OOPIF support for layout test pixel dumps.
Patch Set: Rebasing on top of 8bc8e844008b (still works locally). Created 3 years, 5 months 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
« no previous file with comments | « content/shell/test_runner/test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/test_runner/web_test_delegate.h
diff --git a/content/shell/test_runner/web_test_delegate.h b/content/shell/test_runner/web_test_delegate.h
index 344018e32df8e68aba64308c178c79cd14db918a..11a912c16c63df998d17683e8dc1e8e605bf0fd2 100644
--- a/content/shell/test_runner/web_test_delegate.h
+++ b/content/shell/test_runner/web_test_delegate.h
@@ -18,6 +18,8 @@
#define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
+class SkBitmap;
+
namespace base {
class DictionaryValue;
}
@@ -301,6 +303,11 @@ class WebTestDelegate {
virtual bool IsNavigationInitiatedByRenderer(
const blink::WebURLRequest& request) = 0;
+ // Asks the delegate to take a pixels dump of the whole page (including OOPIFs
+ // if any) and to pass the result to |callback|.
+ virtual void DumpPixelsAsync(
+ base::OnceCallback<void(const SkBitmap&)> callback);
+
protected:
virtual ~WebTestDelegate() {}
};
« no previous file with comments | « content/shell/test_runner/test_runner.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698