diff options
-rw-r--r-- | webkit/tools/pepper_test_plugin/event_handler.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webkit/tools/pepper_test_plugin/event_handler.cc b/webkit/tools/pepper_test_plugin/event_handler.cc index 65df790..0562536 100644 --- a/webkit/tools/pepper_test_plugin/event_handler.cc +++ b/webkit/tools/pepper_test_plugin/event_handler.cc @@ -55,10 +55,14 @@ void EventHandler::addText(const char* cstr) { } std::string EventHandler::EventName(double timestamp, int32 type) { +#if !defined(OS_LINUX) std::stringstream strstr; strstr.setf(std::ios::fixed, std::ios::floatfield); strstr << timestamp << ": "; std::string str(strstr.str()); +#else + std::string str; +#endif switch (type) { case NPEventType_MouseDown: return str + "MouseDown"; |