aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llurldispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llurldispatcher.h (renamed from linden/indra/newview/llfloaterhtmlfind.h)41
1 files changed, 27 insertions, 14 deletions
diff --git a/linden/indra/newview/llfloaterhtmlfind.h b/linden/indra/newview/llurldispatcher.h
index 89f2138..74b7f87 100644
--- a/linden/indra/newview/llfloaterhtmlfind.h
+++ b/linden/indra/newview/llurldispatcher.h
@@ -1,8 +1,10 @@
1/** 1/**
2 * @file llfloaterhtmlfind.h 2 * @file llurldispatcher.h
3 * @brief HTML Find floater - uses embedded web browser control 3 * @brief Central registry for all SL URL handlers
4 * 4 *
5 * Copyright (c) 2006-2007, Linden Research, Inc. 5 * $LicenseInfo:firstyear=2007&license=viewergpl$
6 *
7 * Copyright (c) 2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -24,19 +26,30 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
31#ifndef LLURLDISPATCHER_H
32#define LLURLDISPATCHER_H
28 33
29#if LL_LIBXUL_ENABLED 34class LLURLDispatcher
30
31#ifndef LL_LLFLOATERHTMLFIND_H
32#define LL_LLFLOATERHTMLFIND_H
33
34class LLHtmlFind
35{ 35{
36public: 36public:
37 static void show(void* url_string = NULL); 37 static bool isSLURL(const std::string& url);
38}; 38 // Is this any sort of secondlife:// or sl:// URL?
39 39
40#endif // LL_LLFLOATERHTMLFIND_H 40 static bool isSLURLCommand(const std::string& url);
41 // Is this a special secondlife://app/ URL?
42
43 static bool dispatch(const std::string& url);
44 // At startup time and on clicks in internal web browsers,
45 // teleport, open map, or run requested command.
46 // Handles:
47 // secondlife://RegionName/123/45/67/
48 // secondlife://app/agent/3d6181b0-6a4b-97ef-18d8-722652995cf1/show
49 // sl://app/foo/bar
50 // Returns true if someone handled the URL.
51 static bool dispatchRightClick(const std::string& url);
52
53};
41 54
42#endif // LL_LIBXUL_ENABLED 55#endif