diff options
Diffstat (limited to 'chrome_frame/chrome_frame_npapi.h')
-rw-r--r-- | chrome_frame/chrome_frame_npapi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome_frame/chrome_frame_npapi.h b/chrome_frame/chrome_frame_npapi.h index 45ee1b9..5101592 100644 --- a/chrome_frame/chrome_frame_npapi.h +++ b/chrome_frame/chrome_frame_npapi.h @@ -46,6 +46,7 @@ class ChromeFrameNPAPI PLUGIN_PROPERTY_READYSTATE, PLUGIN_PROPERTY_ONPRIVATEMESSAGE, PLUGIN_PROPERTY_USECHROMENETWORK, + PLUGIN_PROPERTY_ONCLOSE, PLUGIN_PROPERTY_COUNT // must be last } PluginPropertyId; @@ -150,6 +151,7 @@ END_MSG_MAP() virtual void OnGetEnabledExtensionsComplete( void* user_data, const std::vector<FilePath>& extension_directories); + virtual void OnCloseTab(int tab_handle); private: void SubscribeToFocusEvents(); @@ -318,6 +320,7 @@ END_MSG_MAP() ScopedNpObject<NPObject> onerror_handler_; ScopedNpObject<NPObject> onmessage_handler_; ScopedNpObject<NPObject> onprivatemessage_handler_; + ScopedNpObject<NPObject> onclose_handler_; // As a workaround for a problem in Opera we cache the window object. // The problem stems from two things: window messages aren't always removed |