Chromium Code Reviews| 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..550bbbe47ad17df2849a5604c35b4d49043efea6 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 test_shell to dump the drag image |
|
tkent
2015/02/12 00:50:49
test_shell -> content_shell or test_runner
We hav
jackhou1
2015/02/12 02:05:28
Changed to "WebTestProxy".
|
| + // 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_; |