Chromium Code Reviews| Index: Source/testing/runner/TestRunner.cpp |
| diff --git a/Source/testing/runner/TestRunner.cpp b/Source/testing/runner/TestRunner.cpp |
| index 555b811a216faa2bdd363b7c209830a78575b9b3..2bd778bc9498b3a33cfc203417048c1c12571869 100644 |
| --- a/Source/testing/runner/TestRunner.cpp |
| +++ b/Source/testing/runner/TestRunner.cpp |
| @@ -283,6 +283,7 @@ TestRunner::TestRunner(TestInterfaces* interfaces) |
| #if ENABLE_NOTIFICATIONS |
| bindMethod("grantWebNotificationPermission", &TestRunner::grantWebNotificationPermission); |
| bindMethod("simulateLegacyWebNotificationClick", &TestRunner::simulateLegacyWebNotificationClick); |
| + bindMethod("removeAllWebNotificationPermissions", &TestRunner::removeAllWebNotificationPermissions); |
| #endif |
| bindMethod("addMockSpeechInputResult", &TestRunner::addMockSpeechInputResult); |
| bindMethod("setMockSpeechInputDumpRect", &TestRunner::setMockSpeechInputDumpRect); |
| @@ -311,7 +312,6 @@ TestRunner::TestRunner(TestInterfaces* interfaces) |
| // The following are stubs. |
| bindMethod("dumpDatabaseCallbacks", &TestRunner::notImplemented); |
| bindMethod("denyWebNotificationPermission", &TestRunner::notImplemented); |
| - bindMethod("removeAllWebNotificationPermissions", &TestRunner::notImplemented); |
| bindMethod("simulateWebNotificationClick", &TestRunner::notImplemented); |
| bindMethod("setIconDatabaseEnabled", &TestRunner::notImplemented); |
| bindMethod("setScrollbarPolicy", &TestRunner::notImplemented); |
| @@ -1858,6 +1858,11 @@ void TestRunner::simulateLegacyWebNotificationClick(const CppArgumentList& argum |
| } |
| result->set(m_notificationPresenter->simulateClick(WebString::fromUTF8(arguments[0].toString()))); |
| } |
| +void TestRunner::removeAllWebNotificationPermissions(const CppArgumentList& arguments, CppVariant* result) |
| +{ |
| + m_notificationPresenter->removeAllWebNotificationPermissions(); |
|
jochen (gone - plz use gerrit)
2013/08/21 08:48:15
why not do this in TestRunner::reset automatically
|
| + result->setNull(); |
| +} |
| #endif |
| void TestRunner::addMockSpeechInputResult(const CppArgumentList& arguments, CppVariant* result) |