| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 #if defined(OS_LINUX) | |
| 7 // HACK: we need this #define in place before npapi.h is included for | |
| 8 // plugins to work. However, all sorts of headers include npapi.h, so | |
| 9 // the only way to be certain the define is in place is to put it | |
| 10 // here. You might ask, "Why not set it in npapi.h directly, or in | |
| 11 // this directory's SConscript, then?" but it turns out this define | |
| 12 // makes npapi.h include Xlib.h, which in turn defines a ton of symbols | |
| 13 // like None and Status, causing conflicts with the aforementioned | |
| 14 // many headers that include npapi.h. Ugh. | |
| 15 #define MOZ_X11 1 | |
| 16 #endif | |
| 17 | |
| 18 #include "webkit/glue/plugins/test/plugin_javascript_open_popup.h" | 6 #include "webkit/glue/plugins/test/plugin_javascript_open_popup.h" |
| 19 | 7 |
| 8 #if defined(OS_LINUX) |
| 9 #include "third_party/npapi/bindings/npapi_x11.h" |
| 10 #endif |
| 20 #include "webkit/glue/plugins/test/plugin_client.h" | 11 #include "webkit/glue/plugins/test/plugin_client.h" |
| 21 | 12 |
| 22 namespace NPAPIClient { | 13 namespace NPAPIClient { |
| 23 | 14 |
| 24 ExecuteJavascriptOpenPopupWithPluginTest:: | 15 ExecuteJavascriptOpenPopupWithPluginTest:: |
| 25 ExecuteJavascriptOpenPopupWithPluginTest(NPP id, | 16 ExecuteJavascriptOpenPopupWithPluginTest(NPP id, |
| 26 NPNetscapeFuncs *host_functions) | 17 NPNetscapeFuncs *host_functions) |
| 27 : PluginTest(id, host_functions), | 18 : PluginTest(id, host_functions), |
| 28 popup_window_test_started_(false) { | 19 popup_window_test_started_(false) { |
| 29 } | 20 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 88 } |
| 98 #elif defined(OS_MACOSX) | 89 #elif defined(OS_MACOSX) |
| 99 bool ExecuteJavascriptPopupWindowTargetPluginTest::CheckWindow( | 90 bool ExecuteJavascriptPopupWindowTargetPluginTest::CheckWindow( |
| 100 NPWindow* window) { | 91 NPWindow* window) { |
| 101 // TODO(port) scaffolding--replace with a real test once NPWindow is done. | 92 // TODO(port) scaffolding--replace with a real test once NPWindow is done. |
| 102 return false; | 93 return false; |
| 103 } | 94 } |
| 104 #endif | 95 #endif |
| 105 | 96 |
| 106 } // namespace NPAPIClient | 97 } // namespace NPAPIClient |
| OLD | NEW |