diff options
author | Adam Moss <moss@lindenlab.com> | 2009-08-31 17:16:21 +0000 |
---|---|---|
committer | Adam Moss <moss@lindenlab.com> | 2009-08-31 17:16:21 +0000 |
commit | 158946668a75a0dad7b53bc74fd2b6f8f4a4befc (patch) | |
tree | fdbd74ca881f5dd386c84496e393504c6b7eacb5 /indra | |
parent | 6dbef5f2a41d5ee974b808b8e863d4f973dfa2c3 (diff) |
svn merge -r130875:131962 svn+ssh://svn.lindenlab.com/svn/linden/branches/pluginapi/pluginapi_05_newllqtwebkit
DEV-31438 Rename LLMozLib (Qt/WebKit) to something else - LLQtWebKit
Diffstat (limited to 'indra')
-rw-r--r-- | indra/cmake/WebKitLibPlugin.cmake | 13 | ||||
-rw-r--r-- | indra/media_plugins/CMakeLists.txt | 5 | ||||
-rw-r--r-- | indra/media_plugins/webkit/CMakeLists.txt | 6 | ||||
-rw-r--r-- | indra/media_plugins/webkit/media_plugin_webkit.cpp | 180 | ||||
-rw-r--r-- | indra/newview/CMakeLists.txt | 36 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/mime_types.xml | 11 | ||||
-rwxr-xr-x | indra/newview/viewer_manifest.py | 5 | ||||
-rw-r--r-- | indra/test_apps/llplugintest/CMakeLists.txt | 26 | ||||
-rw-r--r-- | indra/test_apps/llplugintest/bookmarks.txt | 10 | ||||
-rw-r--r-- | indra/test_apps/llplugintest/llmediaplugintest.cpp | 35 |
10 files changed, 113 insertions, 214 deletions
diff --git a/indra/cmake/WebKitLibPlugin.cmake b/indra/cmake/WebKitLibPlugin.cmake index c84df2b839..9ec23e80ca 100644 --- a/indra/cmake/WebKitLibPlugin.cmake +++ b/indra/cmake/WebKitLibPlugin.cmake @@ -6,21 +6,21 @@ if (STANDALONE) set(WEBKITLIBPLUGIN OFF CACHE BOOL "WEBKITLIBPLUGIN support for the llplugin/llmedia test apps.") else (STANDALONE) - use_prebuilt_binary(webkitlibplugin) + use_prebuilt_binary(llqtwebkit) set(WEBKITLIBPLUGIN ON CACHE BOOL "WEBKITLIBPLUGIN support for the llplugin/llmedia test apps.") endif (STANDALONE) if (WINDOWS) set(WEBKIT_PLUGIN_LIBRARIES - debug llwebkitlibd + debug llqtwebkitd debug QtWebKitd4 debug QtOpenGLd4 debug QtNetworkd4 debug QtGuid4 debug QtCored4 debug qtmaind - optimized llwebkitlib + optimized llqtwebkit optimized QtWebKit4 optimized QtOpenGL4 optimized QtNetwork4 @@ -30,12 +30,12 @@ if (WINDOWS) ) elseif (DARWIN) set(WEBKIT_PLUGIN_LIBRARIES - optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libllwebkitlib.dylib - debug ${ARCH_PREBUILT_DIRS_RELEASE}/libllwebkitlib.dylib + optimized ${ARCH_PREBUILT_DIRS_RELEASE}/libllqtwebkit.dylib + debug ${ARCH_PREBUILT_DIRS_RELEASE}/libllqtwebkit.dylib ) elseif (LINUX) set(WEBKIT_PLUGIN_LIBRARIES - llwebkitlib + llqtwebkit qgif # qico @@ -53,6 +53,7 @@ elseif (LINUX) fontconfig X11 + Xrender GL # sqlite3 diff --git a/indra/media_plugins/CMakeLists.txt b/indra/media_plugins/CMakeLists.txt index 09f8acdb52..d35afd8cbd 100644 --- a/indra/media_plugins/CMakeLists.txt +++ b/indra/media_plugins/CMakeLists.txt @@ -8,9 +8,4 @@ add_subdirectory(gstreamer010) if (WINDOWS OR DARWIN) add_subdirectory(quicktime) - add_subdirectory(awesomium) endif (WINDOWS OR DARWIN) - -if (WINDOWS) - add_subdirectory(flash_activex) -endif(WINDOWS) diff --git a/indra/media_plugins/webkit/CMakeLists.txt b/indra/media_plugins/webkit/CMakeLists.txt index c048dd66c1..d96477279d 100644 --- a/indra/media_plugins/webkit/CMakeLists.txt +++ b/indra/media_plugins/webkit/CMakeLists.txt @@ -66,9 +66,9 @@ if (DARWIN) # copy the webkit dylib to the build directory add_custom_command( TARGET media_plugin_webkit POST_BUILD -# OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/libllwebkitlib.dylib - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllwebkitlib.dylib ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ - DEPENDS media_plugin_webkit ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllwebkitlib.dylib +# OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/libllqtwebkit.dylib + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllqtwebkit.dylib ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ + DEPENDS media_plugin_webkit ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllqtwebkit.dylib ) endif (DARWIN)
\ No newline at end of file diff --git a/indra/media_plugins/webkit/media_plugin_webkit.cpp b/indra/media_plugins/webkit/media_plugin_webkit.cpp index 72827689a3..2928b7e6b3 100644 --- a/indra/media_plugins/webkit/media_plugin_webkit.cpp +++ b/indra/media_plugins/webkit/media_plugin_webkit.cpp @@ -29,7 +29,7 @@ * $/LicenseInfo$ */ -#include "llwebkitlib.h" +#include "llqtwebkit.h" #include "linden_common.h" #include "indra_constants.h" // for indra keyboard codes @@ -74,15 +74,15 @@ private: // void update(int milliseconds) { - LLMozLib::getInstance()->pump( milliseconds ); + LLQtWebKit::getInstance()->pump( milliseconds ); checkEditState(); if ( mNeedsUpdate ) { - const unsigned char* browser_pixels = LLMozLib::getInstance()->grabBrowserWindow( mBrowserWindowId ); + const unsigned char* browser_pixels = LLQtWebKit::getInstance()->grabBrowserWindow( mBrowserWindowId ); - unsigned int buffer_size = LLMozLib::getInstance()->getBrowserRowSpan( mBrowserWindowId ) * LLMozLib::getInstance()->getBrowserHeight( mBrowserWindowId ); + unsigned int buffer_size = LLQtWebKit::getInstance()->getBrowserRowSpan( mBrowserWindowId ) * LLQtWebKit::getInstance()->getBrowserHeight( mBrowserWindowId ); // std::cerr << "webkit plugin: updating" << std::endl; @@ -139,35 +139,35 @@ private: #endif // main browser initialization - bool result = LLMozLib::getInstance()->init( application_dir, component_dir, profileDir, native_window_handle ); + bool result = LLQtWebKit::getInstance()->init( application_dir, component_dir, profileDir, native_window_handle ); if ( result ) { // create single browser window - mBrowserWindowId = LLMozLib::getInstance()->createBrowserWindow( mWidth, mHeight ); + mBrowserWindowId = LLQtWebKit::getInstance()->createBrowserWindow( mWidth, mHeight ); #if LL_WINDOWS // Enable plugins - LLMozLib::getInstance()->enablePlugins(true); + LLQtWebKit::getInstance()->enablePlugins(true); #else // Disable plugins - LLMozLib::getInstance()->enablePlugins(false); + LLQtWebKit::getInstance()->enablePlugins(false); #endif - // tell LLMozLib about the size of the browser window - LLMozLib::getInstance()->setSize( mBrowserWindowId, mWidth, mHeight ); + // tell LLQtWebKit about the size of the browser window + LLQtWebKit::getInstance()->setSize( mBrowserWindowId, mWidth, mHeight ); - // observer events that LLMozLib emits - LLMozLib::getInstance()->addObserver( mBrowserWindowId, this ); + // observer events that LLQtWebKit emits + LLQtWebKit::getInstance()->addObserver( mBrowserWindowId, this ); // append details to agent string - LLMozLib::getInstance()->setBrowserAgentId( "LLPluginMedia Web Browser" ); + LLQtWebKit::getInstance()->setBrowserAgentId( "LLPluginMedia Web Browser" ); // don't flip bitmap - LLMozLib::getInstance()->flipWindow( mBrowserWindowId, true ); + LLQtWebKit::getInstance()->flipWindow( mBrowserWindowId, true ); // go to the "home page" // Don't do this here -- it causes the dreaded "white flash" when loading a browser instance. -// LLMozLib::getInstance()->navigateTo( mBrowserWindowId, "about:blank" ); +// LLQtWebKit::getInstance()->navigateTo( mBrowserWindowId, "about:blank" ); // set flag so we don't do this again mBrowserInitialized = true; @@ -182,29 +182,29 @@ private: // virtual void onCursorChanged(const EventType& event) { - LLMozLib::ECursor moz_cursor = (LLMozLib::ECursor)event.getIntValue(); + LLQtWebKit::ECursor llqt_cursor = (LLQtWebKit::ECursor)event.getIntValue(); std::string name; - switch(moz_cursor) + switch(llqt_cursor) { - case LLMozLib::C_ARROW: + case LLQtWebKit::C_ARROW: name = "arrow"; break; - case LLMozLib::C_IBEAM: + case LLQtWebKit::C_IBEAM: name = "ibeam"; break; - case LLMozLib::C_SPLITV: + case LLQtWebKit::C_SPLITV: name = "splitv"; break; - case LLMozLib::C_SPLITH: + case LLQtWebKit::C_SPLITH: name = "splith"; break; - case LLMozLib::C_POINTINGHAND: + case LLQtWebKit::C_POINTINGHAND: name = "hand"; break; default: - llwarns << "Unknown cursor ID: " << (int)moz_cursor << llendl; + llwarns << "Unknown cursor ID: " << (int)llqt_cursor << llendl; break; } @@ -240,8 +240,8 @@ private: message.setValue("uri", event.getEventUri()); message.setValueS32("result_code", event.getIntValue()); message.setValue("result_string", event.getStringValue()); - message.setValueBoolean("history_back_available", LLMozLib::getInstance()->userActionIsEnabled( mBrowserWindowId, LLMozLib::UA_NAVIGATE_BACK)); - message.setValueBoolean("history_forward_available", LLMozLib::getInstance()->userActionIsEnabled( mBrowserWindowId, LLMozLib::UA_NAVIGATE_FORWARD)); + message.setValueBoolean("history_back_available", LLQtWebKit::getInstance()->userActionIsEnabled( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_BACK)); + message.setValueBoolean("history_forward_available", LLQtWebKit::getInstance()->userActionIsEnabled( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_FORWARD)); sendMessage(message); setStatus(STATUS_LOADED); @@ -297,15 +297,15 @@ private: // void mouseDown( int x, int y ) { - LLMozLib::getInstance()->mouseDown( mBrowserWindowId, x, y ); + LLQtWebKit::getInstance()->mouseDown( mBrowserWindowId, x, y ); }; //////////////////////////////////////////////////////////////////////////////// // void mouseUp( int x, int y ) { - LLMozLib::getInstance()->mouseUp( mBrowserWindowId, x, y ); - LLMozLib::getInstance()->focusBrowser( mBrowserWindowId, true ); + LLQtWebKit::getInstance()->mouseUp( mBrowserWindowId, x, y ); + LLQtWebKit::getInstance()->focusBrowser( mBrowserWindowId, true ); checkEditState(); }; @@ -313,66 +313,66 @@ private: // void mouseMove( int x, int y ) { - LLMozLib::getInstance()->mouseMove( mBrowserWindowId, x, y ); + LLQtWebKit::getInstance()->mouseMove( mBrowserWindowId, x, y ); }; //////////////////////////////////////////////////////////////////////////////// // void keyPress( int key ) { - int moz_key; + int llqt_key; // The incoming values for 'key' will be the ones from indra_constants.h - // the outgoing values are the ones from llwebkitlib.h + // the outgoing values are the ones from llqtwebkit.h switch((KEY)key) { - // This is the list that the qtwebkit-llmozlib implementation actually maps into Qt keys. -// case KEY_XXX: moz_key = LL_DOM_VK_CANCEL; break; -// case KEY_XXX: moz_key = LL_DOM_VK_HELP; break; - case KEY_BACKSPACE: moz_key = LL_DOM_VK_BACK_SPACE; break; - case KEY_TAB: moz_key = LL_DOM_VK_TAB; break; -// case KEY_XXX: moz_key = LL_DOM_VK_CLEAR; break; - case KEY_RETURN: moz_key = LL_DOM_VK_RETURN; break; - case KEY_PAD_RETURN: moz_key = LL_DOM_VK_ENTER; break; - case KEY_SHIFT: moz_key = LL_DOM_VK_SHIFT; break; - case KEY_CONTROL: moz_key = LL_DOM_VK_CONTROL; break; - case KEY_ALT: moz_key = LL_DOM_VK_ALT; break; -// case KEY_XXX: moz_key = LL_DOM_VK_PAUSE; break; - case KEY_CAPSLOCK: moz_key = LL_DOM_VK_CAPS_LOCK; break; - case KEY_ESCAPE: moz_key = LL_DOM_VK_ESCAPE; break; - case KEY_PAGE_UP: moz_key = LL_DOM_VK_PAGE_UP; break; - case KEY_PAGE_DOWN: moz_key = LL_DOM_VK_PAGE_DOWN; break; - case KEY_END: moz_key = LL_DOM_VK_END; break; - case KEY_HOME: moz_key = LL_DOM_VK_HOME; break; - case KEY_LEFT: moz_key = LL_DOM_VK_LEFT; break; - case KEY_UP: moz_key = LL_DOM_VK_UP; break; - case KEY_RIGHT: moz_key = LL_DOM_VK_RIGHT; break; - case KEY_DOWN: moz_key = LL_DOM_VK_DOWN; break; -// case KEY_XXX: moz_key = LL_DOM_VK_PRINTSCREEN; break; - case KEY_INSERT: moz_key = LL_DOM_VK_INSERT; break; - case KEY_DELETE: moz_key = LL_DOM_VK_DELETE; break; -// case KEY_XXX: moz_key = LL_DOM_VK_CONTEXT_MENU; break; + // This is the list that the llqtwebkit implementation actually maps into Qt keys. +// case KEY_XXX: llqt_key = LL_DOM_VK_CANCEL; break; +// case KEY_XXX: llqt_key = LL_DOM_VK_HELP; break; + case KEY_BACKSPACE: llqt_key = LL_DOM_VK_BACK_SPACE; break; + case KEY_TAB: llqt_key = LL_DOM_VK_TAB; break; +// case KEY_XXX: llqt_key = LL_DOM_VK_CLEAR; break; + case KEY_RETURN: llqt_key = LL_DOM_VK_RETURN; break; + case KEY_PAD_RETURN: llqt_key = LL_DOM_VK_ENTER; break; + case KEY_SHIFT: llqt_key = LL_DOM_VK_SHIFT; break; + case KEY_CONTROL: llqt_key = LL_DOM_VK_CONTROL; break; + case KEY_ALT: llqt_key = LL_DOM_VK_ALT; break; +// case KEY_XXX: llqt_key = LL_DOM_VK_PAUSE; break; + case KEY_CAPSLOCK: llqt_key = LL_DOM_VK_CAPS_LOCK; break; + case KEY_ESCAPE: llqt_key = LL_DOM_VK_ESCAPE; break; + case KEY_PAGE_UP: llqt_key = LL_DOM_VK_PAGE_UP; break; + case KEY_PAGE_DOWN: llqt_key = LL_DOM_VK_PAGE_DOWN; break; + case KEY_END: llqt_key = LL_DOM_VK_END; break; + case KEY_HOME: llqt_key = LL_DOM_VK_HOME; break; + case KEY_LEFT: llqt_key = LL_DOM_VK_LEFT; break; + case KEY_UP: llqt_key = LL_DOM_VK_UP; break; + case KEY_RIGHT: llqt_key = LL_DOM_VK_RIGHT; break; + case KEY_DOWN: llqt_key = LL_DOM_VK_DOWN; break; +// case KEY_XXX: llqt_key = LL_DOM_VK_PRINTSCREEN; break; + case KEY_INSERT: llqt_key = LL_DOM_VK_INSERT; break; + case KEY_DELETE: llqt_key = LL_DOM_VK_DELETE; break; +// case KEY_XXX: llqt_key = LL_DOM_VK_CONTEXT_MENU; break; default: if(key < KEY_SPECIAL) { // Pass the incoming key through -- it should be regular ASCII, which should be correct for webkit. - moz_key = key; + llqt_key = key; } else { // Don't pass through untranslated special keys -- they'll be all wrong. - moz_key = 0; + llqt_key = 0; } break; } -// std::cerr << "keypress, original code = 0x" << std::hex << key << ", converted code = 0x" << std::hex << moz_key << std::dec << std::endl; +// std::cerr << "keypress, original code = 0x" << std::hex << key << ", converted code = 0x" << std::hex << llqt_key << std::dec << std::endl; - if(moz_key != 0) + if(llqt_key != 0) { - LLMozLib::getInstance()->keyPress( mBrowserWindowId, moz_key ); + LLQtWebKit::getInstance()->keyPress( mBrowserWindowId, llqt_key ); } checkEditState(); @@ -389,7 +389,7 @@ private: { // std::cerr << "unicode input, code = 0x" << std::hex << (unsigned long)(wstr[i]) << std::dec << std::endl; - LLMozLib::getInstance()->unicodeInput(mBrowserWindowId, wstr[i]); + LLQtWebKit::getInstance()->unicodeInput(mBrowserWindowId, wstr[i]); } checkEditState(); @@ -397,9 +397,9 @@ private: void checkEditState(void) { - bool can_cut = LLMozLib::getInstance()->userActionIsEnabled( mBrowserWindowId, LLMozLib::UA_EDIT_CUT); - bool can_copy = LLMozLib::getInstance()->userActionIsEnabled( mBrowserWindowId, LLMozLib::UA_EDIT_COPY); - bool can_paste = LLMozLib::getInstance()->userActionIsEnabled( mBrowserWindowId, LLMozLib::UA_EDIT_PASTE); + bool can_cut = LLQtWebKit::getInstance()->userActionIsEnabled( mBrowserWindowId, LLQtWebKit::UA_EDIT_CUT); + bool can_copy = LLQtWebKit::getInstance()->userActionIsEnabled( mBrowserWindowId, LLQtWebKit::UA_EDIT_COPY); + bool can_paste = LLQtWebKit::getInstance()->userActionIsEnabled( mBrowserWindowId, LLQtWebKit::UA_EDIT_PASTE); if((can_cut != mCanCut) || (can_copy != mCanCopy) || (can_paste != mCanPaste)) { @@ -446,10 +446,10 @@ MediaPluginWebKit::MediaPluginWebKit(LLPluginInstance::sendMessageFunction host_ MediaPluginWebKit::~MediaPluginWebKit() { // unhook observer - LLMozLib::getInstance()->remObserver( mBrowserWindowId, this ); + LLQtWebKit::getInstance()->remObserver( mBrowserWindowId, this ); // clean up - LLMozLib::getInstance()->reset(); + LLQtWebKit::getInstance()->reset(); // std::cerr << "MediaPluginWebKit destructor" << std::endl; } @@ -475,7 +475,7 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) message.setValueLLSD("versions", versions); std::string plugin_version = "Webkit media plugin, Webkit version "; - plugin_version += LLMozLib::getInstance()->getVersion(); + plugin_version += LLQtWebKit::getInstance()->getVersion(); message.setValue("plugin_version", plugin_version); sendMessage(message); @@ -579,12 +579,12 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) initBrowser(); // size changed so tell the browser - LLMozLib::getInstance()->setSize( mBrowserWindowId, mWidth, mHeight ); + LLQtWebKit::getInstance()->setSize( mBrowserWindowId, mWidth, mHeight ); // std::cerr << "webkit plugin: set size to " << mWidth << " x " << mHeight -// << ", rowspan is " << LLMozLib::getInstance()->getBrowserRowSpan(mBrowserWindowId) << std::endl; +// << ", rowspan is " << LLQtWebKit::getInstance()->getBrowserRowSpan(mBrowserWindowId) << std::endl; - S32 real_width = LLMozLib::getInstance()->getBrowserRowSpan(mBrowserWindowId) / LLMozLib::getInstance()->getBrowserDepth(mBrowserWindowId); + S32 real_width = LLQtWebKit::getInstance()->getBrowserRowSpan(mBrowserWindowId) / LLQtWebKit::getInstance()->getBrowserDepth(mBrowserWindowId); // The actual width the browser will be drawing to is probably smaller... let the host know by modifying texture_width in the response. if(real_width <= texture_width) @@ -622,7 +622,7 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) if(!uri.empty()) { - LLMozLib::getInstance()->navigateTo( mBrowserWindowId, uri ); + LLQtWebKit::getInstance()->navigateTo( mBrowserWindowId, uri ); } } else if(message_name == "mouse_event") @@ -658,7 +658,7 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) // The scroll values are roughly 1 per wheel click, so we need to magnify them by some factor. // Arbitrarily, I choose 16. y *= 16; - LLMozLib::getInstance()->scrollByLines(mBrowserWindowId, y); + LLQtWebKit::getInstance()->scrollByLines(mBrowserWindowId, y); } else if(message_name == "key_event") { @@ -679,15 +679,15 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) } if(message_name == "edit_cut") { - LLMozLib::getInstance()->userAction( mBrowserWindowId, LLMozLib::UA_EDIT_CUT ); + LLQtWebKit::getInstance()->userAction( mBrowserWindowId, LLQtWebKit::UA_EDIT_CUT ); } if(message_name == "edit_copy") { - LLMozLib::getInstance()->userAction( mBrowserWindowId, LLMozLib::UA_EDIT_COPY ); + LLQtWebKit::getInstance()->userAction( mBrowserWindowId, LLQtWebKit::UA_EDIT_COPY ); } if(message_name == "edit_paste") { - LLMozLib::getInstance()->userAction( mBrowserWindowId, LLMozLib::UA_EDIT_PASTE ); + LLQtWebKit::getInstance()->userAction( mBrowserWindowId, LLQtWebKit::UA_EDIT_PASTE ); } else { @@ -699,44 +699,44 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) if(message_name == "focus") { bool val = message_in.getValueBoolean("focused"); - LLMozLib::getInstance()->focusBrowser( mBrowserWindowId, val ); + LLQtWebKit::getInstance()->focusBrowser( mBrowserWindowId, val ); } else if(message_name == "clear_cache") { - LLMozLib::getInstance()->clearCache(); + LLQtWebKit::getInstance()->clearCache(); } else if(message_name == "clear_cookies") { - LLMozLib::getInstance()->clearAllCookies(); + LLQtWebKit::getInstance()->clearAllCookies(); } else if(message_name == "enable_cookies") { bool val = message_in.getValueBoolean("enable"); - LLMozLib::getInstance()->enableCookies( val ); + LLQtWebKit::getInstance()->enableCookies( val ); } else if(message_name == "proxy_setup") { bool val = message_in.getValueBoolean("enable"); std::string host = message_in.getValue("host"); int port = message_in.getValueS32("port"); - LLMozLib::getInstance()->enableProxy( val, host, port ); + LLQtWebKit::getInstance()->enableProxy( val, host, port ); } else if(message_name == "browse_stop") { - LLMozLib::getInstance()->userAction( mBrowserWindowId, LLMozLib::UA_NAVIGATE_STOP ); + LLQtWebKit::getInstance()->userAction( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_STOP ); } else if(message_name == "browse_reload") { // foo = message_in.getValueBoolean("ignore_cache"); - LLMozLib::getInstance()->userAction( mBrowserWindowId, LLMozLib::UA_NAVIGATE_RELOAD ); + LLQtWebKit::getInstance()->userAction( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_RELOAD ); } else if(message_name == "browse_forward") { - LLMozLib::getInstance()->userAction( mBrowserWindowId, LLMozLib::UA_NAVIGATE_FORWARD ); + LLQtWebKit::getInstance()->userAction( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_FORWARD ); } else if(message_name == "browse_back") { - LLMozLib::getInstance()->userAction( mBrowserWindowId, LLMozLib::UA_NAVIGATE_BACK ); + LLQtWebKit::getInstance()->userAction( mBrowserWindowId, LLQtWebKit::UA_NAVIGATE_BACK ); } else if(message_name == "set_status_redirect") { @@ -744,20 +744,20 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) std::string url = message_in.getValue("url"); if ( 404 == code ) // browser lib only supports 404 right now { - LLMozLib::getInstance()->set404RedirectUrl( mBrowserWindowId, url ); + LLQtWebKit::getInstance()->set404RedirectUrl( mBrowserWindowId, url ); }; } else if(message_name == "set_user_agent") { std::string user_agent = message_in.getValue("user_agent"); - LLMozLib::getInstance()->setBrowserAgentId( user_agent ); + LLQtWebKit::getInstance()->setBrowserAgentId( user_agent ); } else if(message_name == "init_history") { // Initialize browser history LLSD history = message_in.getValueLLSD("history"); // First, clear the URL history - LLMozLib::getInstance()->clearHistory(mBrowserWindowId); + LLQtWebKit::getInstance()->clearHistory(mBrowserWindowId); // Then, add the history items in order LLSD::array_iterator iter_history = history.beginArray(); LLSD::array_iterator end_history = history.endArray(); @@ -765,7 +765,7 @@ void MediaPluginWebKit::receiveMessage(const char *message_string) { std::string url = (*iter_history).asString(); if(! url.empty()) { - LLMozLib::getInstance()->prependHistoryUrl(mBrowserWindowId, url); + LLQtWebKit::getInstance()->prependHistoryUrl(mBrowserWindowId, url); } } } diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 9878a71d89..297540ffc0 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1340,7 +1340,7 @@ if (WINDOWS) DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py ) - add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_quicktime media_plugin_webkit media_plugin_flash_activex media_plugin_awesomium) + add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_quicktime media_plugin_webkit) if (PACKAGE) add_custom_target(package ALL DEPENDS ${CMAKE_CFG_INTDIR}/touched.bat) @@ -1458,7 +1458,7 @@ if (DARWIN) DEPENDS ${VIEWER_BINARY_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py ) - add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_quicktime media_plugin_webkit media_plugin_awesomium) + add_dependencies(${VIEWER_BINARY_NAME} SLPlugin media_plugin_quicktime media_plugin_webkit) if (PACKAGE) add_custom_target(package ALL DEPENDS ${VIEWER_BINARY_NAME}) @@ -1583,38 +1583,10 @@ if (WINDOWS) ) endif (WINDOWS) -if (WINDOWS) - get_target_property(BUILT_FLASH_ACTIVEX_PLUGIN media_plugin_flash_activex LOCATION) - add_custom_command( - TARGET ${VIEWER_BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} - ARGS - -E - copy_if_different - ${BUILT_FLASH_ACTIVEX_PLUGIN} - ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/llplugin - COMMENT "Copying Flash (ActiveX) Plugin to the runtime folder." - ) -endif (WINDOWS) - -if (WINDOWS) - get_target_property(BUILT_AWESOMIUM_PLUGIN media_plugin_awesomium LOCATION) - add_custom_command( - TARGET ${VIEWER_BINARY_NAME} POST_BUILD - COMMAND ${CMAKE_COMMAND} - ARGS - -E - copy_if_different - ${BUILT_AWESOMIUM_PLUGIN} - ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/llplugin - COMMENT "Copying Flash (Awesomium) Plugin to the runtime folder." - ) -endif (WINDOWS) - if (DARWIN) # Don't do this here -- it's taken care of by viewer_manifest.py # add_custom_command(TARGET ${VIEWER_BINARY_NAME} POST_BUILD -# COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllwebkitlib.dylib ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/llplugin/ -# DEPENDS ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllwebkitlib.dylib +# COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllqtwebkit.dylib ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/llplugin/ +# DEPENDS ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllqtwebkit.dylib # ) endif (DARWIN) diff --git a/indra/newview/skins/default/xui/en/mime_types.xml b/indra/newview/skins/default/xui/en/mime_types.xml index 804bee6cd1..2de9449ea6 100644 --- a/indra/newview/skins/default/xui/en/mime_types.xml +++ b/indra/newview/skins/default/xui/en/mime_types.xml @@ -230,17 +230,6 @@ image </widgettype> </mimetype> - <mimetype name="application/x-shockwave-flash"> - <label name="application/x-shockwave-flash_label"> - Flash - </label> - <widgettype> - image - </widgettype> - <impl> - media_plugin_flash_activex - </impl> - </mimetype> <mimetype name="audio/mid"> <label name="audio/mid_label"> Audio (MIDI) diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index d175a26531..b743954420 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -487,10 +487,7 @@ class DarwinManifest(ViewerManifest): self.path("../llplugin/slplugin/" + self.args['configuration'] + "/SLPlugin", "SLPlugin") self.path("../media_plugins/quicktime/" + self.args['configuration'] + "/media_plugin_quicktime.dylib", "media_plugin_quicktime.dylib") self.path("../media_plugins/webkit/" + self.args['configuration'] + "/media_plugin_webkit.dylib", "media_plugin_webkit.dylib") - self.path("../../libraries/universal-darwin/lib_release/libllwebkitlib.dylib", "libllwebkitlib.dylib") - - self.path("../media_plugins/awesomium/" + self.args['configuration'] + "/media_plugin_awesomium.dylib", "media_plugin_awesomium.dylib") - self.path("../../libraries/universal-darwin/lib_release/Awesomium.framework", "Awesomium.framework") + self.path("../../libraries/universal-darwin/lib_release/libllqtwebkit.dylib", "libllqtwebkit.dylib") self.end_prefix("llplugin") diff --git a/indra/test_apps/llplugintest/CMakeLists.txt b/indra/test_apps/llplugintest/CMakeLists.txt index dd894087e6..789ead04fe 100644 --- a/indra/test_apps/llplugintest/CMakeLists.txt +++ b/indra/test_apps/llplugintest/CMakeLists.txt @@ -283,10 +283,8 @@ target_link_libraries(llmediaplugintest add_dependencies(llmediaplugintest copy_win_libs SLPlugin - media_plugin_flash_activex media_plugin_quicktime media_plugin_webkit - media_plugin_awesomium ${LLPLUGIN_LIBRARIES} ${LLMESSAGE_LIBRARIES} ${LLCOMMON_LIBRARIES} @@ -321,12 +319,6 @@ if (DARWIN OR WINDOWS) DEPENDS ${BUILT_QUICKTIME_PLUGIN} ) - get_target_property(BUILT_AWESOMIUM_PLUGIN media_plugin_awesomium LOCATION) - add_custom_command(TARGET llmediaplugintest POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy ${BUILT_AWESOMIUM_PLUGIN} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ - DEPENDS ${BUILT_AWESOMIUM_PLUGIN} - ) - # copy over bookmarks file if llmediaplugintest gets built get_target_property(BUILT_LLMEDIAPLUGINTEST llmediaplugintest LOCATION) add_custom_command(TARGET llmediaplugintest POST_BUILD @@ -340,24 +332,10 @@ if (DARWIN OR WINDOWS) ) endif (DARWIN OR WINDOWS) -if (WINDOWS) - get_target_property(BUILT_FLASH_ACTIVEX_PLUGIN media_plugin_flash_activex LOCATION) - add_custom_command(TARGET llmediaplugintest POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy ${BUILT_FLASH_ACTIVEX_PLUGIN} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ - DEPENDS ${BUILT_FLASH_ACTIVEX_PLUGIN} - ) - -endif (WINDOWS) - if (DARWIN) add_custom_command(TARGET llmediaplugintest POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllwebkitlib.dylib ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ - DEPENDS ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllwebkitlib.dylib - ) - - add_custom_command(TARGET llmediaplugintest POST_BUILD - COMMAND rsync -av --delete ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/Awesomium.framework ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ - DEPENDS ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/Awesomium.framework + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllqtwebkit.dylib ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/ + DEPENDS ${CMAKE_SOURCE_DIR}/../libraries/universal-darwin/lib_release/libllqtwebkit.dylib ) endif (DARWIN) diff --git a/indra/test_apps/llplugintest/bookmarks.txt b/indra/test_apps/llplugintest/bookmarks.txt index 3de56db532..796cc5d1b2 100644 --- a/indra/test_apps/llplugintest/bookmarks.txt +++ b/indra/test_apps/llplugintest/bookmarks.txt @@ -10,16 +10,6 @@ (WK) DHTML graphics demos,http://www.dhteumeuleu.com/ (WK) Neat Javascript 3D,http://gyu.que.jp/jscloth/ (QT) Local sample,file:///C|/Program Files/QuickTime/Sample.mov -(FLASH) Falling Bush,http://de.fishki.net/video/bush.swf -(FLASH) Bubble Shooter,http://www.wiicade.com/Data/72/game.swf -(FLASH) MAME,http://yvern.com/fMAME/testDecryptLoader.swf -(FLASH) Scribd doc,http://documents.scribd.com/ScribdViewer.swf?document_id=7470987&access_key=key-gemg40ut1qjepsgrx9y&page=&version=1&auto_size=true&viewMode= -(FLASH) GE Whiteboard,http://imagination3.com/pen_main.swf -(FLASH) DabbleBoard,http://www.dabbleboard.com/swf/db.swf -(FLASH) Countdown,http://itv.jaildog.com/sites/itv/ivbg/countdown.swf -(FLASH) Blockbusters,http://itv.jaildog.com/sites/itv/ivbg/blockbusters.swf -(FLASH) Clock Block,http://www.subliminalmessages.com/images/clockblock.swf -(FLASH) Devil Cat YouYube movie,http://www.youtube.com/swf/l.swf?swf=http%3A//s.ytimg.com/yt/swf/cps-vfl99456.swf&video_id=YRyK_1g4VWQ&rel=1&eurl=&iurl=http%3A//i2.ytimg.com/vi/YRyK_1g4VWQ/hqdefault.jpg&sk=70SiFZ9wC2NTIYkBXg_bK8xZB6OHmmfwC&fexp=900503%2C900037&fs=1&hl=en&autoplay=1&cr=US&avg_rating=4.56172839506&length_seconds=22&allow_ratings=1&allow_embed=1&title=devil%20cat (QT) Movie - Watchmen Trailer,http://movies.apple.com/movies/wb/watchmen/watchmen-tlr2_480p.mov (QT) Movie - Transformers - Revenge of the Fallen,http://movies.apple.com/movies/paramount/transformers2/transformersrevengeofthefallen-tlr1_h.320.mov (QT) Movie - Terminator Salvation,http://movies.apple.com/movies/wb/terminatorsalvation/terminatorsalvation-tlr3_h.320.mov diff --git a/indra/test_apps/llplugintest/llmediaplugintest.cpp b/indra/test_apps/llplugintest/llmediaplugintest.cpp index 7a84ef83cb..cd90884d09 100644 --- a/indra/test_apps/llplugintest/llmediaplugintest.cpp +++ b/indra/test_apps/llplugintest/llmediaplugintest.cpp @@ -120,7 +120,7 @@ LLMediaPluginTest::LLMediaPluginTest( int app_window, int window_width, int wind mVersionMajor( 2 ), mVersionMinor( 0 ), mVersionPatch( 0 ), - mMaxPanels( 16 ), + mMaxPanels( 25 ), mViewportAspect( 0 ), mAppWindow( app_window ), mCurMouseX( 0 ), @@ -174,13 +174,6 @@ LLMediaPluginTest::LLMediaPluginTest( int app_window, int window_width, int wind { std::string description = line.substr( 0, comma_pos ); std::string url = line.substr( comma_pos + 1 ); -#if LL_DARWIN || LL_LINUX - // Don't load flash movies on mac or linux yet. - if ( url.find( ".swf" ) != std::string::npos ) - { - continue; - } -#endif mBookmarks.push_back( std::pair< std::string, std::string >( description, url ) ); } else @@ -229,16 +222,14 @@ LLMediaPluginTest::LLMediaPluginTest( int app_window, int window_width, int wind resetView(); // initial media panel - const int num_initial_panels = 4; - for( int i = 0; i < num_initial_panels; ++i ) - { - //addMediaPanel( mBookmarks[ rand() % ( mBookmarks.size() - 1 ) + 1 ].second ); - }; + //const int num_initial_panels = 4; + //for( int i = 0; i < num_initial_panels; ++i ) + //{ + // addMediaPanel( mBookmarks[ rand() % ( mBookmarks.size() - 1 ) + 1 ].second ); + //}; // always add a Web panel for testing addMediaPanel( "http://www.google.com" ); - //addMediaPanel( "http://www.wiicade.com/Data/72/game.swf" ); - //addMediaPanel( "http://movies.apple.com/movies/wb/watchmen/watchmen-tlr2_480p.mov" ); } //////////////////////////////////////////////////////////////////////////////// @@ -1465,9 +1456,6 @@ std::string LLMediaPluginTest::mimeTypeFromUrl( std::string& url ) std::string mime_type = "text/html"; // we may need a more advanced MIME type accessor later :-) - if ( url.find( ".swf" ) != std::string::npos ) // Flash movies - mime_type = "application/x-shockwave-flash"; - else if ( url.find( ".mov" ) != std::string::npos ) // Movies mime_type = "video/quicktime"; else @@ -1497,9 +1485,6 @@ std::string LLMediaPluginTest::pluginNameFromMimeType( std::string& mime_type ) else if ( mime_type == "text/html" ) plugin_name = "media_plugin_webkit.dll"; - else - if ( mime_type == "application/x-shockwave-flash" ) - plugin_name = "media_plugin_flash_activex.dll"; #elif LL_LINUX std::string plugin_name( "libmedia_plugin_null.so" ); @@ -1816,14 +1801,6 @@ void LLMediaPluginTest::getRandomMediaSize( int& width, int& height, std::string { width = ( ( rand() % 100 ) + 100 ) * 4; height = ( width * ( ( rand() % 400 ) + 1000 ) ) / 1000; - } - else - // adjust this random size if it's Flash so we get - // a more useful size for testing.. - if ( mime_type == "application/x-shockwave-flash" ) - { - width = ( ( rand() % 100 ) + 100 ) * 4; - height = ( width * ( ( rand() % 400 ) + 1000 ) ) / 1000; }; } |