diff options
author | Jacek Antonelli | 2008-08-15 23:45:18 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:18 -0500 |
commit | ad2310656299467c775738fcdbc5840bd492df8d (patch) | |
tree | 61a3e7b568d04f12e7a42c962828e9334954811d /linden/indra/newview/llwebbrowserctrl.cpp | |
parent | Second Life viewer sources 1.18.5.1-RC (diff) | |
download | meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.zip meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.tar.gz meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.tar.bz2 meta-impy-ad2310656299467c775738fcdbc5840bd492df8d.tar.xz |
Second Life viewer sources 1.18.5.2-RC
Diffstat (limited to 'linden/indra/newview/llwebbrowserctrl.cpp')
-rw-r--r-- | linden/indra/newview/llwebbrowserctrl.cpp | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/linden/indra/newview/llwebbrowserctrl.cpp b/linden/indra/newview/llwebbrowserctrl.cpp index ca03f48..879d229 100644 --- a/linden/indra/newview/llwebbrowserctrl.cpp +++ b/linden/indra/newview/llwebbrowserctrl.cpp | |||
@@ -183,7 +183,7 @@ BOOL LLWebBrowserCtrl::handleScrollWheel( S32 x, S32 y, S32 clicks ) | |||
183 | 183 | ||
184 | // note: this isn't really necessary right now since the page is updated | 184 | // note: this isn't really necessary right now since the page is updated |
185 | // on a timer but if that becomes too burdensome and the page is only updated | 185 | // on a timer but if that becomes too burdensome and the page is only updated |
186 | // once after load then this will be nexessary | 186 | // once after load then this will be necessary |
187 | LLMozLib::getInstance()->grabBrowserWindow( mEmbeddedBrowserWindowId ); | 187 | LLMozLib::getInstance()->grabBrowserWindow( mEmbeddedBrowserWindowId ); |
188 | 188 | ||
189 | return TRUE; | 189 | return TRUE; |
@@ -314,7 +314,8 @@ void LLWebBrowserCtrl::onVisibilityChange ( BOOL new_visibility ) | |||
314 | else | 314 | else |
315 | { | 315 | { |
316 | mFrequentUpdates = false; | 316 | mFrequentUpdates = false; |
317 | }; | 317 | } |
318 | LLUICtrl::onVisibilityChange(new_visibility); | ||
318 | } | 319 | } |
319 | 320 | ||
320 | //////////////////////////////////////////////////////////////////////////////// | 321 | //////////////////////////////////////////////////////////////////////////////// |
@@ -362,6 +363,20 @@ bool LLWebBrowserCtrl::canNavigateForward() | |||
362 | 363 | ||
363 | //////////////////////////////////////////////////////////////////////////////// | 364 | //////////////////////////////////////////////////////////////////////////////// |
364 | // | 365 | // |
366 | bool LLWebBrowserCtrl::set404RedirectUrl( std::string redirect_url ) | ||
367 | { | ||
368 | return LLMozLib::getInstance()->set404RedirectUrl( mEmbeddedBrowserWindowId, redirect_url ); | ||
369 | } | ||
370 | |||
371 | //////////////////////////////////////////////////////////////////////////////// | ||
372 | // | ||
373 | bool LLWebBrowserCtrl::clr404RedirectUrl() | ||
374 | { | ||
375 | return LLMozLib::getInstance()->clr404RedirectUrl( mEmbeddedBrowserWindowId ); | ||
376 | } | ||
377 | |||
378 | //////////////////////////////////////////////////////////////////////////////// | ||
379 | // | ||
365 | void LLWebBrowserCtrl::navigateTo( std::string urlIn ) | 380 | void LLWebBrowserCtrl::navigateTo( std::string urlIn ) |
366 | { | 381 | { |
367 | const std::string protocol( "secondlife://" ); | 382 | const std::string protocol( "secondlife://" ); |
@@ -420,7 +435,7 @@ void LLWebBrowserCtrl::draw() | |||
420 | return; | 435 | return; |
421 | 436 | ||
422 | // NOTE: optimization needed here - probably only need to do this once | 437 | // NOTE: optimization needed here - probably only need to do this once |
423 | // unless tearoffs change the parent which they problably do. | 438 | // unless tearoffs change the parent which they probably do. |
424 | LLUICtrl* ptr = (LLUICtrl*)findRootMostFocusRoot(); | 439 | LLUICtrl* ptr = (LLUICtrl*)findRootMostFocusRoot(); |
425 | if ( ptr && ptr->hasFocus() ) | 440 | if ( ptr && ptr->hasFocus() ) |
426 | { | 441 | { |