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

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

Issue 916893003: Add test_runner hook to dump drag image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check flag instead of drag_image_. Handle isNull case. Created 5 years, 10 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 ffb6bf0a4ee71e5a43902d4e33ef24e55cabc0da..0a6e704b3d5c9e00265434f3f20006eb6ea32fab 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -119,6 +119,7 @@ class TestRunner : public WebTestRunner,
void RequestPointerUnlock();
bool isPointerLocked();
void setToolTipText(const blink::WebString&);
+ bool shouldDumpDragImage();
bool midiAccessorResult();
@@ -469,6 +470,12 @@ class TestRunner : public WebTestRunner,
// WebFrameClient receives a loadURLExternally() call.
void WaitUntilExternalURLLoad();
+ // This function sets a flag which tells the WebTestProxy to dump the drag
+ // image when the next drag-and-drop is initiated. It is equivalent to
+ // DumpAsTextWithPixelResults but the pixel results will be the drag image
+ // instead of a snapshot of the page.
+ void DumpDragImage();
+
///////////////////////////////////////////////////////////////////////////
// Methods interacting with the WebTestProxy
@@ -739,6 +746,9 @@ class TestRunner : public WebTestRunner,
// taking possible transforms of the selection rect into account.
bool dump_selection_rect_;
+ // If true, the test_shell will dump the drag image as pixel results.
+ bool dump_drag_image_;
+
// If true, pixel dump will be produced as a series of 1px-tall, view-wide
// individual paints over the height of the view.
bool test_repaint_;
« 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