summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2009-07-09 18:36:22 -0700
committerbrad kittenbrink <brad@lindenlab.com>2009-07-09 18:36:22 -0700
commitf35bb882c2eb512622900ac934f8c6dbdb70786d (patch)
tree1553d7d19bde5018d7c746679bb4f132a3baed5a
parent4fc52d1341a778a6e15d6f902d0a39236c319094 (diff)
Added a requestReshape handler to LLViewerWindowListener.
-rw-r--r--indra/newview/llviewerwindowlistener.cpp9
-rw-r--r--indra/newview/llviewerwindowlistener.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llviewerwindowlistener.cpp b/indra/newview/llviewerwindowlistener.cpp
index ad90b1d2ab..acff7ac835 100644
--- a/indra/newview/llviewerwindowlistener.cpp
+++ b/indra/newview/llviewerwindowlistener.cpp
@@ -35,6 +35,7 @@ LLViewerWindowListener::LLViewerWindowListener(const std::string& pumpname, LLVi
// saveSnapshotArgs["rebuild"] = LLSD::Boolean();
// saveSnapshotArgs["type"] = LLSD::String();
add("saveSnapshot", &LLViewerWindowListener::saveSnapshot, saveSnapshotArgs);
+ add("requestReshape", &LLViewerWindowListener::requestReshape);
}
void LLViewerWindowListener::saveSnapshot(const LLSD& event) const
@@ -76,3 +77,11 @@ void LLViewerWindowListener::saveSnapshot(const LLSD& event) const
response["ok"] = ok;
LLEventPumps::instance().obtain(event["reply"]).post(response);
}
+
+void LLViewerWindowListener::requestReshape(LLSD const & event_data) const
+{
+ if(event_data.has("w") && event_data.has("h"))
+ {
+ mViewerWindow->reshape(event_data["w"].asInteger(), event_data["h"].asInteger());
+ }
+} \ No newline at end of file
diff --git a/indra/newview/llviewerwindowlistener.h b/indra/newview/llviewerwindowlistener.h
index f756a5310f..59c636ecec 100644
--- a/indra/newview/llviewerwindowlistener.h
+++ b/indra/newview/llviewerwindowlistener.h
@@ -27,6 +27,7 @@ public:
private:
void saveSnapshot(const LLSD& event) const;
+ void requestReshape(LLSD const & event_data) const;
LLViewerWindow* mViewerWindow;
};