summaryrefslogtreecommitdiff
path: root/indra/media_plugins/webkit
diff options
context:
space:
mode:
authorMonroe Linden <monroe@lindenlab.com>2010-08-17 17:56:54 -0700
committerMonroe Linden <monroe@lindenlab.com>2010-08-17 17:56:54 -0700
commita2657be5782f20c3cbab542b5a3775d78e21cdfa (patch)
tree7527b34a8c88ef844c6e0a95b20af5666a7f0e86 /indra/media_plugins/webkit
parent5ed8b55283e93a0487f3056789102a8dcdd7db3a (diff)
Viewer side changes to support javascript window.close handling.
Diffstat (limited to 'indra/media_plugins/webkit')
-rw-r--r--indra/media_plugins/webkit/media_plugin_webkit.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/media_plugins/webkit/media_plugin_webkit.cpp b/indra/media_plugins/webkit/media_plugin_webkit.cpp
index 3b00edec4e..2dc0c93521 100644
--- a/indra/media_plugins/webkit/media_plugin_webkit.cpp
+++ b/indra/media_plugins/webkit/media_plugin_webkit.cpp
@@ -539,6 +539,15 @@ private:
// message.setValueBoolean("dead", (event.getIntValue() != 0))
sendMessage(message);
}
+
+ ////////////////////////////////////////////////////////////////////////////////
+ // virtual
+ void onWindowCloseRequested(const EventType& event)
+ {
+ llwarns << "onWindowCloseRequested " << llendl;
+ LLPluginMessage message(LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER, "close_request");
+ sendMessage(message);
+ }
LLQtWebKit::EKeyboardModifier decodeModifiers(std::string &modifiers)
{