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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceCheckSecurity.cpp

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missed renames Created 6 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 "V8TestInterfaceCheckSecurity.h" 8 #include "V8TestInterfaceCheckSecurity.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 } // namespace blink 32 } // namespace blink
33 33
34 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceCheckSecur ity* object) 34 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceCheckSecur ity* object)
35 { 35 {
36 blink::initializeScriptWrappableForInterface(object); 36 blink::initializeScriptWrappableForInterface(object);
37 } 37 }
38 38
39 namespace blink { 39 namespace blink {
40 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu rity::derefObject, 0, 0, 0, V8TestInterfaceCheckSecurity::installPerContextEnabl edMethods, 0, WrapperTypeObjectPrototype, RefCountedObject }; 40 const WrapperTypeInfo V8TestInterfaceCheckSecurity::wrapperTypeInfo = { gin::kEm bedderBlink, V8TestInterfaceCheckSecurity::domTemplate, V8TestInterfaceCheckSecu rity::derefObject, 0, 0, 0, V8TestInterfaceCheckSecurity::installConditionallyEn abledMethods, 0, WrapperTypeObjectPrototype, RefCountedObject };
41 41
42 namespace TestInterfaceCheckSecurityV8Internal { 42 namespace TestInterfaceCheckSecurityV8Internal {
43 43
44 template <typename T> void V8_USE(T) { } 44 template <typename T> void V8_USE(T) { }
45 45
46 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 46 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
47 { 47 {
48 v8::Handle<v8::Object> holder = info.Holder(); 48 v8::Handle<v8::Object> holder = info.Holder();
49 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder); 49 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toNative(ho lder);
50 v8SetReturnValueInt(info, impl->longAttribute()); 50 v8SetReturnValueInt(info, impl->longAttribute());
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo(); 549 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get ())->typeInfo();
550 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have 550 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper TypeInfo. These will both have
551 // the same object de-ref functions, though, so use that as the basis of the check. 551 // the same object de-ref functions, though, so use that as the basis of the check.
552 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction); 552 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == wrapperTypeInfo.derefObjectFunction);
553 } 553 }
554 554
555 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); 555 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &wrapperTypeInfo, toInternalPointer(impl.get()), isolate);
556 if (UNLIKELY(wrapper.IsEmpty())) 556 if (UNLIKELY(wrapper.IsEmpty()))
557 return wrapper; 557 return wrapper;
558 558
559 installPerContextEnabledProperties(wrapper, impl.get(), isolate); 559 installConditionallyEnabledProperties(wrapper, isolate);
560 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceCheckSecurity>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); 560 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceCheckSecurity>(impl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent);
561 return wrapper; 561 return wrapper;
562 } 562 }
563 563
564 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappableBase* internalPoin ter) 564 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappableBase* internalPoin ter)
565 { 565 {
566 fromInternalPointer(internalPointer)->deref(); 566 fromInternalPointer(internalPointer)->deref();
567 } 567 }
568 568
569 template<> 569 template<>
570 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate) 570 v8::Handle<v8::Value> toV8NoInline(TestInterfaceCheckSecurity* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate)
571 { 571 {
572 return toV8(impl, creationContext, isolate); 572 return toV8(impl, creationContext, isolate);
573 } 573 }
574 574
575 } // namespace blink 575 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698