summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterwebcontent.h
diff options
context:
space:
mode:
authorRichard Linden <none@none>2011-07-12 20:58:30 -0700
committerRichard Linden <none@none>2011-07-12 20:58:30 -0700
commitfa3f4d11665af44234f8e0ae3e8d8c0ce31d356d (patch)
tree475ebb59957a9009b06f16e79a43bf1e122cd56f /indra/newview/llfloaterwebcontent.h
parent7f2ccaae7d7d15f3bdb7e9a4a4a6f19b1aa812e9 (diff)
EXP-880 FIX Enable navigation chrome for Search floater
search floater derives from floater_web_content all web content now uses floater_web_content instead of media_browser
Diffstat (limited to 'indra/newview/llfloaterwebcontent.h')
-rw-r--r--indra/newview/llfloaterwebcontent.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/indra/newview/llfloaterwebcontent.h b/indra/newview/llfloaterwebcontent.h
index 56b6ef12c8..2cb6bd0831 100644
--- a/indra/newview/llfloaterwebcontent.h
+++ b/indra/newview/llfloaterwebcontent.h
@@ -29,6 +29,7 @@
#include "llfloater.h"
#include "llmediactrl.h"
+#include "llsdparam.h"
class LLMediaCtrl;
class LLComboBox;
@@ -42,20 +43,37 @@ class LLFloaterWebContent :
{
public:
LOG_CLASS(LLFloaterWebContent);
+
+ struct _Params : public LLInitParam::Block<_Params>
+ {
+ Optional<std::string> url,
+ target;
+ Optional<LLUUID> id;
+ Optional<bool> show_chrome;
+ Optional<LLRect> preferred_media_size;
+
+ _Params();
+ };
+
+ typedef LLSDParamAdapter<_Params> Params;
+
LLFloaterWebContent(const LLSD& key);
void initializeURLHistory();
- static void create(const std::string &url, const std::string& target, const std::string& uuid = LLStringUtil::null, bool show_chrome = true, const LLRect& preferred_media_size = LLRect() );
+ static void create(Params);
static void closeRequest(const std::string &uuid);
static void geometryChanged(const std::string &uuid, S32 x, S32 y, S32 width, S32 height);
void geometryChanged(S32 x, S32 y, S32 width, S32 height);
/* virtual */ BOOL postBuild();
+ /* virtual */ void onOpen(const LLSD& key);
+ /* virtual */ bool matchesKey(const LLSD& key);
/* virtual */ void onClose(bool app_quitting);
/* virtual */ void draw();
+protected:
// inherited from LLViewerMediaObserver
/*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
@@ -66,8 +84,7 @@ public:
void onEnterAddress();
void onPopExternal();
-private:
- void open_media(const std::string& media_url, const std::string& target);
+ void open_media(const Params& );
void set_current_url(const std::string& url);
LLMediaCtrl* mWebBrowser;