aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/floatervoicelicense.cpp31
-rw-r--r--linden/indra/newview/floatervoicelicense.h11
-rw-r--r--linden/indra/newview/llfirstuse.cpp4
-rw-r--r--linden/indra/newview/llprefsvoice.cpp4
-rw-r--r--linden/indra/newview/llwebbrowserctrl.h1
5 files changed, 24 insertions, 27 deletions
diff --git a/linden/indra/newview/floatervoicelicense.cpp b/linden/indra/newview/floatervoicelicense.cpp
index 74d16c3..0697b5c 100644
--- a/linden/indra/newview/floatervoicelicense.cpp
+++ b/linden/indra/newview/floatervoicelicense.cpp
@@ -27,7 +27,7 @@
27* COMPLETENESS OR PERFORMANCE. 27* COMPLETENESS OR PERFORMANCE.
28* $/LicenseInfo$ 28* $/LicenseInfo$
29*/ 29*/
30/* 30
31#include "llviewerprecompiledheaders.h" 31#include "llviewerprecompiledheaders.h"
32 32
33#include "floatervoicelicense.h" 33#include "floatervoicelicense.h"
@@ -122,7 +122,7 @@ BOOL FloaterVoiceLicense::postBuild()
122 LLTextEditor *editor = getChild<LLTextEditor>("license_text"); 122 LLTextEditor *editor = getChild<LLTextEditor>("license_text");
123 editor->setVisible( FALSE ); 123 editor->setVisible( FALSE );
124 124
125 LLWebBrowserCtrl* web_browser = getChild<LLWebBrowserCtrl>("license_html"); 125 LLMediaCtrl* web_browser = getChild<LLMediaCtrl>("license_html");
126 if ( web_browser ) 126 if ( web_browser )
127 { 127 {
128 // start to observe it so we see navigate complete events 128 // start to observe it so we see navigate complete events
@@ -137,7 +137,7 @@ BOOL FloaterVoiceLicense::postBuild()
137 137
138void FloaterVoiceLicense::setSiteIsAlive( bool alive ) 138void FloaterVoiceLicense::setSiteIsAlive( bool alive )
139{ 139{
140 LLWebBrowserCtrl* web_browser = getChild<LLWebBrowserCtrl>("license_html"); 140 LLMediaCtrl* web_browser = getChild<LLMediaCtrl>("license_html");
141 // if the contents of the site was retrieved 141 // if the contents of the site was retrieved
142 if ( alive ) 142 if ( alive )
143 { 143 {
@@ -158,12 +158,6 @@ void FloaterVoiceLicense::setSiteIsAlive( bool alive )
158 158
159FloaterVoiceLicense::~FloaterVoiceLicense() 159FloaterVoiceLicense::~FloaterVoiceLicense()
160{ 160{
161 // stop observing events
162 LLWebBrowserCtrl* web_browser = getChild<LLWebBrowserCtrl>("license_html");
163 if ( web_browser )
164 {
165 web_browser->remObserver( this );
166 }
167 161
168 // tell the responder we're not here anymore 162 // tell the responder we're not here anymore
169 if ( gResponsePtr ) 163 if ( gResponsePtr )
@@ -224,14 +218,17 @@ void FloaterVoiceLicense::onCancel( void* userdata )
224} 218}
225 219
226//virtual 220//virtual
227void FloaterVoiceLicense::onNavigateComplete( const EventType& eventIn ) 221void FloaterVoiceLicense::handleMediaEvent(LLPluginClassMedia* /*self*/, EMediaEvent event)
228{ 222{
229 // skip past the loading screen navigate complete 223 if(event == MEDIA_EVENT_NAVIGATE_COMPLETE)
230 if ( ++mLoadCompleteCount == 2 )
231 { 224 {
232 llinfos << "NAVIGATE COMPLETE" << llendl; 225 // skip past the loading screen navigate complete
233 // enable Agree to License radio button now that page has loaded 226 if ( ++mLoadCompleteCount == 2 )
234 LLCheckBoxCtrl * license_agreement = getChild<LLCheckBoxCtrl>("agree_chk"); 227 {
235 license_agreement->setEnabled( true ); 228 llinfos << "NAVIGATE COMPLETE" << llendl;
229 // enable Agree to License radio button now that page has loaded
230 LLCheckBoxCtrl * license_agreement = getChild<LLCheckBoxCtrl>("agree_chk");
231 license_agreement->setEnabled( true );
232 }
236 } 233 }
237}*/ 234}
diff --git a/linden/indra/newview/floatervoicelicense.h b/linden/indra/newview/floatervoicelicense.h
index 9d2012d..30dbb2f 100644
--- a/linden/indra/newview/floatervoicelicense.h
+++ b/linden/indra/newview/floatervoicelicense.h
@@ -35,8 +35,8 @@
35 35
36#include "llmodaldialog.h" 36#include "llmodaldialog.h"
37#include "llassetstorage.h" 37#include "llassetstorage.h"
38//imprudence fixme: removed for media plugins #include "llwebbrowserctrl.h" 38#include "llmediactrl.h"
39/* 39
40class LLButton; 40class LLButton;
41class LLRadioGroup; 41class LLRadioGroup;
42class LLVFS; 42class LLVFS;
@@ -45,7 +45,7 @@ class LLUUID;
45 45
46class FloaterVoiceLicense : 46class FloaterVoiceLicense :
47 public LLModalDialog, 47 public LLModalDialog,
48 public LLViewerMediaObserver 48 public LLViewerMediaObserver,
49 public LLFloaterSingleton<FloaterVoiceLicense> 49 public LLFloaterSingleton<FloaterVoiceLicense>
50{ 50{
51public: 51public:
@@ -62,11 +62,12 @@ public:
62 62
63 void setSiteIsAlive( bool alive ); 63 void setSiteIsAlive( bool alive );
64 64
65 virtual void onNavigateComplete( const EventType& eventIn ); 65 // inherited from LLViewerMediaObserver
66 /*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
66 67
67private: 68private:
68 int mWebBrowserWindowId; 69 int mWebBrowserWindowId;
69 int mLoadCompleteCount; 70 int mLoadCompleteCount;
70};*/ 71};
71 72
72#endif // FLOATERVOICELICENSE_H 73#endif // FLOATERVOICELICENSE_H
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp
index ca8614c..e82aa96 100644
--- a/linden/indra/newview/llfirstuse.cpp
+++ b/linden/indra/newview/llfirstuse.cpp
@@ -397,8 +397,8 @@ void LLFirstUse::voiceLicenseAgreement()
397 { 397 {
398 gSavedSettings.setWarning("FirstVoiceLicense", FALSE); 398 gSavedSettings.setWarning("FirstVoiceLicense", FALSE);
399 399
400// imprudence fixme FloaterVoiceLicense::getInstance()->open(); 400 FloaterVoiceLicense::getInstance()->open();
401// FloaterVoiceLicense::getInstance()->center(); 401 FloaterVoiceLicense::getInstance()->center();
402 } 402 }
403 else // currently in STATE_LOGIN_VOICE_LICENSE when arriving here 403 else // currently in STATE_LOGIN_VOICE_LICENSE when arriving here
404 { 404 {
diff --git a/linden/indra/newview/llprefsvoice.cpp b/linden/indra/newview/llprefsvoice.cpp
index 609d30a..7c50f4a 100644
--- a/linden/indra/newview/llprefsvoice.cpp
+++ b/linden/indra/newview/llprefsvoice.cpp
@@ -153,8 +153,8 @@ void LLPrefsVoice::apply()
153 if (enable_voice && !gSavedSettings.getBOOL("VivoxLicenseAccepted")) 153 if (enable_voice && !gSavedSettings.getBOOL("VivoxLicenseAccepted"))
154 { 154 {
155 // This window enables voice chat if license is accepted 155 // This window enables voice chat if license is accepted
156//imprudence fixme FloaterVoiceLicense::getInstance()->open(); 156 FloaterVoiceLicense::getInstance()->open();
157//imprudence fixme FloaterVoiceLicense::getInstance()->center(); 157 FloaterVoiceLicense::getInstance()->center();
158 } 158 }
159 else 159 else
160 { 160 {
diff --git a/linden/indra/newview/llwebbrowserctrl.h b/linden/indra/newview/llwebbrowserctrl.h
index 0100807..79b8942 100644
--- a/linden/indra/newview/llwebbrowserctrl.h
+++ b/linden/indra/newview/llwebbrowserctrl.h
@@ -106,7 +106,6 @@ class LLWebBrowserCtrlObserver
106#include "lluictrl.h" 106#include "lluictrl.h"
107#include "llframetimer.h" 107#include "llframetimer.h"
108#include "lldynamictexture.h" 108#include "lldynamictexture.h"
109#include "llmediamanager.h"
110#include "llmediaobserver.h" 109#include "llmediaobserver.h"
111 110
112class LLViewBorder; 111class LLViewBorder;