Index: webkit/plugins/npapi/test/plugin_windowless_test.cc |
diff --git a/webkit/plugins/npapi/test/plugin_windowless_test.cc b/webkit/plugins/npapi/test/plugin_windowless_test.cc |
index 411f0260f49f6a0980b6b5b7d96da79d23abe038..33a91db28425eef5cfd8e5b434e70b16a2550ddb 100644 |
--- a/webkit/plugins/npapi/test/plugin_windowless_test.cc |
+++ b/webkit/plugins/npapi/test/plugin_windowless_test.cc |
@@ -49,14 +49,11 @@ static bool IsMouseUpEvent(NPEvent* np_event) { |
#endif |
} |
+#if defined(OS_MACOSX) |
static bool IsWindowActivationEvent(NPEvent* np_event) { |
-#if defined(OS_WIN) |
- NOTIMPLEMENTED(); |
- return false; |
-#elif defined(OS_MACOSX) |
return np_event->what == activateEvt; |
-#endif |
} |
+#endif |
bool WindowlessPluginTest::IsWindowless() const { |
return true; |
@@ -101,7 +98,7 @@ int16 WindowlessPluginTest::HandleEvent(void* event) { |
} else if (test_name() == "multiple_instances_sync_calls") { |
MultipleInstanceSyncCalls(browser); |
} |
-#if OS_MACOSX |
+#if defined(OS_MACOSX) |
} else if (IsWindowActivationEvent(np_event) && |
test_name() == "convert_point") { |
ConvertPoint(browser); |