diff options
Diffstat (limited to 'webkit/glue/webview.h')
-rw-r--r-- | webkit/glue/webview.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/webkit/glue/webview.h b/webkit/glue/webview.h index dcc3643..1ada9cf 100644 --- a/webkit/glue/webview.h +++ b/webkit/glue/webview.h @@ -82,6 +82,15 @@ class WebView : public WebKit::WebWidget { // onbeforeunload event handlers. virtual bool ShouldClose() = 0; + // Tells the current page to close, running the onunload handler. + // TODO(creis): We'd rather use WebWidget::Close(), but that sets its + // delegate_ to NULL, preventing any JavaScript dialogs in the onunload + // handler from appearing. This lets us shortcut that for now, but we should + // refactor close messages so that this isn't necessary. + // TODO(darin): This comment is out-of-date, and we should be able to use + // WebWidget::Close now. + virtual void ClosePage() = 0; + // // @method mainFrame // @abstract Return the top level frame. |