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 "base/string_util.h" | 5 #include "base/string_util.h" |
6 #include "webkit/glue/plugins/test/plugin_client.h" | 6 #include "webkit/glue/plugins/test/plugin_client.h" |
7 #include "webkit/glue/plugins/test/plugin_arguments_test.h" | 7 #include "webkit/glue/plugins/test/plugin_arguments_test.h" |
8 #include "webkit/glue/plugins/test/plugin_delete_plugin_in_stream_test.h" | 8 #include "webkit/glue/plugins/test/plugin_delete_plugin_in_stream_test.h" |
9 #include "webkit/glue/plugins/test/plugin_get_javascript_url_test.h" | 9 #include "webkit/glue/plugins/test/plugin_get_javascript_url_test.h" |
10 #include "webkit/glue/plugins/test/plugin_geturl_test.h" | 10 #include "webkit/glue/plugins/test/plugin_geturl_test.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 new_test = new NPAPIClient::NPObjectDeletePluginInNPN_Evaluate(instance, | 142 new_test = new NPAPIClient::NPObjectDeletePluginInNPN_Evaluate(instance, |
143 NPAPIClient::PluginClient::HostFunctions()); | 143 NPAPIClient::PluginClient::HostFunctions()); |
144 #endif | 144 #endif |
145 } else if (test_name == "plugin_javascript_open_popup_with_plugin") { | 145 } else if (test_name == "plugin_javascript_open_popup_with_plugin") { |
146 new_test = new NPAPIClient::ExecuteJavascriptOpenPopupWithPluginTest( | 146 new_test = new NPAPIClient::ExecuteJavascriptOpenPopupWithPluginTest( |
147 instance, NPAPIClient::PluginClient::HostFunctions()); | 147 instance, NPAPIClient::PluginClient::HostFunctions()); |
148 } else if (test_name == "plugin_popup_with_plugin_target") { | 148 } else if (test_name == "plugin_popup_with_plugin_target") { |
149 new_test = new NPAPIClient::ExecuteJavascriptPopupWindowTargetPluginTest( | 149 new_test = new NPAPIClient::ExecuteJavascriptPopupWindowTargetPluginTest( |
150 instance, NPAPIClient::PluginClient::HostFunctions()); | 150 instance, NPAPIClient::PluginClient::HostFunctions()); |
151 } else if (test_name == "private") { | 151 } else if (test_name == "private") { |
| 152 // http://code.google.com/p/chromium/issues/detail?id=16149 |
| 153 #if 0 |
152 new_test = new NPAPIClient::PrivateTest(instance, | 154 new_test = new NPAPIClient::PrivateTest(instance, |
153 NPAPIClient::PluginClient::HostFunctions()); | 155 NPAPIClient::PluginClient::HostFunctions()); |
| 156 #endif |
154 #if defined(OS_WIN) | 157 #if defined(OS_WIN) |
155 // TODO(port): plugin_windowed_test.*. | 158 // TODO(port): plugin_windowed_test.*. |
156 } else if (test_name == "hidden_plugin" || | 159 } else if (test_name == "hidden_plugin" || |
157 test_name == "create_instance_in_paint" || | 160 test_name == "create_instance_in_paint" || |
158 test_name == "alert_in_window_message") { | 161 test_name == "alert_in_window_message") { |
159 new_test = new NPAPIClient::WindowedPluginTest(instance, | 162 new_test = new NPAPIClient::WindowedPluginTest(instance, |
160 NPAPIClient::PluginClient::HostFunctions()); | 163 NPAPIClient::PluginClient::HostFunctions()); |
161 #endif | 164 #endif |
162 } else { | 165 } else { |
163 // If we don't have a test case for this, create a | 166 // If we don't have a test case for this, create a |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 (NPAPIClient::PluginTest*)instance->pdata; | 303 (NPAPIClient::PluginTest*)instance->pdata; |
301 | 304 |
302 return plugin->HandleEvent(event); | 305 return plugin->HandleEvent(event); |
303 } | 306 } |
304 | 307 |
305 void* NPP_GetJavaClass(void) { | 308 void* NPP_GetJavaClass(void) { |
306 // XXXMB - do work here. | 309 // XXXMB - do work here. |
307 return NULL; | 310 return NULL; |
308 } | 311 } |
309 } // extern "C" | 312 } // extern "C" |
OLD | NEW |