Index: ppapi/tests/blink_test_plugin.cc |
diff --git a/ppapi/tests/blink_test_plugin.cc b/ppapi/tests/blink_test_plugin.cc |
index 945989dda5291cb1c642ab69b5d97d49db1f39d2..ac221f9611a33938ba746049c569fbf09353f60d 100644 |
--- a/ppapi/tests/blink_test_plugin.cc |
+++ b/ppapi/tests/blink_test_plugin.cc |
@@ -3,7 +3,9 @@ |
// found in the LICENSE file. |
#include <stdint.h> |
+#include <string.h> |
+#include <map> |
raymes
2016/02/29 00:03:06
nit: is this used?
dcheng
2016/02/29 00:11:44
Oops, done.
|
#include <sstream> |
#include <utility> |
@@ -36,6 +38,13 @@ class BlinkTestInstance : public pp::Instance { |
~BlinkTestInstance() override {} |
bool Init(uint32_t argc, const char* argn[], const char* argv[]) { |
+ for (uint32_t i = 0; i < argc; ++i) { |
raymes
2016/02/29 00:03:06
nit: perhaps add a comment for what this is for
dcheng
2016/02/29 00:11:44
Done.
|
+ if (!strcmp(argn[i], "logargs")) { |
+ LogMessage("plugin args:"); |
+ for (uint32_t j = 0; j < argc; ++j) |
+ LogMessage(" name = ", argn[j], ", value = ", argv[j]); |
+ } |
+ } |
return RequestFilteringInputEvents(PP_INPUTEVENT_CLASS_MOUSE | |
PP_INPUTEVENT_CLASS_KEYBOARD) == PP_OK; |
} |