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 "V8TestSpecialOperationsNotEnumerable.h" | 8 #include "V8TestSpecialOperationsNotEnumerable.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 0, 0); | 84 0, 0); |
85 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 85 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
86 ALLOW_UNUSED_LOCAL(instanceTemplate); | 86 ALLOW_UNUSED_LOCAL(instanceTemplate); |
87 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 87 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
88 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 88 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
89 { | 89 { |
90 v8::IndexedPropertyHandlerConfiguration config(TestSpecialOperationsNotE
numerableV8Internal::indexedPropertyGetterCallback, 0, 0, 0, 0); | 90 v8::IndexedPropertyHandlerConfiguration config(TestSpecialOperationsNotE
numerableV8Internal::indexedPropertyGetterCallback, 0, 0, 0, 0); |
91 functionTemplate->InstanceTemplate()->SetHandler(config); | 91 functionTemplate->InstanceTemplate()->SetHandler(config); |
92 } | 92 } |
93 { | 93 { |
94 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsNotEnu
merableV8Internal::namedPropertyGetterCallback, 0, 0, 0, 0); | 94 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); |
95 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; | 95 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); |
96 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); | 96 v8::NamedPropertyHandlerConfiguration config(TestSpecialOperationsNotEnu
merableV8Internal::namedPropertyGetterCallback, 0, 0, 0, 0, v8::Handle<v8::Value
>(), static_cast<v8::PropertyHandlerFlags>(flags)); |
97 functionTemplate->InstanceTemplate()->SetHandler(config); | 97 functionTemplate->InstanceTemplate()->SetHandler(config); |
98 } | 98 } |
99 | 99 |
100 // Custom toString template | 100 // Custom toString template |
101 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 101 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
102 } | 102 } |
103 | 103 |
104 v8::Local<v8::FunctionTemplate> V8TestSpecialOperationsNotEnumerable::domTemplat
e(v8::Isolate* isolate) | 104 v8::Local<v8::FunctionTemplate> V8TestSpecialOperationsNotEnumerable::domTemplat
e(v8::Isolate* isolate) |
105 { | 105 { |
106 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsNotEnumerableTemplate); | 106 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestSpecialOperationsNotEnumerableTemplate); |
(...skipping 18 matching lines...) Expand all Loading... |
125 { | 125 { |
126 scriptWrappable->toImpl<TestSpecialOperationsNotEnumerable>()->ref(); | 126 scriptWrappable->toImpl<TestSpecialOperationsNotEnumerable>()->ref(); |
127 } | 127 } |
128 | 128 |
129 void V8TestSpecialOperationsNotEnumerable::derefObject(ScriptWrappable* scriptWr
appable) | 129 void V8TestSpecialOperationsNotEnumerable::derefObject(ScriptWrappable* scriptWr
appable) |
130 { | 130 { |
131 scriptWrappable->toImpl<TestSpecialOperationsNotEnumerable>()->deref(); | 131 scriptWrappable->toImpl<TestSpecialOperationsNotEnumerable>()->deref(); |
132 } | 132 } |
133 | 133 |
134 } // namespace blink | 134 } // namespace blink |
OLD | NEW |