Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Side by Side Diff: third_party/npapi/bindings/npruntime.h

Issue 6562: This fixes http://code.google.com/p/chromium/issues/detail?id=2472, which... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/npobject_stub.cc ('k') | webkit/port/bindings/v8/np_v8object.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, Apple Computer, Inc. and The Mozilla Foundation. 2 * Copyright (C) 2004, Apple Computer, Inc. and The Mozilla Foundation.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 bool NPN_Invoke(NPP npp, NPObject *npobj, NPIdentifier methodName, const NPVaria nt *args, uint32_t argCount, NPVariant *result); 345 bool NPN_Invoke(NPP npp, NPObject *npobj, NPIdentifier methodName, const NPVaria nt *args, uint32_t argCount, NPVariant *result);
346 bool NPN_InvokeDefault(NPP npp, NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result); 346 bool NPN_InvokeDefault(NPP npp, NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result);
347 bool NPN_Evaluate(NPP npp, NPObject *npobj, NPString *script, NPVariant *result) ; 347 bool NPN_Evaluate(NPP npp, NPObject *npobj, NPString *script, NPVariant *result) ;
348 bool NPN_GetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName, NPVari ant *result); 348 bool NPN_GetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName, NPVari ant *result);
349 bool NPN_SetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName, const NPVariant *value); 349 bool NPN_SetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName, const NPVariant *value);
350 bool NPN_RemoveProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName); 350 bool NPN_RemoveProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);
351 bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName); 351 bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);
352 bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName); 352 bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName);
353 bool NPN_Enumerate(NPP npp, NPObject *npobj, NPIdentifier **identifier, uint32_t *count); 353 bool NPN_Enumerate(NPP npp, NPObject *npobj, NPIdentifier **identifier, uint32_t *count);
354 354
355 // Helper function for evaluating a script in the scope of the NPObject passed i n.
356 // Parameters
357 // npp
358 // The plugin's opaque instance handle (Can be NULL)
359 // popups_allowed
360 // Indicates if popups created in the context of the script being executed are
361 // blocked or not.
362 // npobj
363 // The NPObject.
364 // npscript
365 // The script being executed.
366 // result
367 // On return contains the value returned by the script.
368 // Returns true on success.
369 bool NPN_EvaluateHelper(NPP npp, bool popups_allowed, NPObject *npobj, NPString *npscript, NPVariant *result);
370
355 // BEGIN GOOGLE MODIFICATIONS 371 // BEGIN GOOGLE MODIFICATIONS
356 372
357 void* NPP_GetJavaClass(void); 373 void* NPP_GetJavaClass(void);
358 void* NPN_GetJavaEnv(void); 374 void* NPN_GetJavaEnv(void);
359 void* NPN_GetJavaPeer(NPP instance); 375 void* NPN_GetJavaPeer(NPP instance);
360 void NPN_PluginThreadAsyncCall(NPP id, void (*func)(void *), void *userData); 376 void NPN_PluginThreadAsyncCall(NPP id, void (*func)(void *), void *userData);
361 bool NPN_Construct(NPP npp, NPObject* obj, const NPVariant *args, uint32_t argCo unt, NPVariant *result); 377 bool NPN_Construct(NPP npp, NPObject* obj, const NPVariant *args, uint32_t argCo unt, NPVariant *result);
362 378
363 // END GOOGLE MODIFICATIONS 379 // END GOOGLE MODIFICATIONS
364 380
365 /* 381 /*
366 NPN_SetException may be called to trigger a script exception upon return 382 NPN_SetException may be called to trigger a script exception upon return
367 from entry points into NPObjects. 383 from entry points into NPObjects.
368 */ 384 */
369 void NPN_SetException (NPObject *obj, const NPUTF8 *message); 385 void NPN_SetException (NPObject *obj, const NPUTF8 *message);
370 386
371 #ifdef __cplusplus 387 #ifdef __cplusplus
372 } 388 }
373 #endif 389 #endif
374 390
375 #endif 391 #endif
OLDNEW
« no previous file with comments | « chrome/plugin/npobject_stub.cc ('k') | webkit/port/bindings/v8/np_v8object.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698