diff options
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)] |