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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) 3 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org)
4 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 4 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 bindMethod("grantWebNotificationPermission", &TestRunner::grantWebNotificati onPermission); 282 bindMethod("grantWebNotificationPermission", &TestRunner::grantWebNotificati onPermission);
283 bindMethod("simulateLegacyWebNotificationClick", &TestRunner::simulateLegacy WebNotificationClick); 283 bindMethod("simulateLegacyWebNotificationClick", &TestRunner::simulateLegacy WebNotificationClick);
284 #endif 284 #endif
285 bindMethod("addMockSpeechInputResult", &TestRunner::addMockSpeechInputResult ); 285 bindMethod("addMockSpeechInputResult", &TestRunner::addMockSpeechInputResult );
286 bindMethod("setMockSpeechInputDumpRect", &TestRunner::setMockSpeechInputDump Rect); 286 bindMethod("setMockSpeechInputDumpRect", &TestRunner::setMockSpeechInputDump Rect);
287 bindMethod("addMockSpeechRecognitionResult", &TestRunner::addMockSpeechRecog nitionResult); 287 bindMethod("addMockSpeechRecognitionResult", &TestRunner::addMockSpeechRecog nitionResult);
288 bindMethod("setMockSpeechRecognitionError", &TestRunner::setMockSpeechRecogn itionError); 288 bindMethod("setMockSpeechRecognitionError", &TestRunner::setMockSpeechRecogn itionError);
289 bindMethod("wasMockSpeechRecognitionAborted", &TestRunner::wasMockSpeechReco gnitionAborted); 289 bindMethod("wasMockSpeechRecognitionAborted", &TestRunner::wasMockSpeechReco gnitionAborted);
290 bindMethod("display", &TestRunner::display); 290 bindMethod("display", &TestRunner::display);
291 bindMethod("displayInvalidatedRegion", &TestRunner::displayInvalidatedRegion ); 291 bindMethod("displayInvalidatedRegion", &TestRunner::displayInvalidatedRegion );
292 bindMethod("isChooserShown", &TestRunner::isChooserShown);
292 293
293 // Properties. 294 // Properties.
294 bindProperty("globalFlag", &m_globalFlag); 295 bindProperty("globalFlag", &m_globalFlag);
295 bindProperty("titleTextDirection", &m_titleTextDirection); 296 bindProperty("titleTextDirection", &m_titleTextDirection);
296 bindProperty("platformName", &m_platformName); 297 bindProperty("platformName", &m_platformName);
297 bindProperty("tooltipText", &m_tooltipText); 298 bindProperty("tooltipText", &m_tooltipText);
298 299
299 // webHistoryItemCount is used by tests in LayoutTests\http\tests\history 300 // webHistoryItemCount is used by tests in LayoutTests\http\tests\history
300 bindProperty("webHistoryItemCount", &m_webHistoryItemCount); 301 bindProperty("webHistoryItemCount", &m_webHistoryItemCount);
301 bindProperty("interceptPostMessage", &m_interceptPostMessage); 302 bindProperty("interceptPostMessage", &m_interceptPostMessage);
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 showDevTools(); 1654 showDevTools();
1654 result->setNull(); 1655 result->setNull();
1655 } 1656 }
1656 1657
1657 void TestRunner::closeWebInspector(const CppArgumentList& args, CppVariant* resu lt) 1658 void TestRunner::closeWebInspector(const CppArgumentList& args, CppVariant* resu lt)
1658 { 1659 {
1659 m_delegate->closeDevTools(); 1660 m_delegate->closeDevTools();
1660 result->setNull(); 1661 result->setNull();
1661 } 1662 }
1662 1663
1664 void TestRunner::isChooserShown(const CppArgumentList&, CppVariant* result)
1665 {
1666 result->set(m_proxy->isChooserShown());
1667 }
1668
1663 void TestRunner::evaluateInWebInspector(const CppArgumentList& arguments, CppVar iant* result) 1669 void TestRunner::evaluateInWebInspector(const CppArgumentList& arguments, CppVar iant* result)
1664 { 1670 {
1665 result->setNull(); 1671 result->setNull();
1666 if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isStri ng()) 1672 if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isStri ng())
1667 return; 1673 return;
1668 m_delegate->evaluateInWebInspector(arguments[0].toInt32(), arguments[1].toSt ring()); 1674 m_delegate->evaluateInWebInspector(arguments[0].toInt32(), arguments[1].toSt ring());
1669 } 1675 }
1670 1676
1671 void TestRunner::clearAllDatabases(const CppArgumentList& arguments, CppVariant* result) 1677 void TestRunner::clearAllDatabases(const CppArgumentList& arguments, CppVariant* result)
1672 { 1678 {
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2032 result->setNull(); 2038 result->setNull();
2033 } 2039 }
2034 2040
2035 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp Variant* result) 2041 void TestRunner::setPointerLockWillFailSynchronously(const CppArgumentList&, Cpp Variant* result)
2036 { 2042 {
2037 m_pointerLockPlannedResult = PointerLockWillFailSync; 2043 m_pointerLockPlannedResult = PointerLockWillFailSync;
2038 result->setNull(); 2044 result->setNull();
2039 } 2045 }
2040 2046
2041 } 2047 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698