| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #if defined(OS_WIN) | 5 #if defined(OS_WIN) |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "webkit/glue/plugins/test/plugin_client.h" | 10 #include "webkit/glue/plugins/test/plugin_client.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return NPERR_GENERIC_ERROR; // no name found | 110 return NPERR_GENERIC_ERROR; // no name found |
| 111 | 111 |
| 112 NPError ret = NPERR_GENERIC_ERROR; | 112 NPError ret = NPERR_GENERIC_ERROR; |
| 113 bool windowless_plugin = false; | 113 bool windowless_plugin = false; |
| 114 | 114 |
| 115 NPAPIClient::PluginTest *new_test = NULL; | 115 NPAPIClient::PluginTest *new_test = NULL; |
| 116 if (test_name == "arguments") { | 116 if (test_name == "arguments") { |
| 117 new_test = new NPAPIClient::PluginArgumentsTest(instance, | 117 new_test = new NPAPIClient::PluginArgumentsTest(instance, |
| 118 NPAPIClient::PluginClient::HostFunctions()); | 118 NPAPIClient::PluginClient::HostFunctions()); |
| 119 } else if (test_name == "geturl" || test_name == "geturl_404_response" || | 119 } else if (test_name == "geturl" || test_name == "geturl_404_response" || |
| 120 test_name == "geturl_fail_write") { | 120 test_name == "geturl_fail_write" || |
| 121 test_name == "plugin_referrer_test") { |
| 121 new_test = new NPAPIClient::PluginGetURLTest(instance, | 122 new_test = new NPAPIClient::PluginGetURLTest(instance, |
| 122 NPAPIClient::PluginClient::HostFunctions()); | 123 NPAPIClient::PluginClient::HostFunctions()); |
| 123 } else if (test_name == "npobject_proxy") { | 124 } else if (test_name == "npobject_proxy") { |
| 124 new_test = new NPAPIClient::NPObjectProxyTest(instance, | 125 new_test = new NPAPIClient::NPObjectProxyTest(instance, |
| 125 NPAPIClient::PluginClient::HostFunctions()); | 126 NPAPIClient::PluginClient::HostFunctions()); |
| 126 #if defined(OS_WIN) | 127 #if defined(OS_WIN) |
| 127 // TODO(port): plugin_windowless_test.*. | 128 // TODO(port): plugin_windowless_test.*. |
| 128 } else if (test_name == "execute_script_delete_in_paint" || | 129 } else if (test_name == "execute_script_delete_in_paint" || |
| 129 test_name == "execute_script_delete_in_mouse_move" || | 130 test_name == "execute_script_delete_in_mouse_move" || |
| 130 test_name == "delete_frame_test" || | 131 test_name == "delete_frame_test" || |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 (NPAPIClient::PluginTest*)instance->pdata; | 330 (NPAPIClient::PluginTest*)instance->pdata; |
| 330 | 331 |
| 331 return plugin->HandleEvent(event); | 332 return plugin->HandleEvent(event); |
| 332 } | 333 } |
| 333 | 334 |
| 334 void* NPP_GetJavaClass(void) { | 335 void* NPP_GetJavaClass(void) { |
| 335 // XXXMB - do work here. | 336 // XXXMB - do work here. |
| 336 return NULL; | 337 return NULL; |
| 337 } | 338 } |
| 338 } // extern "C" | 339 } // extern "C" |
| OLD | NEW |