OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /* | 5 /* |
6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 6 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
7 * | 7 * |
8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
10 * are met: | 10 * are met: |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } else if (script == strstr(script, "key::")) { | 261 } else if (script == strstr(script, "key::")) { |
262 obj->evaluateScriptOnMouseDownOrKeyDown = base::strdup(script +
sizeof("key::") - 1); | 262 obj->evaluateScriptOnMouseDownOrKeyDown = base::strdup(script +
sizeof("key::") - 1); |
263 } | 263 } |
264 // When testing evaluate script on mouse-down or key-down, allow eve
nt logging to handle events. | 264 // When testing evaluate script on mouse-down or key-down, allow eve
nt logging to handle events. |
265 if (obj->evaluateScriptOnMouseDownOrKeyDown) | 265 if (obj->evaluateScriptOnMouseDownOrKeyDown) |
266 obj->eventLogging = true; | 266 obj->eventLogging = true; |
267 } else if (!strcasecmp(argn[i], "alwaysFilterEvents")) { | 267 } else if (!strcasecmp(argn[i], "alwaysFilterEvents")) { |
268 obj->alwaysFilterEvents = true; | 268 obj->alwaysFilterEvents = true; |
269 } | 269 } |
270 } | 270 } |
271 void* windowed = 0; | |
272 browser->setvalue(instance, NPPVpluginWindowBool, windowed); | |
273 | 271 |
274 #ifdef XP_MACOSX | 272 #ifdef XP_MACOSX |
275 browser->setvalue(instance, NPPVpluginDrawingModel, (void *)NPDrawingModelCo
reGraphics); | 273 browser->setvalue(instance, NPPVpluginDrawingModel, (void *)NPDrawingModelCo
reGraphics); |
276 #endif | 274 #endif |
277 | 275 |
278 obj->pluginTest = PluginTest::create(instance, testIdentifier); | 276 obj->pluginTest = PluginTest::create(instance, testIdentifier); |
279 | 277 |
280 if (!obj->pluginTest) { | 278 if (!obj->pluginTest) { |
281 pluginLog(instance, "NPP_New: Could not find a test named \"%s\", maybe
its .cpp file wasn't added to the build system?", testIdentifier.c_str()); | 279 pluginLog(instance, "NPP_New: Could not find a test named \"%s\", maybe
its .cpp file wasn't added to the build system?", testIdentifier.c_str()); |
282 return NPERR_GENERIC_ERROR; | 280 return NPERR_GENERIC_ERROR; |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 { | 844 { |
847 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t;image/png:png:PNG image"; | 845 return "application/x-webkit-test-netscape:testnetscape:test netscape conten
t;image/png:png:PNG image"; |
848 } | 846 } |
849 | 847 |
850 extern "C" | 848 extern "C" |
851 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) | 849 NPError NP_GetValue(NPP instance, NPPVariable variable, void* value) |
852 { | 850 { |
853 return NPP_GetValue(instance, variable, value); | 851 return NPP_GetValue(instance, variable, value); |
854 } | 852 } |
855 #endif | 853 #endif |
OLD | NEW |