diff options
author | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-02 17:32:19 +0000 |
---|---|---|
committer | apavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-02 17:32:19 +0000 |
commit | d8156837a8fc41a2a760f76206f590812fda816a (patch) | |
tree | e38d9ae07b3b6dc02a34df370c3c4e36d0c1d28c /webkit | |
parent | cbc480d11e2571672e96d2fc0f0aaeeeec7bd902 (diff) | |
download | chromium_src-d8156837a8fc41a2a760f76206f590812fda816a.zip chromium_src-d8156837a8fc41a2a760f76206f590812fda816a.tar.gz chromium_src-d8156837a8fc41a2a760f76206f590812fda816a.tar.bz2 |
Add windowUnloading method to InspectorFrontendHost object
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/460019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33577 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/webdevtoolsfrontend_impl.cc | 10 | ||||
-rw-r--r-- | webkit/glue/webdevtoolsfrontend_impl.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/webkit/glue/webdevtoolsfrontend_impl.cc b/webkit/glue/webdevtoolsfrontend_impl.cc index 6c7e4d4..400c284 100644 --- a/webkit/glue/webdevtoolsfrontend_impl.cc +++ b/webkit/glue/webdevtoolsfrontend_impl.cc @@ -196,6 +196,9 @@ WebDevToolsFrontendImpl::WebDevToolsFrontendImpl( dev_tools_host_->AddProtoFunction( "setSetting", WebDevToolsFrontendImpl::JsSetSetting); + dev_tools_host_->AddProtoFunction( + "windowUnloading", + WebDevToolsFrontendImpl::JsWindowUnloading); dev_tools_host_->Build(); } @@ -451,3 +454,10 @@ v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsDebuggerPauseScript( frontend->client_->sendDebuggerPauseScript(); return v8::Undefined(); } + +// static +v8::Handle<v8::Value> WebDevToolsFrontendImpl::JsWindowUnloading( + const v8::Arguments& args) { + //TODO(pfeldman): Implement this. + return v8::Undefined(); +} diff --git a/webkit/glue/webdevtoolsfrontend_impl.h b/webkit/glue/webdevtoolsfrontend_impl.h index 0e852dc..7540c7d 100644 --- a/webkit/glue/webdevtoolsfrontend_impl.h +++ b/webkit/glue/webdevtoolsfrontend_impl.h @@ -87,6 +87,8 @@ class WebDevToolsFrontendImpl : public WebKit::WebDevToolsFrontend, const v8::Arguments& args); static v8::Handle<v8::Value> JsDebuggerPauseScript( const v8::Arguments& args); + static v8::Handle<v8::Value> JsWindowUnloading( + const v8::Arguments& args); WebKit::WebViewImpl* web_view_impl_; WebKit::WebDevToolsFrontendClient* client_; |