diff options
Diffstat (limited to 'webkit/tools/test_shell/layout_test_controller.cc')
-rw-r--r-- | webkit/tools/test_shell/layout_test_controller.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc index 392767fa..79d3dff 100644 --- a/webkit/tools/test_shell/layout_test_controller.cc +++ b/webkit/tools/test_shell/layout_test_controller.cc @@ -104,6 +104,7 @@ LayoutTestController::LayoutTestController(TestShell* shell) : BindMethod("objCIdentityIsEqual", &LayoutTestController::objCIdentityIsEqual); BindMethod("setAlwaysAcceptCookies", &LayoutTestController::setAlwaysAcceptCookies); BindMethod("showWebInspector", &LayoutTestController::showWebInspector); + BindMethod("closeWebInspector", &LayoutTestController::closeWebInspector); BindMethod("setWindowIsKey", &LayoutTestController::setWindowIsKey); BindMethod("setTabKeyCyclesThroughElements", &LayoutTestController::setTabKeyCyclesThroughElements); BindMethod("setUserStyleSheetLocation", &LayoutTestController::setUserStyleSheetLocation); @@ -584,6 +585,12 @@ void LayoutTestController::showWebInspector( result->SetNull(); } +void LayoutTestController::closeWebInspector( + const CppArgumentList& args, CppVariant* result) { + shell_->CloseDevTools(); + result->SetNull(); +} + void LayoutTestController::setWindowIsKey( const CppArgumentList& args, CppVariant* result) { if (args.size() > 0 && args[0].isBool()) { |