summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatertos.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloatertos.h')
-rw-r--r--indra/newview/llfloatertos.h25
1 files changed, 5 insertions, 20 deletions
diff --git a/indra/newview/llfloatertos.h b/indra/newview/llfloatertos.h
index dbec3ff8b6..49f982aa80 100644
--- a/indra/newview/llfloatertos.h
+++ b/indra/newview/llfloatertos.h
@@ -35,7 +35,7 @@
#include "llmodaldialog.h"
#include "llassetstorage.h"
-#include "llwebbrowserctrl.h"
+#include "llmediactrl.h"
class LLButton;
class LLRadioGroup;
@@ -45,21 +45,12 @@ class LLUUID;
class LLFloaterTOS :
public LLModalDialog,
- public LLWebBrowserCtrlObserver
+ public LLViewerMediaObserver
{
public:
+ LLFloaterTOS(const LLSD& message);
virtual ~LLFloaterTOS();
- // Types of dialog.
- enum ETOSType
- {
- TOS_TOS = 0,
- TOS_CRITICAL_MESSAGE = 1
- };
-
- // Asset_id is overwritten with LLUUID::null when agree is clicked.
- static LLFloaterTOS* show(ETOSType type, const std::string & message);
-
BOOL postBuild();
virtual void draw();
@@ -70,19 +61,13 @@ public:
void setSiteIsAlive( bool alive );
- virtual void onNavigateComplete( const EventType& eventIn );
+ // inherited from LLViewerMediaObserver
+ /*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
private:
- // Asset_id is overwritten with LLUUID::null when agree is clicked.
- LLFloaterTOS(ETOSType type, const std::string & message);
-
-private:
- ETOSType mType;
std::string mMessage;
int mWebBrowserWindowId;
int mLoadCompleteCount;
-
- static LLFloaterTOS* sInstance;
};
#endif // LL_LLFLOATERTOS_H