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

Unified Diff: Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp

Issue 15535005: Added window.testRunner.isChooserShown() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved things to WebTestProxy Created 7 years, 7 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
Index: Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp b/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
index 9d38dd97c34aee109d39364179ac275f622011ab..9d5d638279a43a54f2d83ea9ae175287235d3894 100644
--- a/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
+++ b/Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp
@@ -289,6 +289,7 @@ TestRunner::TestRunner(TestInterfaces* interfaces)
bindMethod("wasMockSpeechRecognitionAborted", &TestRunner::wasMockSpeechRecognitionAborted);
bindMethod("display", &TestRunner::display);
bindMethod("displayInvalidatedRegion", &TestRunner::displayInvalidatedRegion);
+ bindMethod("isChooserShown", &TestRunner::isChooserShown);
// Properties.
bindProperty("globalFlag", &m_globalFlag);
@@ -1664,6 +1665,11 @@ void TestRunner::closeWebInspector(const CppArgumentList& args, CppVariant* resu
result->setNull();
}
+void TestRunner::isChooserShown(const CppArgumentList&, CppVariant* result)
+{
+ result->set(m_proxy->isChooserShown());
+}
+
void TestRunner::evaluateInWebInspector(const CppArgumentList& arguments, CppVariant* result)
{
result->setNull();

Powered by Google App Engine
This is Rietveld 408576698