Skip to content
Snippets Groups Projects
Commit e4a9704d authored by callum's avatar callum
Browse files

EXP-676 FIX As a web developer, I want to access information about the current...

EXP-676 FIX As a web developer, I want to access information about the current state of the SL client, such as avatar location
parent 9ccf7557
No related branches found
No related tags found
No related merge requests found
......@@ -1062,9 +1062,9 @@
<key>archive</key>
<map>
<key>hash</key>
<string>76c1015eafcba5ca9932c3009533b51c</string>
<string>1aec55e90d510ffa3beb83c427af8312</string>
<key>url</key>
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llqtwebkit/rev/225273/arch/Darwin/installer/llqtwebkit-4.7.1-darwin-20110329.tar.bz2</string>
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llqtwebkit/rev/229944/arch/Darwin/installer/llqtwebkit-4.7.1-darwin-20110513.tar.bz2</string>
</map>
<key>name</key>
<string>darwin</string>
......@@ -1074,9 +1074,9 @@
<key>archive</key>
<map>
<key>hash</key>
<string>c05a33ee8b6f253b5a744596dfc3707d</string>
<string>834215a2a004efb983e318d9c458d112</string>
<key>url</key>
<string>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llqtwebkit-linux-qt4.6-20101013.tar.bz2</string>
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llqtwebkit/rev/229944/arch/Linux/installer/llqtwebkit-4.7.1-linux-20110513.tar.bz2</string>
</map>
<key>name</key>
<string>linux</string>
......@@ -1086,9 +1086,9 @@
<key>archive</key>
<map>
<key>hash</key>
<string>1b1b8e104e39c542d69eb37b5ee81818</string>
<string>4442288be66754063f7dbc53b9b4a9a9</string>
<key>url</key>
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llqtwebkit/rev/225249/arch/CYGWIN/installer/llqtwebkit-4.7.1-windows-20110329.tar.bz2</string>
<string>http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llqtwebkit/rev/229944/arch/CYGWIN/installer/llqtwebkit-4.7.1-windows-20110513.tar.bz2</string>
</map>
<key>name</key>
<string>windows</string>
......
This diff is collapsed.
This diff is collapsed.
......@@ -1168,6 +1168,56 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)
authResponse(message_in);
}
else
if(message_name == "js_expose_object")
{
bool expose_object = message_in.getValueBoolean( "expose" );
#if LLQTWEBKIT_API_VERSION >= 9
LLQtWebKit::getInstance()->setExposeObject( expose_object );
#endif
}
else
if(message_name == "js_values_valid")
{
bool valid = message_in.getValueBoolean( "valid" );
#if LLQTWEBKIT_API_VERSION >= 9
LLQtWebKit::getInstance()->setValuesValid( valid );
#endif
}
else
if(message_name == "js_agent_location")
{
F32 x = message_in.getValueReal("x");
F32 y = message_in.getValueReal("y");
F32 z = message_in.getValueReal("z");
#if LLQTWEBKIT_API_VERSION >= 9
LLQtWebKit::getInstance()->setAgentLocation( x, y, z );
#endif
}
else
if(message_name == "js_agent_language")
{
const std::string& language = message_in.getValue("language");
#if LLQTWEBKIT_API_VERSION >= 9
LLQtWebKit::getInstance()->setAgentLanguage( language );
#endif
}
else
if(message_name == "js_agent_region")
{
const std::string& region = message_in.getValue("region");
#if LLQTWEBKIT_API_VERSION >= 9
LLQtWebKit::getInstance()->setAgentRegion( region );
#endif
}
else
if(message_name == "js_agent_maturity")
{
const std::string& maturity = message_in.getValue("maturity");
#if LLQTWEBKIT_API_VERSION >= 9
LLQtWebKit::getInstance()->setAgentMaturity( maturity );
#endif
}
else
{
// std::cerr << "MediaPluginWebKit::receiveMessage: unknown media message: " << message_string << std::endl;
}
......@@ -1324,4 +1374,3 @@ int init_media_plugin(LLPluginInstance::sendMessageFunction host_send_func, void
return 0;
}
......@@ -708,6 +708,17 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>BrowserEnableJSObject</key>
<map>
<key>Comment</key>
<string>Enable or disable the viewer to Javascript bridge object.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
<key>BlockAvatarAppearanceMessages</key>
<map>
<key>Comment</key>
......
This diff is collapsed.
......@@ -339,7 +339,10 @@ class LLViewerMediaImpl
LLVOVolume *getSomeObject();
void setUpdated(BOOL updated) ;
BOOL isUpdated() ;
// updates the javascript object in the embedded browser with viewer values
void updateJavascriptObject();
// Updates the "interest" value in this object
void calculateInterest();
F64 getInterest() const { return mInterest; };
......
......@@ -183,11 +183,11 @@
parameter="http://join.secondlife.com/"/>
</menu_item_call>
<menu_item_call
label="Web Content Floater Test"
name="Web Content Floater Test">
label="Web Content Floater Debug Test"
name="Web Content Floater Debug Test">
<menu_item_call.on_click
function="Advanced.WebContentTest"
parameter="http://www.google.com"/>
parameter="http://callum-linden.s3.amazonaws.com/browsertest.html"/>
</menu_item_call>
<menu_item_check
label="Show Grid Picker"
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment