diff options
Diffstat (limited to 'linden/indra/llmedia/llmediaimplllmozlib.h')
-rw-r--r-- | linden/indra/llmedia/llmediaimplllmozlib.h | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/linden/indra/llmedia/llmediaimplllmozlib.h b/linden/indra/llmedia/llmediaimplllmozlib.h deleted file mode 100644 index f71300e..0000000 --- a/linden/indra/llmedia/llmediaimplllmozlib.h +++ /dev/null | |||
@@ -1,127 +0,0 @@ | |||
1 | /** | ||
2 | * @file llmediaimplllmozlib.cpp | ||
3 | * @brief Example 2 of a media impl concrete class | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007-2009, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at | ||
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | ||
23 | * By copying, modifying or distributing this software, you acknowledge | ||
24 | * that you have read and understood your obligations described above, | ||
25 | * and agree to abide by those obligations. | ||
26 | * | ||
27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
29 | * COMPLETENESS OR PERFORMANCE. | ||
30 | * $/LicenseInfo$ | ||
31 | */ | ||
32 | |||
33 | #ifndef LLMEDIAIMPLLLMOZLIB_H | ||
34 | #define LLMEDIAIMPLLLMOZLIB_H | ||
35 | |||
36 | #include "llmediaimplcommon.h" | ||
37 | #include "llmediaimplfactory.h" | ||
38 | |||
39 | #if LL_LLMOZLIB_ENABLED | ||
40 | |||
41 | #include "llmozlib2.h" | ||
42 | |||
43 | class LLMediaManagerData; | ||
44 | |||
45 | class LLMediaImplLLMozLib : | ||
46 | public LLMediaImplCommon, | ||
47 | public LLEmbeddedBrowserWindowObserver | ||
48 | { | ||
49 | public: | ||
50 | LLMediaImplLLMozLib(); | ||
51 | |||
52 | static bool startup( LLMediaManagerData* init_data ); | ||
53 | static bool closedown(); | ||
54 | |||
55 | // Update the user-agent string reported when the browser requests | ||
56 | // web page, because we need to include the Second Life version | ||
57 | // and skin name (which can change without restarts). | ||
58 | // Must be called after startup(). | ||
59 | static bool setBrowserUserAgent(std::string user_agent); | ||
60 | |||
61 | /* virtual */ bool init(); | ||
62 | /* virtual */ std::string getVersion(); | ||
63 | /* virtual */ bool set404RedirectUrl( std::string redirect_url ); | ||
64 | /* virtual */ bool clr404RedirectUrl(); | ||
65 | /* virtual */ bool setBackgroundColor( unsigned int red, unsigned int green, unsigned int blue ) const; | ||
66 | /* virtual */ bool setCaretColor( unsigned int red, unsigned int green, unsigned int blue ) const; | ||
67 | /* virtual */ bool navigateTo( const std::string url ); | ||
68 | /* virtual */ bool updateMedia(); | ||
69 | /* virtual */ unsigned char* getMediaData(); | ||
70 | /* virtual */ int getMediaDataWidth() const; | ||
71 | /* virtual */ int getMediaDataHeight() const; | ||
72 | /* virtual */ bool setRequestedMediaSize(int width, int height); | ||
73 | /* virtual */ bool setAutoScaled( bool auto_scaled ); | ||
74 | /* virtual */ int getTextureFormatPrimary() const; | ||
75 | /* virtual */ int getTextureFormatType() const; | ||
76 | /* virtual */ bool mouseDown( int x_pos, int y_pos ); | ||
77 | /* virtual */ bool mouseUp( int x_pos, int y_pos ); | ||
78 | /* virtual */ bool mouseMove( int x_pos, int y_pos ); | ||
79 | /* virtual */ bool keyPress( int key_code ); | ||
80 | /* virtual */ bool scrollByLines( int lines ); | ||
81 | /* virtual */ bool focus( bool focus ); | ||
82 | /* virtual */ bool unicodeInput( unsigned long uni_char ); | ||
83 | /* virtual */ bool mouseLeftDoubleClick( int x_pos, int y_pos ); | ||
84 | /* virtual */ bool navigateForward(); | ||
85 | /* virtual */ bool navigateBack(); | ||
86 | /* virtual */ bool canNavigateForward(); | ||
87 | /* virtual */ bool canNavigateBack(); | ||
88 | /* virtual */ bool enableCookies(bool enable); | ||
89 | /* virtual */ bool enableProxy(bool enable, std::string proxy_host_name, int proxy_port); | ||
90 | /* virtual */ bool clearCache(); | ||
91 | /* virtual */ bool clearCookies(); | ||
92 | /* virtual */ bool reset(); | ||
93 | |||
94 | // LLMozLib observerables | ||
95 | virtual void onNavigateBegin( const EventType& eventIn ); | ||
96 | virtual void onNavigateComplete( const EventType& eventIn ); | ||
97 | virtual void onUpdateProgress( const EventType& eventIn ); | ||
98 | virtual void onPageChanged( const EventType& eventIn ); | ||
99 | virtual void onStatusTextChange( const EventType& eventIn ); | ||
100 | virtual void onLocationChange( const EventType& eventIn ); | ||
101 | virtual void onClickLinkHref( const EventType& eventIn ); | ||
102 | virtual void onClickLinkNoFollow( const EventType& eventIn ); | ||
103 | |||
104 | private: | ||
105 | bool recomputeSizes(); | ||
106 | int mWindowId; | ||
107 | int mBrowserWindowWidth; | ||
108 | int mBrowserWindowHeight; | ||
109 | int mMediaDataWidth; | ||
110 | int mMediaDataHeight; | ||
111 | bool mNeedsUpdate; | ||
112 | bool updateState(); | ||
113 | }; | ||
114 | |||
115 | // The maker class | ||
116 | class LLMediaImplLLMozLibMaker : public LLMediaImplMaker | ||
117 | { | ||
118 | public: | ||
119 | LLMediaImplLLMozLibMaker(); | ||
120 | LLMediaImplLLMozLib* create() | ||
121 | { | ||
122 | return new LLMediaImplLLMozLib(); | ||
123 | } | ||
124 | }; | ||
125 | #endif // LL_LLMOZLIB_ENABLED | ||
126 | |||
127 | #endif // LLMEDIAIMPLLLMOZLIB_H | ||