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

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

Issue 396953002: Add testRunner.copyAtAndCapturePixelsAsyncThen() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added initialization for members Created 6 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 | « no previous file | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/test_runner.h
diff --git a/content/shell/renderer/test_runner/test_runner.h b/content/shell/renderer/test_runner/test_runner.h
index dfd045ce154789c88e3785ce87bb65636ba30938..3c98c38d64bc50e5409cb3bd4800c10e225d0b57 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -542,6 +542,12 @@ class TestRunner : public WebTestRunner,
// snapshot (width, height, snapshot) to the callback. The snapshot is in
// uint8 RGBA format.
void CapturePixelsAsyncThen(v8::Handle<v8::Function> callback);
+ // Similar to CapturePixelsAsyncThen(). Copies to the clipboard the image
+ // located at a particular point in the WebView (if there is such an image),
+ // reads back its pixels, and provides the snapshot to the callback. If there
+ // is no image at that point, calls the callback with (0, 0, empty_snapshot).
+ void CopyImageAtAndCapturePixelsAsyncThen(
+ int x, int y, const v8::Handle<v8::Function> callback);
void SetMockPushClientSuccess(const std::string& endpoint,
const std::string& registration_id);
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698