Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
80558b76
Commit
80558b76
authored
9 years ago
by
Rider Linden
Browse files
Options
Downloads
Plain Diff
Merged callum_linden/viewer-cef into default
parents
d61e1ce1
cc0faa34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
autobuild.xml
+5
-5
5 additions, 5 deletions
autobuild.xml
indra/llplugin/llpluginclassmedia.cpp
+2
-2
2 additions, 2 deletions
indra/llplugin/llpluginclassmedia.cpp
indra/media_plugins/cef/media_plugin_cef.cpp
+8
-13
8 additions, 13 deletions
indra/media_plugins/cef/media_plugin_cef.cpp
with
15 additions
and
20 deletions
autobuild.xml
+
5
−
5
View file @
80558b76
...
...
@@ -1536,11 +1536,11 @@
<key>
archive
</key>
<map>
<key>
hash
</key>
<string>
e632f94b6f94a9563ccdfca6da38fb27
</string>
<string>
bcc015c5943397b612da1cdc29df4340
</string>
<key>
hash_algorithm
</key>
<string>
md5
</string>
<key>
url
</key>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llceflib_3p-llceflib/rev/308
049
/arch/Darwin/installer/llceflib-1.4.0.308
049
-darwin-308
049
.tar.bz2
</string>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llceflib_3p-llceflib/rev/308
183
/arch/Darwin/installer/llceflib-1.4.0.308
183
-darwin-308
183
.tar.bz2
</string>
</map>
<key>
name
</key>
<string>
darwin
</string>
...
...
@@ -1550,18 +1550,18 @@
<key>
archive
</key>
<map>
<key>
hash
</key>
<string>
41454f05cea1149d5124d28fc3db6ae0
</string>
<string>
77d35679760ba467a90ca07b60877376
</string>
<key>
hash_algorithm
</key>
<string>
md5
</string>
<key>
url
</key>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llceflib_3p-llceflib/rev/308
049
/arch/CYGWIN/installer/llceflib-1.4.0.308
049
-windows-308
049
.tar.bz2
</string>
<string>
http://automated-builds-secondlife-com.s3.amazonaws.com/hg/repo/3p-llceflib_3p-llceflib/rev/308
183
/arch/CYGWIN/installer/llceflib-1.4.0.308
183
-windows-308
183
.tar.bz2
</string>
</map>
<key>
name
</key>
<string>
windows
</string>
</map>
</map>
<key>
version
</key>
<string>
1.4.0.308
049
</string>
<string>
1.4.0.308
183
</string>
</map>
<key>
llphysicsextensions_source
</key>
<map>
...
...
This diff is collapsed.
Click to expand it.
indra/llplugin/llpluginclassmedia.cpp
+
2
−
2
View file @
80558b76
...
...
@@ -845,14 +845,14 @@ void LLPluginClassMedia::setLanguageCode(const std::string &language_code)
void
LLPluginClassMedia
::
setPluginsEnabled
(
const
bool
enabled
)
{
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA
,
"plugins_enabled"
);
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA
_BROWSER
,
"plugins_enabled"
);
message
.
setValueBoolean
(
"enable"
,
enabled
);
sendMessage
(
message
);
}
void
LLPluginClassMedia
::
setJavascriptEnabled
(
const
bool
enabled
)
{
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA
,
"javascript_enabled"
);
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA
_BROWSER
,
"javascript_enabled"
);
message
.
setValueBoolean
(
"enable"
,
enabled
);
sendMessage
(
message
);
}
...
...
This diff is collapsed.
Click to expand it.
indra/media_plugins/cef/media_plugin_cef.cpp
+
8
−
13
View file @
80558b76
...
...
@@ -338,7 +338,7 @@ void MediaPluginCEF::authResponse(LLPluginMessage &message)
//
void
MediaPluginCEF
::
receiveMessage
(
const
char
*
message_string
)
{
// std::cerr << "MediaPlugin
WebKit
::receiveMessage: received message: \"" << message_string << "\"" << std::endl;
// std::cerr << "MediaPlugin
CEF
::receiveMessage: received message: \"" << message_string << "\"" << std::endl;
LLPluginMessage
message_in
;
if
(
message_in
.
parse
(
message_string
)
>=
0
)
...
...
@@ -356,7 +356,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
versions
[
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER
]
=
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER_VERSION
;
message
.
setValueLLSD
(
"versions"
,
versions
);
std
::
string
plugin_version
=
"CEF plugin 1.
0.0
"
;
std
::
string
plugin_version
=
"CEF plugin 1.
1.3
"
;
message
.
setValue
(
"plugin_version"
,
plugin_version
);
sendMessage
(
message
);
}
...
...
@@ -400,7 +400,6 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
}
else
{
//std::cerr << "MediaPluginWebKit::receiveMessage: unknown shared memory region!" << std::endl;
}
LLPluginMessage
message
(
"base"
,
"shm_remove_response"
);
...
...
@@ -409,7 +408,6 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
}
else
{
//std::cerr << "MediaPluginWebKit::receiveMessage: unknown base message: " << message_name << std::endl;
}
}
else
if
(
message_class
==
LLPLUGIN_MESSAGE_CLASS_MEDIA
)
...
...
@@ -440,7 +438,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
settings
.
cache_enabled
=
true
;
settings
.
cache_path
=
mCachePath
;
settings
.
accept_language_list
=
mHostLanguage
;
settings
.
user_agent_substring
=
mUserAgentSubtring
;
settings
.
user_agent_substring
=
mLLCEFLib
->
makeCompatibleUserAgentString
(
mUserAgentSubtring
)
;
bool
result
=
mLLCEFLib
->
init
(
settings
);
if
(
!
result
)
...
...
@@ -528,15 +526,13 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
S32
x
=
message_in
.
getValueS32
(
"x"
);
S32
y
=
message_in
.
getValueS32
(
"y"
);
//std::string modifiers = message_in.getValue("modifiers");
// only even send left mouse button events to LLCEFLib
// (partially prompted by crash in OS X CEF when sending right button events)
// we catch the right click in viewer and display our own context menu anyway
S32
button
=
message_in
.
getValueS32
(
"button"
);
LLCEFLib
::
EMouseButton
btn
=
LLCEFLib
::
MB_MOUSE_BUTTON_LEFT
;
if
(
button
==
0
)
btn
=
LLCEFLib
::
MB_MOUSE_BUTTON_LEFT
;
if
(
button
==
1
)
btn
=
LLCEFLib
::
MB_MOUSE_BUTTON_RIGHT
;
if
(
button
==
2
)
btn
=
LLCEFLib
::
MB_MOUSE_BUTTON_MIDDLE
;
if
(
event
==
"down"
)
if
(
event
==
"down"
&&
button
==
0
)
{
mLLCEFLib
->
mouseButton
(
btn
,
LLCEFLib
::
ME_MOUSE_DOWN
,
x
,
y
);
mLLCEFLib
->
setFocus
(
true
);
...
...
@@ -545,7 +541,7 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
str
<<
"Mouse down at = "
<<
x
<<
", "
<<
y
;
postDebugMessage
(
str
.
str
());
}
else
if
(
event
==
"up"
)
else
if
(
event
==
"up"
&&
button
==
0
)
{
mLLCEFLib
->
mouseButton
(
btn
,
LLCEFLib
::
ME_MOUSE_UP
,
x
,
y
);
...
...
@@ -709,7 +705,6 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
}
else
{
//std::cerr << "MediaPluginWebKit::receiveMessage: unknown message class: " << message_class << std::endl;
};
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment