diff options
Diffstat (limited to 'linden/indra/newview/llfloaterhtml.h')
-rw-r--r-- | linden/indra/newview/llfloaterhtml.h | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloaterhtml.h b/linden/indra/newview/llfloaterhtml.h index fef57d0..0e3b435 100644 --- a/linden/indra/newview/llfloaterhtml.h +++ b/linden/indra/newview/llfloaterhtml.h | |||
@@ -3,6 +3,8 @@ | |||
3 | * @author James Cook | 3 | * @author James Cook |
4 | * @brief In-world HTML dialog | 4 | * @brief In-world HTML dialog |
5 | * | 5 | * |
6 | * $LicenseInfo:firstyear=2005&license=viewergpl$ | ||
7 | * | ||
6 | * Copyright (c) 2005-2007, Linden Research, Inc. | 8 | * Copyright (c) 2005-2007, Linden Research, Inc. |
7 | * | 9 | * |
8 | * Second Life Viewer Source Code | 10 | * Second Life Viewer Source Code |
@@ -25,29 +27,38 @@ | |||
25 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
26 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
27 | * COMPLETENESS OR PERFORMANCE. | 29 | * COMPLETENESS OR PERFORMANCE. |
30 | * $/LicenseInfo$ | ||
28 | */ | 31 | */ |
29 | 32 | ||
30 | #ifndef LL_LLFLOATERHTML_H | 33 | #ifndef LL_LLFLOATERHTML_H |
31 | #define LL_LLFLOATERHTML_H | 34 | #define LL_LLFLOATERHTML_H |
32 | 35 | ||
33 | #include "llwebbrowserctrl.h" | ||
34 | #include "llfloater.h" | 36 | #include "llfloater.h" |
35 | 37 | ||
38 | class LLWebBrowserCtrl; | ||
39 | |||
36 | class LLFloaterHtml : | 40 | class LLFloaterHtml : |
37 | public LLFloater, | 41 | public LLFloater |
38 | public LLWebBrowserCtrlObserver | ||
39 | { | 42 | { |
40 | public: | 43 | public: |
41 | static LLFloaterHtml* getInstance(); | 44 | static LLFloaterHtml* getInstance(); |
42 | virtual ~LLFloaterHtml(); | 45 | virtual ~LLFloaterHtml(); |
43 | 46 | ||
47 | virtual void draw(); | ||
44 | virtual void onClose( bool app_quitting ); | 48 | virtual void onClose( bool app_quitting ); |
45 | 49 | ||
50 | // Pass string like "in-world_help" or "additional help" | ||
46 | void show( LLString content_id ); | 51 | void show( LLString content_id ); |
47 | static void onClickClose( void* data ); | ||
48 | 52 | ||
49 | // observable browser events | 53 | // Pass raw URL and window title |
50 | virtual void onClickLinkSecondLife( const EventType& eventIn ); | 54 | void show( std::string start_url, std::string title ); |
55 | |||
56 | static void onClickClose( void* data ); | ||
57 | static void onClickBack( void* data ); | ||
58 | static void onClickHome( void* data ); | ||
59 | static void onClickForward( void* data ); | ||
60 | static void onCommitUrlEdit(LLUICtrl* ctrl, void* user_data); | ||
61 | static void onClickGo( void* data ); | ||
51 | 62 | ||
52 | private: | 63 | private: |
53 | LLFloaterHtml(); | 64 | LLFloaterHtml(); |