OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestInterfaceDocument.h" | 8 #include "V8TestInterfaceDocument.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 static void locationAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 73 static void locationAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
74 { | 74 { |
75 v8::Local<v8::Value> v8Value = info[0]; | 75 v8::Local<v8::Value> v8Value = info[0]; |
76 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
77 TestInterfaceDocumentV8Internal::locationAttributeSetter(v8Value, info); | 77 TestInterfaceDocumentV8Internal::locationAttributeSetter(v8Value, info); |
78 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 78 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
79 } | 79 } |
80 | 80 |
81 } // namespace TestInterfaceDocumentV8Internal | 81 } // namespace TestInterfaceDocumentV8Internal |
82 | 82 |
83 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceDocumentAc
cessors[] = { | 83 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceDocumentAccessors
[] = { |
84 {"location", TestInterfaceDocumentV8Internal::locationAttributeGetterCallbac
k, TestInterfaceDocumentV8Internal::locationAttributeSetterCallback, 0, 0, 0, v8
::DEFAULT, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguratio
n::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::Chec
kHolder}, | 84 {"location", TestInterfaceDocumentV8Internal::locationAttributeGetterCallbac
k, TestInterfaceDocumentV8Internal::locationAttributeSetterCallback, 0, 0, 0, v8
::DEFAULT, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguratio
n::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::Chec
kHolder}, |
85 }; | 85 }; |
86 | 86 |
87 static void installV8TestInterfaceDocumentTemplate(v8::Local<v8::FunctionTemplat
e> functionTemplate, v8::Isolate* isolate) | 87 static void installV8TestInterfaceDocumentTemplate(v8::Local<v8::FunctionTemplat
e> functionTemplate, v8::Isolate* isolate) |
88 { | 88 { |
89 functionTemplate->ReadOnlyPrototype(); | 89 functionTemplate->ReadOnlyPrototype(); |
90 | 90 |
91 v8::Local<v8::Signature> defaultSignature; | 91 v8::Local<v8::Signature> defaultSignature; |
92 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceDocument", V8Document::domTemplate(isolate), V8TestI
nterfaceDocument::internalFieldCount, | 92 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestInterfaceDocument", V8Document::domTemplate(isolate), V8TestI
nterfaceDocument::internalFieldCount, |
93 0, 0, | 93 0, 0, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } | 130 } |
131 | 131 |
132 void V8TestInterfaceDocument::derefObject(ScriptWrappable* scriptWrappable) | 132 void V8TestInterfaceDocument::derefObject(ScriptWrappable* scriptWrappable) |
133 { | 133 { |
134 #if !ENABLE(OILPAN) | 134 #if !ENABLE(OILPAN) |
135 scriptWrappable->toImpl<TestInterfaceDocument>()->deref(); | 135 scriptWrappable->toImpl<TestInterfaceDocument>()->deref(); |
136 #endif | 136 #endif |
137 } | 137 } |
138 | 138 |
139 } // namespace blink | 139 } // namespace blink |
OLD | NEW |