diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 17:32:51 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-27 17:32:51 +0000 |
commit | 2f1793eafae6419d8f0e776f441bcbe262e207d3 (patch) | |
tree | c5286986c7fa7bd007eaf2d3e1bcca57141c20c6 /chrome_frame/chrome_tab.idl | |
parent | 6f1dbc0060967d9ad7c214315f1ca843777d5c7f (diff) | |
download | chromium_src-2f1793eafae6419d8f0e776f441bcbe262e207d3.zip chromium_src-2f1793eafae6419d8f0e776f441bcbe262e207d3.tar.gz chromium_src-2f1793eafae6419d8f0e776f441bcbe262e207d3.tar.bz2 |
Add support for OnClose event in ActiveX and NPAPI
Provide event notification for window.close called within
ActiveX and NPAPI. Currently this is handled in ActiveDocument
to close the popups. In ActiveX and NPAPI plugin we just fire
an event as it is upto the container to decide what's the right
thing to do.
BUG=59664
TEST=New tests ChromeFrameTestWithWebServer.FullTabModeIE_WindowClose, ChromeFrameTestWithWebServer.FullTabModeFF_WindowClose
Review URL: http://codereview.chromium.org/4152005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64092 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_tab.idl')
-rw-r--r-- | chrome_frame/chrome_tab.idl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome_frame/chrome_tab.idl b/chrome_frame/chrome_tab.idl index d2181ac..f934673 100644 --- a/chrome_frame/chrome_tab.idl +++ b/chrome_frame/chrome_tab.idl @@ -118,6 +118,7 @@ typedef enum { CF_EVENT_DISPID_ONEXTENSIONREADY, CF_EVENT_DISPID_ONGETENABLEDEXTENSIONSCOMPLETE, CF_EVENT_DISPID_ONCHANNELERROR, + CF_EVENT_DISPID_ONCLOSE, CF_EVENT_DISPID_ONREADYSTATECHANGED = DISPID_READYSTATECHANGE, } ChromeFrameEventDispId; @@ -166,6 +167,12 @@ library ChromeTabLib { // This event is fired when there is an error in communication channel with // Chrome and Automation must be reconnected to continue. void onchannelerror(); + + [id(CF_EVENT_DISPID_ONCLOSE)] + // This event is fired when the script inside the page wants to close it. + // This is just a notification, there is no way to prevent the script from + // closing. + void onclose(); }; [uuid(BB1176EE-20DD-41DC-9D1E-AC1335C7BBB0)] |