| 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 "V8TestException.h" | 8 #include "V8TestException.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 79 static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 80 { | 80 { |
| 81 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 81 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 82 TestExceptionV8Internal::toStringMethod(info); | 82 TestExceptionV8Internal::toStringMethod(info); |
| 83 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 83 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace TestExceptionV8Internal | 86 } // namespace TestExceptionV8Internal |
| 87 | 87 |
| 88 static const V8DOMConfiguration::AttributeConfiguration V8TestExceptionAttribute
s[] = { | 88 static const V8DOMConfiguration::AttributeConfiguration V8TestExceptionAttribute
s[] = { |
| 89 {"readonlyUnsignedShortAttribute", TestExceptionV8Internal::readonlyUnsigned
ShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, 0 /* on instance */}, | 89 {"readonlyUnsignedShortAttribute", TestExceptionV8Internal::readonlyUnsigned
ShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
| 90 {"readonlyStringAttribute", TestExceptionV8Internal::readonlyStringAttribute
AttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, 0 /* on instance */}, | 90 {"readonlyStringAttribute", TestExceptionV8Internal::readonlyStringAttribute
AttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInstance}, |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 static void installV8TestExceptionTemplate(v8::Handle<v8::FunctionTemplate> func
tionTemplate, v8::Isolate* isolate) | 93 static void installV8TestExceptionTemplate(v8::Handle<v8::FunctionTemplate> func
tionTemplate, v8::Isolate* isolate) |
| 94 { | 94 { |
| 95 functionTemplate->ReadOnlyPrototype(); | 95 functionTemplate->ReadOnlyPrototype(); |
| 96 | 96 |
| 97 v8::Local<v8::Signature> defaultSignature; | 97 v8::Local<v8::Signature> defaultSignature; |
| 98 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestException", v8::Local<v8::FunctionTemplate>(), V8TestException::intern
alFieldCount, | 98 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl
ate, "TestException", v8::Local<v8::FunctionTemplate>(), V8TestException::intern
alFieldCount, |
| 99 V8TestExceptionAttributes, WTF_ARRAY_LENGTH(V8TestExceptionAttributes), | 99 V8TestExceptionAttributes, WTF_ARRAY_LENGTH(V8TestExceptionAttributes), |
| 100 0, 0, | 100 0, 0, |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 fromInternalPointer(object)->deref(); | 167 fromInternalPointer(object)->deref(); |
| 168 } | 168 } |
| 169 | 169 |
| 170 template<> | 170 template<> |
| 171 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 171 v8::Handle<v8::Value> toV8NoInline(TestException* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
| 172 { | 172 { |
| 173 return toV8(impl, creationContext, isolate); | 173 return toV8(impl, creationContext, isolate); |
| 174 } | 174 } |
| 175 | 175 |
| 176 } // namespace blink | 176 } // namespace blink |
| OLD | NEW |