aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llurldispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llurldispatcher.cpp')
-rw-r--r--linden/indra/newview/llurldispatcher.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llurldispatcher.cpp b/linden/indra/newview/llurldispatcher.cpp
index f9b6b39..1144c58 100644
--- a/linden/indra/newview/llurldispatcher.cpp
+++ b/linden/indra/newview/llurldispatcher.cpp
@@ -39,7 +39,7 @@
39#include "llfloaterurldisplay.h" 39#include "llfloaterurldisplay.h"
40#include "llfloaterdirectory.h" 40#include "llfloaterdirectory.h"
41#include "llfloaterworldmap.h" 41#include "llfloaterworldmap.h"
42#include "llfloaterhtmlhelp.h" 42#include "llfloatermediabrowser.h"
43#include "llpanellogin.h" 43#include "llpanellogin.h"
44#include "llstartup.h" // gStartupState 44#include "llstartup.h" // gStartupState
45#include "llurlsimstring.h" 45#include "llurlsimstring.h"
@@ -65,7 +65,7 @@ public:
65 static bool isSLURLCommand(const std::string& url); 65 static bool isSLURLCommand(const std::string& url);
66 66
67 static bool dispatch(const std::string& url, 67 static bool dispatch(const std::string& url,
68 LLWebBrowserCtrl* web, 68 LLMediaCtrl* web,
69 bool trusted_browser); 69 bool trusted_browser);
70 // returns true if handled or explicitly blocked. 70 // returns true if handled or explicitly blocked.
71 71
@@ -74,7 +74,7 @@ public:
74private: 74private:
75 static bool dispatchCore(const std::string& url, 75 static bool dispatchCore(const std::string& url,
76 bool right_mouse, 76 bool right_mouse,
77 LLWebBrowserCtrl* web, 77 LLMediaCtrl* web,
78 bool trusted_browser); 78 bool trusted_browser);
79 // handles both left and right click 79 // handles both left and right click
80 80
@@ -84,7 +84,7 @@ private:
84 84
85 static bool dispatchApp(const std::string& url, 85 static bool dispatchApp(const std::string& url,
86 bool right_mouse, 86 bool right_mouse,
87 LLWebBrowserCtrl* web, 87 LLMediaCtrl* web,
88 bool trusted_browser); 88 bool trusted_browser);
89 // Handles secondlife:///app/agent/<agent_id>/about and similar 89 // Handles secondlife:///app/agent/<agent_id>/about and similar
90 // by showing panel in Search floater. 90 // by showing panel in Search floater.
@@ -138,7 +138,7 @@ bool LLURLDispatcherImpl::isSLURLCommand(const std::string& url)
138// static 138// static
139bool LLURLDispatcherImpl::dispatchCore(const std::string& url, 139bool LLURLDispatcherImpl::dispatchCore(const std::string& url,
140 bool right_mouse, 140 bool right_mouse,
141 LLWebBrowserCtrl* web, 141 LLMediaCtrl* web,
142 bool trusted_browser) 142 bool trusted_browser)
143{ 143{
144 if (url.empty()) return false; 144 if (url.empty()) return false;
@@ -158,7 +158,7 @@ bool LLURLDispatcherImpl::dispatchCore(const std::string& url,
158 158
159// static 159// static
160bool LLURLDispatcherImpl::dispatch(const std::string& url, 160bool LLURLDispatcherImpl::dispatch(const std::string& url,
161 LLWebBrowserCtrl* web, 161 LLMediaCtrl* web,
162 bool trusted_browser) 162 bool trusted_browser)
163{ 163{
164 llinfos << "url: " << url << llendl; 164 llinfos << "url: " << url << llendl;
@@ -171,7 +171,7 @@ bool LLURLDispatcherImpl::dispatchRightClick(const std::string& url)
171{ 171{
172 llinfos << "url: " << url << llendl; 172 llinfos << "url: " << url << llendl;
173 const bool right_click = true; 173 const bool right_click = true;
174 LLWebBrowserCtrl* web = NULL; 174 LLMediaCtrl* web = NULL;
175 const bool trusted_browser = false; 175 const bool trusted_browser = false;
176 return dispatchCore(url, right_click, web, trusted_browser); 176 return dispatchCore(url, right_click, web, trusted_browser);
177} 177}
@@ -192,7 +192,7 @@ bool LLURLDispatcherImpl::dispatchHelp(const std::string& url, bool right_mouse)
192// static 192// static
193bool LLURLDispatcherImpl::dispatchApp(const std::string& url, 193bool LLURLDispatcherImpl::dispatchApp(const std::string& url,
194 bool right_mouse, 194 bool right_mouse,
195 LLWebBrowserCtrl* web, 195 LLMediaCtrl* web,
196 bool trusted_browser) 196 bool trusted_browser)
197{ 197{
198 if (!isSLURL(url)) 198 if (!isSLURL(url))
@@ -386,7 +386,7 @@ public:
386 LLTeleportHandler() : LLCommandHandler("teleport", true) { } 386 LLTeleportHandler() : LLCommandHandler("teleport", true) { }
387 387
388 bool handle(const LLSD& tokens, const LLSD& query_map, 388 bool handle(const LLSD& tokens, const LLSD& query_map,
389 LLWebBrowserCtrl* web) 389 LLMediaCtrl* web)
390 { 390 {
391 // construct a "normal" SLURL, resolve the region to 391 // construct a "normal" SLURL, resolve the region to
392 // a global position, and teleport to it 392 // a global position, and teleport to it
@@ -426,7 +426,7 @@ bool LLURLDispatcher::isSLURLCommand(const std::string& url)
426 426
427// static 427// static
428bool LLURLDispatcher::dispatch(const std::string& url, 428bool LLURLDispatcher::dispatch(const std::string& url,
429 LLWebBrowserCtrl* web, 429 LLMediaCtrl* web,
430 bool trusted_browser) 430 bool trusted_browser)
431{ 431{
432 return LLURLDispatcherImpl::dispatch(url, web, trusted_browser); 432 return LLURLDispatcherImpl::dispatch(url, web, trusted_browser);
@@ -448,7 +448,7 @@ bool LLURLDispatcher::dispatchFromTextEditor(const std::string& url)
448 // click on it. 448 // click on it.
449 // *TODO: Make this trust model more refined. JC 449 // *TODO: Make this trust model more refined. JC
450 const bool trusted_browser = true; 450 const bool trusted_browser = true;
451 LLWebBrowserCtrl* web = NULL; 451 LLMediaCtrl* web = NULL;
452 return LLURLDispatcherImpl::dispatch(url, web, trusted_browser); 452 return LLURLDispatcherImpl::dispatch(url, web, trusted_browser);
453} 453}
454 454