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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.h

Issue 2446213002: [Bindings] [Reformat] Reformat template files (Closed)
Patch Set: Rebase (Split out Callbackfunctions) Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.h b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.h
index 076293f451a3cb3f4de4d01c1fecf78e4c5cd4f9..d880776d8dfd8f4fb2d45a89d516cfecc76b75b3 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.h
@@ -22,57 +22,54 @@
namespace blink {
class V8TestInterface {
- STATIC_ONLY(V8TestInterface);
-public:
- class PrivateScript {
- STATIC_ONLY(PrivateScript);
- public:
- static bool shortMethodWithShortArgumentImplementedInPrivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int* result);
- static bool stringAttributeAttributeGetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String* result);
- static bool stringAttributeAttributeSetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String cppValue);
- };
+ STATIC_ONLY(V8TestInterface);
+ public:
+ class PrivateScript {
+ STATIC_ONLY(PrivateScript);
+ public:
+ static bool shortMethodWithShortArgumentImplementedInPrivateScriptMethod(LocalFrame* frame, TestInterface* holderImpl, int value, int* result);
+ static bool stringAttributeAttributeGetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String* result);
+ static bool stringAttributeAttributeSetter(LocalFrame* frame, TestInterfaceImplementation* holderImpl, String cppValue);
+ };
- CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
- static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>, v8::Isolate*);
- CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&);
- static TestInterfaceImplementation* toImpl(v8::Local<v8::Object> object)
- {
- return toScriptWrappable(object)->toImpl<TestInterfaceImplementation>();
- }
- CORE_EXPORT static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>);
- CORE_EXPORT static WrapperTypeInfo wrapperTypeInfo;
- template<typename VisitorDispatcher>
- static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable)
- {
- visitor->trace(scriptWrappable->toImpl<TestInterfaceImplementation>());
- }
- static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrappable)
- {
- visitor->traceWrappers(scriptWrappable->toImpl<TestInterfaceImplementation>());
- }
- static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persistent<v8::Object>&);
- static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
- static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
- static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
- CORE_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate);
- CORE_EXPORT static void updateWrapperTypeInfo(InstallTemplateFunction, PreparePrototypeAndInterfaceObjectFunction);
- CORE_EXPORT static void installV8TestInterfaceTemplate(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
- CORE_EXPORT static void registerVoidMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
- CORE_EXPORT static void registerStaticVoidMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
- CORE_EXPORT static void registerPromiseMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
- CORE_EXPORT static void registerStaticPromiseMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
- CORE_EXPORT static void registerPartial2VoidMethodMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
- CORE_EXPORT static void registerPartial2StaticVoidMethodMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
+ CORE_EXPORT static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
+ static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value>, v8::Isolate*);
+ CORE_EXPORT static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&);
+ static TestInterfaceImplementation* toImpl(v8::Local<v8::Object> object) {
+ return toScriptWrappable(object)->toImpl<TestInterfaceImplementation>();
+ }
+ CORE_EXPORT static TestInterfaceImplementation* toImplWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>);
+ CORE_EXPORT static WrapperTypeInfo wrapperTypeInfo;
+ template<typename VisitorDispatcher>
+ static void trace(VisitorDispatcher visitor, ScriptWrappable* scriptWrappable) {
+ visitor->trace(scriptWrappable->toImpl<TestInterfaceImplementation>());
+ }
+ static void traceWrappers(WrapperVisitor* visitor, ScriptWrappable* scriptWrappable) {
+ visitor->traceWrappers(scriptWrappable->toImpl<TestInterfaceImplementation>());
+ }
+ static void visitDOMWrapper(v8::Isolate*, ScriptWrappable*, const v8::Persistent<v8::Object>&);
+ static void implementsCustomVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
+ static void legacyCallCustom(const v8::FunctionCallbackInfo<v8::Value>&);
+ static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
+ CORE_EXPORT static void preparePrototypeAndInterfaceObject(v8::Local<v8::Context>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate);
+ CORE_EXPORT static void updateWrapperTypeInfo(InstallTemplateFunction, PreparePrototypeAndInterfaceObjectFunction);
+ CORE_EXPORT static void installV8TestInterfaceTemplate(v8::Isolate*, const DOMWrapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
+ CORE_EXPORT static void registerVoidMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
+ CORE_EXPORT static void registerStaticVoidMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
+ CORE_EXPORT static void registerPromiseMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
+ CORE_EXPORT static void registerStaticPromiseMethodPartialOverloadMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
+ CORE_EXPORT static void registerPartial2VoidMethodMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
+ CORE_EXPORT static void registerPartial2StaticVoidMethodMethodForPartialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
-private:
- static InstallTemplateFunction installV8TestInterfaceTemplateFunction;
+ private:
+ static InstallTemplateFunction installV8TestInterfaceTemplateFunction;
};
template <>
struct V8TypeOf<TestInterfaceImplementation> {
- typedef V8TestInterface Type;
+ typedef V8TestInterface Type;
};
-} // namespace blink
+} // namespace blink
-#endif // V8TestInterface_h
+#endif // V8TestInterface_h

Powered by Google App Engine
This is Rietveld 408576698