diff options
author | Monroe Linden <monroe@lindenlab.com> | 2010-09-10 16:43:35 -0700 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2010-09-10 16:43:35 -0700 |
commit | 24f308caaeda941a626b6143d95adbfe07450f97 (patch) | |
tree | 848fee057e9df5a1198dd3120ecf0fe920e713f9 /indra/test_apps/llplugintest/llmediaplugintest.cpp | |
parent | f6645b10dd391218edff67579a4388dc8bbac7d2 (diff) |
Added support for a media plugin message that asks the viewer to open a file picker on the plugin's behalf.
Reviewed by Callum.
Diffstat (limited to 'indra/test_apps/llplugintest/llmediaplugintest.cpp')
-rw-r--r-- | indra/test_apps/llplugintest/llmediaplugintest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/test_apps/llplugintest/llmediaplugintest.cpp b/indra/test_apps/llplugintest/llmediaplugintest.cpp index 89a514f376..1d6ea8e270 100644 --- a/indra/test_apps/llplugintest/llmediaplugintest.cpp +++ b/indra/test_apps/llplugintest/llmediaplugintest.cpp @@ -2212,6 +2212,12 @@ void LLMediaPluginTest::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent e case MEDIA_EVENT_CLOSE_REQUEST: std::cerr << "Media event: MEDIA_EVENT_CLOSE_REQUEST" << std::endl; break; + + case MEDIA_EVENT_PICK_FILE_REQUEST: + std::cerr << "Media event: MEDIA_EVENT_PICK_FILE_REQUEST" << std::endl; + // TODO: display an actual file picker + self->sendPickFileResponse("cake"); + break; } } |