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
7cb13e2d
Commit
7cb13e2d
authored
14 years ago
by
Monroe Linden
Browse files
Options
Downloads
Patches
Plain Diff
Backed out changeset a2468fb913fe (pushed it to the wrong repo by mistake).
parent
91bb305e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/media_plugins/webkit/media_plugin_webkit.cpp
+0
-17
0 additions, 17 deletions
indra/media_plugins/webkit/media_plugin_webkit.cpp
with
0 additions
and
17 deletions
indra/media_plugins/webkit/media_plugin_webkit.cpp
+
0
−
17
View file @
7cb13e2d
...
@@ -304,11 +304,7 @@ class MediaPluginWebKit :
...
@@ -304,11 +304,7 @@ class MediaPluginWebKit :
LLQtWebKit
::
getInstance
()
->
enableJavascript
(
mJavascriptEnabled
);
LLQtWebKit
::
getInstance
()
->
enableJavascript
(
mJavascriptEnabled
);
// create single browser window
// create single browser window
#if LLQTWEBKIT_API_VERSION < 2
mBrowserWindowId
=
LLQtWebKit
::
getInstance
()
->
createBrowserWindow
(
mWidth
,
mHeight
);
#else
mBrowserWindowId
=
LLQtWebKit
::
getInstance
()
->
createBrowserWindow
(
mWidth
,
mHeight
,
mTarget
);
mBrowserWindowId
=
LLQtWebKit
::
getInstance
()
->
createBrowserWindow
(
mWidth
,
mHeight
,
mTarget
);
#endif
// tell LLQtWebKit about the size of the browser window
// tell LLQtWebKit about the size of the browser window
LLQtWebKit
::
getInstance
()
->
setSize
(
mBrowserWindowId
,
mWidth
,
mHeight
);
LLQtWebKit
::
getInstance
()
->
setSize
(
mBrowserWindowId
,
mWidth
,
mHeight
);
...
@@ -509,14 +505,9 @@ class MediaPluginWebKit :
...
@@ -509,14 +505,9 @@ class MediaPluginWebKit :
void
onClickLinkHref
(
const
EventType
&
event
)
void
onClickLinkHref
(
const
EventType
&
event
)
{
{
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER
,
"click_href"
);
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER
,
"click_href"
);
#if LLQTWEBKIT_API_VERSION < 2
message
.
setValue
(
"uri"
,
event
.
getStringValue
());
message
.
setValue
(
"target"
,
event
.
getStringValue2
());
#else
message
.
setValue
(
"uri"
,
event
.
getEventUri
());
message
.
setValue
(
"uri"
,
event
.
getEventUri
());
message
.
setValue
(
"target"
,
event
.
getStringValue
());
message
.
setValue
(
"target"
,
event
.
getStringValue
());
message
.
setValue
(
"uuid"
,
event
.
getStringValue2
());
message
.
setValue
(
"uuid"
,
event
.
getStringValue2
());
#endif
sendMessage
(
message
);
sendMessage
(
message
);
}
}
...
@@ -525,11 +516,7 @@ class MediaPluginWebKit :
...
@@ -525,11 +516,7 @@ class MediaPluginWebKit :
void
onClickLinkNoFollow
(
const
EventType
&
event
)
void
onClickLinkNoFollow
(
const
EventType
&
event
)
{
{
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER
,
"click_nofollow"
);
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER
,
"click_nofollow"
);
#if LLQTWEBKIT_API_VERSION < 2
message
.
setValue
(
"uri"
,
event
.
getStringValue
());
#else
message
.
setValue
(
"uri"
,
event
.
getEventUri
());
message
.
setValue
(
"uri"
,
event
.
getEventUri
());
#endif
sendMessage
(
message
);
sendMessage
(
message
);
}
}
...
@@ -551,9 +538,7 @@ class MediaPluginWebKit :
...
@@ -551,9 +538,7 @@ class MediaPluginWebKit :
void
onWindowCloseRequested
(
const
EventType
&
event
)
void
onWindowCloseRequested
(
const
EventType
&
event
)
{
{
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER
,
"close_request"
);
LLPluginMessage
message
(
LLPLUGIN_MESSAGE_CLASS_MEDIA_BROWSER
,
"close_request"
);
#if LLQTWEBKIT_API_VERSION >= 2
message
.
setValue
(
"uuid"
,
event
.
getStringValue
());
message
.
setValue
(
"uuid"
,
event
.
getStringValue
());
#endif
sendMessage
(
message
);
sendMessage
(
message
);
}
}
...
@@ -1214,7 +1199,6 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)
...
@@ -1214,7 +1199,6 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)
}
}
}
}
}
}
#if LLQTWEBKIT_API_VERSION >= 2
else
if
(
message_name
==
"proxy_window_opened"
)
else
if
(
message_name
==
"proxy_window_opened"
)
{
{
std
::
string
target
=
message_in
.
getValue
(
"target"
);
std
::
string
target
=
message_in
.
getValue
(
"target"
);
...
@@ -1226,7 +1210,6 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)
...
@@ -1226,7 +1210,6 @@ void MediaPluginWebKit::receiveMessage(const char *message_string)
std
::
string
uuid
=
message_in
.
getValue
(
"uuid"
);
std
::
string
uuid
=
message_in
.
getValue
(
"uuid"
);
LLQtWebKit
::
getInstance
()
->
proxyWindowClosed
(
mBrowserWindowId
,
uuid
);
LLQtWebKit
::
getInstance
()
->
proxyWindowClosed
(
mBrowserWindowId
,
uuid
);
}
}
#endif
else
else
{
{
// std::cerr << "MediaPluginWebKit::receiveMessage: unknown media_browser message: " << message_string << std::endl;
// std::cerr << "MediaPluginWebKit::receiveMessage: unknown media_browser message: " << message_string << 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