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

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

Issue 1193793003: bindings: Makes almost all attributes accessor-type properties. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 5 years, 5 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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 static void TestInterfaceCheckSecurityOriginSafeMethodSetterCallback(v8::Local<v 8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info) 551 static void TestInterfaceCheckSecurityOriginSafeMethodSetterCallback(v8::Local<v 8::Name> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
552 { 552 {
553 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 553 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
554 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMe thodSetter(name, v8Value, info); 554 TestInterfaceCheckSecurityV8Internal::TestInterfaceCheckSecurityOriginSafeMe thodSetter(name, v8Value, info);
555 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 555 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
556 } 556 }
557 557
558 } // namespace TestInterfaceCheckSecurityV8Internal 558 } // namespace TestInterfaceCheckSecurityV8Internal
559 559
560 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecur ityAccessors[] = { 560 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecur ityAccessors[] = {
561 {"readonlyLongAttribute", TestInterfaceCheckSecurityV8Internal::readonlyLong AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8: :DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exp osedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold er}, 561 {"readonlyLongAttribute", TestInterfaceCheckSecurityV8Internal::readonlyLong AttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder},
562 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu teGetterCallback, TestInterfaceCheckSecurityV8Internal::longAttributeAttributeSe tterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, 562 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu teGetterCallback, TestInterfaceCheckSecurityV8Internal::longAttributeAttributeSe tterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder},
563 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 563 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, 0, v8: :DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo sedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r},
564 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::ALL_CAN_READ), static_cast<v8::PropertyAttr ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O nPrototype, V8DOMConfiguration::CheckHolder}, 564 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration: :ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Check Holder},
565 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_c ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 565 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett erCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC onfiguration::CheckHolder},
566 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett erCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableR eadonlyLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}, 566 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett erCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableR eadonlyLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
567 {"doNotCheckSecurityReplaceableReadonlyLongAccessor", TestInterfaceCheckSecu rityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAccessorAttributeGetter Callback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableRea donlyLongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl >(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE), static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 567 {"doNotCheckSecurityReplaceableReadonlyLongAccessor", TestInterfaceCheckSecu rityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAccessorAttributeGetter Callback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableRea donlyLongAccessorAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf iguration::OnPrototype, V8DOMConfiguration::CheckHolder},
568 }; 568 };
569 569
570 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurit yMethods[] = { 570 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurit yMethods[] = {
571 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 571 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
572 }; 572 };
573 573
574 static void installV8TestInterfaceCheckSecurityTemplate(v8::Local<v8::FunctionTe mplate> functionTemplate, v8::Isolate* isolate) 574 static void installV8TestInterfaceCheckSecurityTemplate(v8::Local<v8::FunctionTe mplate> functionTemplate, v8::Isolate* isolate)
575 { 575 {
576 functionTemplate->ReadOnlyPrototype(); 576 functionTemplate->ReadOnlyPrototype();
577 577
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 { 630 {
631 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); 631 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref();
632 } 632 }
633 633
634 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) 634 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable)
635 { 635 {
636 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); 636 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref();
637 } 637 }
638 638
639 } // namespace blink 639 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698