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() {} |
}; |