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

Side by Side Diff: third_party/WebKit/public/web/WebBindings.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // NPN_CreateObject 48 // NPN_CreateObject
49 BLINK_EXPORT static NPObject* createObject(NPP, NPClass*); 49 BLINK_EXPORT static NPObject* createObject(NPP, NPClass*);
50 50
51 // NPN_Enumerate 51 // NPN_Enumerate
52 BLINK_EXPORT static bool enumerate(NPP, NPObject*, NPIdentifier**, uint32_t* identifierCount); 52 BLINK_EXPORT static bool enumerate(NPP, NPObject*, NPIdentifier**, uint32_t* identifierCount);
53 53
54 // NPN_Evaluate 54 // NPN_Evaluate
55 BLINK_EXPORT static bool evaluate(NPP, NPObject*, NPString* script, NPVarian t* result); 55 BLINK_EXPORT static bool evaluate(NPP, NPObject*, NPString* script, NPVarian t* result);
56 56
57 // NPN_EvaluateHelper
58 BLINK_EXPORT static bool evaluateHelper(NPP, bool popupsAllowed, NPObject*, NPString* script, NPVariant* result);
59
60 // NPN_GetIntIdentifier 57 // NPN_GetIntIdentifier
61 BLINK_EXPORT static NPIdentifier getIntIdentifier(int32_t number); 58 BLINK_EXPORT static NPIdentifier getIntIdentifier(int32_t number);
62 59
63 // NPN_GetProperty 60 // NPN_GetProperty
64 BLINK_EXPORT static bool getProperty(NPP, NPObject*, NPIdentifier property, NPVariant *result); 61 BLINK_EXPORT static bool getProperty(NPP, NPObject*, NPIdentifier property, NPVariant *result);
65 62
66 // NPN_GetStringIdentifier 63 // NPN_GetStringIdentifier
67 BLINK_EXPORT static NPIdentifier getStringIdentifier(const NPUTF8* string); 64 BLINK_EXPORT static NPIdentifier getStringIdentifier(const NPUTF8* string);
68 65
69 // NPN_GetStringIdentifiers 66 // NPN_GetStringIdentifiers
(...skipping 30 matching lines...) Expand all
100 BLINK_EXPORT static NPObject* retainObject(NPObject*); 97 BLINK_EXPORT static NPObject* retainObject(NPObject*);
101 98
102 // NPN_SetException 99 // NPN_SetException
103 BLINK_EXPORT static void setException(NPObject*, const NPUTF8* message); 100 BLINK_EXPORT static void setException(NPObject*, const NPUTF8* message);
104 101
105 // NPN_SetProperty 102 // NPN_SetProperty
106 BLINK_EXPORT static bool setProperty(NPP, NPObject*, NPIdentifier, const NPV ariant*); 103 BLINK_EXPORT static bool setProperty(NPP, NPObject*, NPIdentifier, const NPV ariant*);
107 104
108 // NPN_UTF8FromIdentifier 105 // NPN_UTF8FromIdentifier
109 BLINK_EXPORT static NPUTF8* utf8FromIdentifier(NPIdentifier); 106 BLINK_EXPORT static NPUTF8* utf8FromIdentifier(NPIdentifier);
110
111 // Miscellaneous utility functions ----------------------------------------
112
113 // Complement to NPN_Get___Identifier functions. Extracts data from the NPI dentifier data
114 // structure. If isString is true upon return, string will be set but numbe r's value is
115 // undefined. If iString is false, the opposite is true.
116 BLINK_EXPORT static void extractIdentifierData(const NPIdentifier&, const NP UTF8*& string, int32_t& number, bool& isString);
117 }; 107 };
118 108
119 } // namespace blink 109 } // namespace blink
120 110
121 #endif 111 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/FakeWebPlugin.h ('k') | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698