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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestConstants.cpp

Issue 2558383003: [Refactoring] Remove newline hacks from V8 binding template (Closed)
Patch Set: rebase Created 4 years 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/V8TestConstants.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestConstants.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestConstants.cpp
index 7087dae63d921b0f26b5b4a1a0756722950cc697..eb7dded86a474eee9547b517147c7a2ed14e6cad 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestConstants.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestConstants.cpp
@@ -75,6 +75,7 @@ static void installV8TestConstantsTemplate(v8::Isolate* isolate, const DOMWrappe
ALLOW_UNUSED_LOCAL(instanceTemplate);
v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->PrototypeTemplate();
ALLOW_UNUSED_LOCAL(prototypeTemplate);
+
// Register DOM constants, attributes and operations.
const V8DOMConfiguration::ConstantConfiguration V8TestConstantsConstants[] = {
{"CONST_VALUE_ZERO", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort},
@@ -176,6 +177,7 @@ void V8TestConstants::installFeatureName2(ScriptState* scriptState, v8::Local<v8
void V8TestConstants::installFeatureName2(ScriptState* scriptState) {
installFeatureName2(scriptState, v8::Local<v8::Object>());
}
+
v8::Local<v8::FunctionTemplate> V8TestConstants::domTemplate(v8::Isolate* isolate, const DOMWrapperWorld& world) {
return V8DOMConfiguration::domClassTemplate(isolate, world, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), installV8TestConstantsTemplate);
}

Powered by Google App Engine
This is Rietveld 408576698