aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llwebbrowserctrl.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llwebbrowserctrl.h29
1 files changed, 19 insertions, 10 deletions
diff --git a/linden/indra/newview/llwebbrowserctrl.h b/linden/indra/newview/llwebbrowserctrl.h
index 20dfbd7..251d453 100644
--- a/linden/indra/newview/llwebbrowserctrl.h
+++ b/linden/indra/newview/llwebbrowserctrl.h
@@ -85,15 +85,14 @@ class LLWebBrowserCtrlObserver
85 virtual void onStatusTextChange( const EventType& eventIn ) { }; 85 virtual void onStatusTextChange( const EventType& eventIn ) { };
86 virtual void onLocationChange( const EventType& eventIn ) { }; 86 virtual void onLocationChange( const EventType& eventIn ) { };
87 virtual void onClickLinkHref( const EventType& eventIn ) { }; 87 virtual void onClickLinkHref( const EventType& eventIn ) { };
88 virtual void onClickLinkSecondLife( const EventType& eventIn ) { }; 88 virtual void onClickLinkNoFollow( const EventType& eventIn ) { };
89}; 89};
90 90
91#if LL_LIBXUL_ENABLED
92
93#include "lluictrl.h" 91#include "lluictrl.h"
94#include "llframetimer.h" 92#include "llframetimer.h"
95#include "lldynamictexture.h" 93#include "lldynamictexture.h"
96#include "llmozlib.h" 94#include "llmediamanager.h"
95#include "llmediaobserver.h"
97 96
98class LLViewBorder; 97class LLViewBorder;
99class LLWebBrowserTexture; 98class LLWebBrowserTexture;
@@ -163,7 +162,7 @@ class LLUICtrlFactory;
163// 162//
164class LLWebBrowserCtrl : 163class LLWebBrowserCtrl :
165 public LLUICtrl, 164 public LLUICtrl,
166 public LLEmbeddedBrowserWindowObserver 165 public LLMediaObserver
167{ 166{
168 public: 167 public:
169 LLWebBrowserCtrl( const std::string& name, const LLRect& rect ); 168 LLWebBrowserCtrl( const std::string& name, const LLRect& rect );
@@ -219,6 +218,12 @@ class LLWebBrowserCtrl :
219 218
220 void setAlwaysRefresh(bool refresh) { mAlwaysRefresh = refresh; } 219 void setAlwaysRefresh(bool refresh) { mAlwaysRefresh = refresh; }
221 bool getAlwaysRefresh() { return mAlwaysRefresh; } 220 bool getAlwaysRefresh() { return mAlwaysRefresh; }
221
222 void setForceUpdate(bool force_update) { mForceUpdate = force_update; }
223 bool getForceUpdate() { return mForceUpdate; }
224
225 bool setCaretColor( unsigned int red, unsigned int green, unsigned int blue );
226
222 227
223 // over-rides 228 // over-rides
224 virtual BOOL handleKey( KEY key, MASK mask, BOOL called_from_parent ); 229 virtual BOOL handleKey( KEY key, MASK mask, BOOL called_from_parent );
@@ -242,7 +247,8 @@ class LLWebBrowserCtrl :
242 virtual void onStatusTextChange( const EventType& eventIn ); 247 virtual void onStatusTextChange( const EventType& eventIn );
243 virtual void onLocationChange( const EventType& eventIn ); 248 virtual void onLocationChange( const EventType& eventIn );
244 virtual void onClickLinkHref( const EventType& eventIn ); 249 virtual void onClickLinkHref( const EventType& eventIn );
245 virtual void onClickLinkSecondLife( const EventType& eventIn ); 250 virtual void onClickLinkNoFollow( const EventType& eventIn );
251 virtual void onMediaContentsChange( const EventType& event_in );
246 252
247 protected: 253 protected:
248 void convertInputCoords(S32& x, S32& y); 254 void convertInputCoords(S32& x, S32& y);
@@ -254,12 +260,14 @@ class LLWebBrowserCtrl :
254 LLWebBrowserTexture* mWebBrowserImage; 260 LLWebBrowserTexture* mWebBrowserImage;
255 LLViewBorder* mBorder; 261 LLViewBorder* mBorder;
256 bool mFrequentUpdates; 262 bool mFrequentUpdates;
263 bool mForceUpdate;
257 bool mOpenLinksInExternalBrowser; 264 bool mOpenLinksInExternalBrowser;
258 bool mOpenLinksInInternalBrowser; 265 bool mOpenLinksInInternalBrowser;
259 bool mOpenAppSLURLs; 266 bool mOpenAppSLURLs;
260 std::string mHomePageUrl; 267 std::string mHomePageUrl;
261 bool mIgnoreUIScale; 268 bool mIgnoreUIScale;
262 bool mAlwaysRefresh; 269 bool mAlwaysRefresh;
270 LLMediaBase* mMediaSource;
263}; 271};
264 272
265//////////////////////////////////////////////////////////////////////////////// 273////////////////////////////////////////////////////////////////////////////////
@@ -267,15 +275,17 @@ class LLWebBrowserCtrl :
267class LLWebBrowserTexture : public LLDynamicTexture 275class LLWebBrowserTexture : public LLDynamicTexture
268{ 276{
269 public: 277 public:
270 LLWebBrowserTexture( S32 width, S32 height, LLWebBrowserCtrl* browserCtrl, int browserWindow ); 278 LLWebBrowserTexture( S32 width, S32 height, LLWebBrowserCtrl* browserCtrl, LLMediaBase *media_source );
271 virtual ~LLWebBrowserTexture(); 279 virtual ~LLWebBrowserTexture();
272 280
281 virtual BOOL needsRender();
273 virtual void preRender( BOOL clear_depth = TRUE ) {}; 282 virtual void preRender( BOOL clear_depth = TRUE ) {};
274 virtual void postRender( BOOL success ) {}; 283 virtual void postRender( BOOL success ) {};
275 virtual BOOL render(); 284 virtual BOOL render();
276 285
277 S32 getBrowserWidth(); 286 S32 getBrowserWidth();
278 S32 getBrowserHeight(); 287 S32 getBrowserHeight();
288 void setNeedsUpdate();
279 289
280 void resize( S32 new_width, S32 new_height ); 290 void resize( S32 new_width, S32 new_height );
281 291
@@ -283,11 +293,10 @@ class LLWebBrowserTexture : public LLDynamicTexture
283 S32 mBrowserWidth; 293 S32 mBrowserWidth;
284 S32 mBrowserHeight; 294 S32 mBrowserHeight;
285 S32 mLastBrowserDepth; 295 S32 mLastBrowserDepth;
296 bool mNeedsUpdate;
286 LLFrameTimer mElapsedTime; 297 LLFrameTimer mElapsedTime;
287 LLWebBrowserCtrl* mWebBrowserCtrl; 298 LLWebBrowserCtrl* mWebBrowserCtrl;
288 int mEmbeddedBrowserWindowId; 299 LLMediaBase *mMediaSource;
289}; 300};
290 301
291#endif // // LL_LIBXUL_ENABLED
292
293#endif // LL_LLWEBBROWSERCTRL_H 302#endif // LL_LLWEBBROWSERCTRL_H