diff options
| author | Richard Linden <none@none> | 2011-07-07 13:34:13 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2011-07-07 13:34:13 -0700 | 
| commit | 88a90aabcb5bdede24bb451d443239e1e116c4ea (patch) | |
| tree | 9399a4aefc1a9017986e1c29f9c9077d6e3c74c7 /indra/media_plugins | |
| parent | 66dcc72870b19c6ada65a643ca33c779c9c9989b (diff) | |
| parent | 8f7579e4e46bb8da9fece3125ae31c3bb885be96 (diff) | |
Automated merge with http://hg.secondlife.com/viewer-development
Diffstat (limited to 'indra/media_plugins')
| -rw-r--r-- | indra/media_plugins/webkit/media_plugin_webkit.cpp | 36 | 
1 files changed, 22 insertions, 14 deletions
| diff --git a/indra/media_plugins/webkit/media_plugin_webkit.cpp b/indra/media_plugins/webkit/media_plugin_webkit.cpp index 27f3c7260e..fca071c628 100644 --- a/indra/media_plugins/webkit/media_plugin_webkit.cpp +++ b/indra/media_plugins/webkit/media_plugin_webkit.cpp @@ -1168,19 +1168,11 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)  				authResponse(message_in);  			}  			else -			if(message_name == "js_expose_object") +			if(message_name == "js_enable_object")  			{  #if LLQTWEBKIT_API_VERSION >= 9 -				bool expose_object = message_in.getValueBoolean( "expose" ); -				LLQtWebKit::getInstance()->setExposeObject( expose_object ); -#endif -			} -			else -			if(message_name == "js_values_valid") -			{ -#if LLQTWEBKIT_API_VERSION >= 9 -				bool valid = message_in.getValueBoolean( "valid" ); -				LLQtWebKit::getInstance()->setValuesValid( valid ); +				bool enable = message_in.getValueBoolean( "enable" ); +				LLQtWebKit::getInstance()->setSLObjectEnabled( enable );  #endif  			}  			else @@ -1191,6 +1183,7 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)  				F32 y = message_in.getValueReal("y");  				F32 z = message_in.getValueReal("z");  				LLQtWebKit::getInstance()->setAgentLocation( x, y, z ); +				LLQtWebKit::getInstance()->emitLocation();  #endif  			}  			else @@ -1201,6 +1194,7 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)  				F32 y = message_in.getValueReal("y");  				F32 z = message_in.getValueReal("z");  				LLQtWebKit::getInstance()->setAgentGlobalLocation( x, y, z ); +				LLQtWebKit::getInstance()->emitLocation();  #endif  			}  			else			 @@ -1209,6 +1203,7 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)  #if LLQTWEBKIT_API_VERSION >= 9  				F32 angle = message_in.getValueReal("angle");  				LLQtWebKit::getInstance()->setAgentOrientation( angle ); +				LLQtWebKit::getInstance()->emitLocation();  #endif  			}  			else @@ -1217,14 +1212,25 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)  #if LLQTWEBKIT_API_VERSION >= 9  				const std::string& region = message_in.getValue("region");  				LLQtWebKit::getInstance()->setAgentRegion( region ); +				LLQtWebKit::getInstance()->emitLocation();  #endif  			}  			else -			if(message_name == "js_agent_maturity") +				if(message_name == "js_agent_maturity") +				{ +#if LLQTWEBKIT_API_VERSION >= 9 +					const std::string& maturity = message_in.getValue("maturity"); +					LLQtWebKit::getInstance()->setAgentMaturity( maturity ); +					LLQtWebKit::getInstance()->emitMaturity(); +#endif +				} +			else +			if(message_name == "js_agent_language")  			{  #if LLQTWEBKIT_API_VERSION >= 9 -				const std::string& maturity = message_in.getValue("maturity"); -				LLQtWebKit::getInstance()->setAgentMaturity( maturity ); +				const std::string& language = message_in.getValue("language"); +				LLQtWebKit::getInstance()->setAgentLanguage( language ); +				LLQtWebKit::getInstance()->emitLanguage();  #endif  			}  			else @@ -1384,3 +1390,5 @@ int init_media_plugin(LLPluginInstance::sendMessageFunction host_send_func, void  	return 0;  } + + | 
