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

Unified Diff: Source/bindings/core/v8/WrapperTypeInfo.h

Issue 1085453003: IDL: Add support for [Unscopeable] on attributes and methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixes Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/v8/V8PerContextData.cpp ('k') | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WrapperTypeInfo.h
diff --git a/Source/bindings/core/v8/WrapperTypeInfo.h b/Source/bindings/core/v8/WrapperTypeInfo.h
index 5c7a45fbec9c5625d57d76e1aabe32c7edac8d9a..35f251959d28c7ab8d51dce52b8dc6cacc736efa 100644
--- a/Source/bindings/core/v8/WrapperTypeInfo.h
+++ b/Source/bindings/core/v8/WrapperTypeInfo.h
@@ -54,7 +54,7 @@ typedef void (*DerefObjectFunction)(ScriptWrappable*);
typedef void (*TraceFunction)(Visitor*, ScriptWrappable*);
typedef ActiveDOMObject* (*ToActiveDOMObjectFunction)(v8::Local<v8::Object>);
typedef void (*ResolveWrapperReachabilityFunction)(v8::Isolate*, ScriptWrappable*, const v8::Persistent<v8::Object>&);
-typedef void (*InstallConditionallyEnabledMethodsFunction)(v8::Local<v8::Object>, v8::Isolate*);
+typedef void (*PreparePrototypeObjectFunction)(v8::Isolate*, v8::Local<v8::Object>);
typedef void (*InstallConditionallyEnabledPropertiesFunction)(v8::Local<v8::Object>, v8::Isolate*);
inline void setObjectGroup(v8::Isolate* isolate, ScriptWrappable* scriptWrappable, const v8::Persistent<v8::Object>& wrapper)
@@ -142,10 +142,10 @@ struct WrapperTypeInfo {
return traceFunction(visitor, scriptWrappable);
}
- void installConditionallyEnabledMethods(v8::Local<v8::Object> prototypeTemplate, v8::Isolate* isolate) const
+ void preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8::Object> prototypeTemplate) const
{
- if (installConditionallyEnabledMethodsFunction)
- installConditionallyEnabledMethodsFunction(prototypeTemplate, isolate);
+ if (preparePrototypeObjectFunction)
+ preparePrototypeObjectFunction(isolate, prototypeTemplate);
}
void installConditionallyEnabledProperties(v8::Local<v8::Object> prototypeTemplate, v8::Isolate* isolate) const
@@ -180,7 +180,7 @@ struct WrapperTypeInfo {
const TraceFunction traceFunction;
const ToActiveDOMObjectFunction toActiveDOMObjectFunction;
const ResolveWrapperReachabilityFunction visitDOMWrapperFunction;
- InstallConditionallyEnabledMethodsFunction installConditionallyEnabledMethodsFunction;
+ PreparePrototypeObjectFunction preparePrototypeObjectFunction;
const InstallConditionallyEnabledPropertiesFunction installConditionallyEnabledPropertiesFunction;
const char* const interfaceName;
const WrapperTypeInfo* parentClass;
« no previous file with comments | « Source/bindings/core/v8/V8PerContextData.cpp ('k') | Source/bindings/scripts/v8_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698