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

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

Issue 2460563002: [Bindings] Reformat methods.cpp.tmpl (2/4) (Closed)
Patch Set: Rebase 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/V8TestInterfaceSecureContext.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp
index 71646f3539a8ba2e4af6c0205cf9dc4b28b62de2..6e1c424d62aec68828e8105eddb60a41f47eb42f 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceSecureContext.cpp
@@ -289,76 +289,64 @@ void secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback(co
TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetter(v8Value, info);
}
-static void secureContextMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
+static void secureContextMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
- impl->secureContextMethod();
+ impl->secureContextMethod();
}
-void secureContextMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContextV8Internal::secureContextMethodMethod(info);
+void secureContextMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContextV8Internal::secureContextMethodMethod(info);
}
-static void secureContextRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
+static void secureContextRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
- impl->secureContextRuntimeEnabledMethod();
+ impl->secureContextRuntimeEnabledMethod();
}
-void secureContextRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledMethodMethod(info);
+void secureContextRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContextV8Internal::secureContextRuntimeEnabledMethodMethod(info);
}
-static void secureContextWindowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
+static void secureContextWindowExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
- impl->secureContextWindowExposedMethod();
+ impl->secureContextWindowExposedMethod();
}
-void secureContextWindowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContextV8Internal::secureContextWindowExposedMethodMethod(info);
+void secureContextWindowExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContextV8Internal::secureContextWindowExposedMethodMethod(info);
}
-static void secureContextWorkerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
+static void secureContextWorkerExposedMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
- impl->secureContextWorkerExposedMethod();
+ impl->secureContextWorkerExposedMethod();
}
-void secureContextWorkerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContextV8Internal::secureContextWorkerExposedMethodMethod(info);
+void secureContextWorkerExposedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContextV8Internal::secureContextWorkerExposedMethodMethod(info);
}
-static void secureContextWindowExposedRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
+static void secureContextWindowExposedRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
- impl->secureContextWindowExposedRuntimeEnabledMethod();
+ impl->secureContextWindowExposedRuntimeEnabledMethod();
}
-void secureContextWindowExposedRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledMethodMethod(info);
+void secureContextWindowExposedRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContextV8Internal::secureContextWindowExposedRuntimeEnabledMethodMethod(info);
}
-static void secureContextWorkerExposedRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
+static void secureContextWorkerExposedRuntimeEnabledMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContext* impl = V8TestInterfaceSecureContext::toImpl(info.Holder());
- impl->secureContextWorkerExposedRuntimeEnabledMethod();
+ impl->secureContextWorkerExposedRuntimeEnabledMethod();
}
-void secureContextWorkerExposedRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledMethodMethod(info);
+void secureContextWorkerExposedRuntimeEnabledMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceSecureContextV8Internal::secureContextWorkerExposedRuntimeEnabledMethodMethod(info);
}
} // namespace TestInterfaceSecureContextV8Internal
@@ -435,7 +423,7 @@ void V8TestInterfaceSecureContext::preparePrototypeAndInterfaceObject(v8::Local<
}
v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate);
ExecutionContext* executionContext = toExecutionContext(prototypeObject->CreationContext());
- ASSERT(executionContext);
+ DCHECK(executionContext);
if (executionContext && (executionContext->isSecureContext())) {
const V8DOMConfiguration::MethodConfiguration secureContextMethodMethodConfiguration = {"secureContextMethod", TestInterfaceSecureContextV8Internal::secureContextMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype};
V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, secureContextMethodMethodConfiguration);

Powered by Google App Engine
This is Rietveld 408576698