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

Side by Side Diff: Source/bindings/tests/results/core/V8TestSpecialOperationsNotEnumerable.cpp

Issue 1121703002: bindings: Uses V8's named property interceptor for Window. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698