From 24f308caaeda941a626b6143d95adbfe07450f97 Mon Sep 17 00:00:00 2001
From: Monroe Linden <monroe@lindenlab.com>
Date: Fri, 10 Sep 2010 16:43:35 -0700
Subject: Added support for a media plugin message that asks the viewer to open
 a file picker on the plugin's behalf.

Reviewed by Callum.
---
 indra/test_apps/llplugintest/llmediaplugintest.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'indra/test_apps')

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;
 	}
 }
 
-- 
cgit v1.2.3