diff options
Diffstat (limited to 'linden/indra/newview/llcommandhandler.h')
-rw-r--r-- | linden/indra/newview/llcommandhandler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llcommandhandler.h b/linden/indra/newview/llcommandhandler.h index ab4c2cc..5cb3ee7 100644 --- a/linden/indra/newview/llcommandhandler.h +++ b/linden/indra/newview/llcommandhandler.h | |||
@@ -47,7 +47,7 @@ public: | |||
47 | 47 | ||
48 | // Your code here | 48 | // Your code here |
49 | bool handle(const LLSD& tokens, const LLSD& query_map, | 49 | bool handle(const LLSD& tokens, const LLSD& query_map, |
50 | LLWebBrowserCtrl* web) | 50 | LLMediaCtrl* web) |
51 | { | 51 | { |
52 | if (tokens.size() < 1) return false; | 52 | if (tokens.size() < 1) return false; |
53 | LLUUID id( tokens[0] ); | 53 | LLUUID id( tokens[0] ); |
@@ -60,7 +60,7 @@ LLFooHandler gFooHandler; | |||
60 | 60 | ||
61 | */ | 61 | */ |
62 | 62 | ||
63 | class LLWebBrowserCtrl; | 63 | class LLMediaCtrl; |
64 | 64 | ||
65 | class LLCommandHandler | 65 | class LLCommandHandler |
66 | { | 66 | { |
@@ -68,14 +68,14 @@ public: | |||
68 | LLCommandHandler(const char* command, bool allow_from_untrusted_browser); | 68 | LLCommandHandler(const char* command, bool allow_from_untrusted_browser); |
69 | // Automatically registers object to get called when | 69 | // Automatically registers object to get called when |
70 | // command is executed. All commands can be processed | 70 | // command is executed. All commands can be processed |
71 | // in links from LLWebBrowserCtrl, but some (like teleport) | 71 | // in links from LLMediaCtrl, but some (like teleport) |
72 | // should not be allowed from outside the app. | 72 | // should not be allowed from outside the app. |
73 | 73 | ||
74 | virtual ~LLCommandHandler(); | 74 | virtual ~LLCommandHandler(); |
75 | 75 | ||
76 | virtual bool handle(const LLSD& params, | 76 | virtual bool handle(const LLSD& params, |
77 | const LLSD& query_map, | 77 | const LLSD& query_map, |
78 | LLWebBrowserCtrl* web) = 0; | 78 | LLMediaCtrl* web) = 0; |
79 | // For URL secondlife:///app/foo/bar/baz?cat=1&dog=2 | 79 | // For URL secondlife:///app/foo/bar/baz?cat=1&dog=2 |
80 | // @params - array of "bar", "baz", possibly empty | 80 | // @params - array of "bar", "baz", possibly empty |
81 | // @query_map - map of "cat" -> 1, "dog" -> 2, possibly empty | 81 | // @query_map - map of "cat" -> 1, "dog" -> 2, possibly empty |
@@ -91,7 +91,7 @@ public: | |||
91 | static bool dispatch(const std::string& cmd, | 91 | static bool dispatch(const std::string& cmd, |
92 | const LLSD& params, | 92 | const LLSD& params, |
93 | const LLSD& query_map, | 93 | const LLSD& query_map, |
94 | LLWebBrowserCtrl* web, | 94 | LLMediaCtrl* web, |
95 | bool trusted_browser); | 95 | bool trusted_browser); |
96 | // Execute a command registered via the above mechanism, | 96 | // Execute a command registered via the above mechanism, |
97 | // passing string parameters. | 97 | // passing string parameters. |