diff options
author | McCabe Maxsted | 2010-11-07 11:32:57 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-11-07 11:32:57 -0700 |
commit | a6f08b61c9303325687be756e1e980245f9d17cc (patch) | |
tree | 8c5a4e1436f6381808ce6bf711d663f03f9175c7 /linden/indra/media_plugins | |
parent | Use the LGPL version of the quicktime media plugin. This allows us to use qui... (diff) | |
download | meta-impy-a6f08b61c9303325687be756e1e980245f9d17cc.zip meta-impy-a6f08b61c9303325687be756e1e980245f9d17cc.tar.gz meta-impy-a6f08b61c9303325687be756e1e980245f9d17cc.tar.bz2 meta-impy-a6f08b61c9303325687be756e1e980245f9d17cc.tar.xz |
Ported media_plugin_webkit changes from Snowglobe2, which are identical to SL2.3. This includes a more stable version of llqtwebkit for Windows
Diffstat (limited to 'linden/indra/media_plugins')
-rwxr-xr-x | linden/indra/media_plugins/webkit/media_plugin_webkit.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp b/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp index eed59a2..4a00557 100755 --- a/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp +++ b/linden/indra/media_plugins/webkit/media_plugin_webkit.cpp | |||
@@ -37,7 +37,6 @@ | |||
37 | 37 | ||
38 | #include "linden_common.h" | 38 | #include "linden_common.h" |
39 | #include "indra_constants.h" // for indra keyboard codes | 39 | #include "indra_constants.h" // for indra keyboard codes |
40 | #include <iomanip> | ||
41 | 40 | ||
42 | #include "llgl.h" | 41 | #include "llgl.h" |
43 | 42 | ||
@@ -45,10 +44,10 @@ | |||
45 | #include "llpluginmessage.h" | 44 | #include "llpluginmessage.h" |
46 | #include "llpluginmessageclasses.h" | 45 | #include "llpluginmessageclasses.h" |
47 | #include "media_plugin_base.h" | 46 | #include "media_plugin_base.h" |
47 | #include <iomanip> | ||
48 | 48 | ||
49 | // set to 1 if you're using the version of llqtwebkit that's QPixmap-ified | 49 | // set to 1 if you're using the version of llqtwebkit that's QPixmap-ified |
50 | #if LL_LINUX | 50 | #if LL_LINUX |
51 | # include <iomanip> | ||
52 | # define LL_QTWEBKIT_USES_PIXMAPS 0 | 51 | # define LL_QTWEBKIT_USES_PIXMAPS 0 |
53 | extern "C" { | 52 | extern "C" { |
54 | # include <glib.h> | 53 | # include <glib.h> |
@@ -341,6 +340,12 @@ private: | |||
341 | // append details to agent string | 340 | // append details to agent string |
342 | LLQtWebKit::getInstance()->setBrowserAgentId( mUserAgent ); | 341 | LLQtWebKit::getInstance()->setBrowserAgentId( mUserAgent ); |
343 | 342 | ||
343 | // Viewer 2+ -- MC | ||
344 | #if LL_WINDOWS | ||
345 | // Set up window open behavior | ||
346 | LLQtWebKit::getInstance()->setWindowOpenBehavior(mBrowserWindowId, LLQtWebKit::WOB_SIMULATE_BLANK_HREF_CLICK); | ||
347 | #endif | ||
348 | |||
344 | #if !LL_QTWEBKIT_USES_PIXMAPS | 349 | #if !LL_QTWEBKIT_USES_PIXMAPS |
345 | // don't flip bitmap | 350 | // don't flip bitmap |
346 | LLQtWebKit::getInstance()->flipWindow( mBrowserWindowId, true ); | 351 | LLQtWebKit::getInstance()->flipWindow( mBrowserWindowId, true ); |
@@ -539,6 +544,7 @@ private: | |||
539 | // This will work as long as we don't need "uuid", which will be needed for MoaP. | 544 | // This will work as long as we don't need "uuid", which will be needed for MoaP. |
540 | message.setValue("uri", event.getStringValue()); | 545 | message.setValue("uri", event.getStringValue()); |
541 | message.setValue("target", event.getStringValue2()); | 546 | message.setValue("target", event.getStringValue2()); |
547 | message.setValueU32("target_type", event.getLinkType()); | ||
542 | #endif | 548 | #endif |
543 | sendMessage(message); | 549 | sendMessage(message); |
544 | } | 550 | } |