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

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

Issue 946973005: IDL: Drop value conversion (V8 -> C++) macros from generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 56 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
57 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info); 57 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teGetter(info);
58 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 58 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
59 } 59 }
60 60
61 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 61 static void doNotCheckSecurityLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
62 { 62 {
63 v8::Local<v8::Object> holder = info.Holder(); 63 v8::Local<v8::Object> holder = info.Holder();
64 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate()); 64 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolate());
65 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er); 65 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er);
66 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 66 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return);
67 impl->setDoNotCheckSecurityLongAttribute(cppValue); 67 impl->setDoNotCheckSecurityLongAttribute(cppValue);
68 } 68 }
69 69
70 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo) 70 static void doNotCheckSecurityLongAttributeAttributeSetterCallback(v8::Local<v8: :String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
71 { 71 {
72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 72 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
73 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(v8Value, info); 73 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityLongAttributeAttribu teSetter(v8Value, info);
74 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 74 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
75 } 75 }
76 76
(...skipping 23 matching lines...) Expand all
100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 100 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
101 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info); 101 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeGetter(info);
102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 102 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
103 } 103 }
104 104
105 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 105 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetter(v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
106 { 106 {
107 v8::Local<v8::Object> holder = info.Holder(); 107 v8::Local<v8::Object> holder = info.Holder();
108 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e()); 108 ExceptionState exceptionState(ExceptionState::SetterContext, "doNotCheckSecu rityOnSetterLongAttribute", "TestInterfaceCheckSecurity", holder, info.GetIsolat e());
109 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er); 109 TestInterfaceCheckSecurity* impl = V8TestInterfaceCheckSecurity::toImpl(hold er);
110 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 110 TONATIVE_DECLARE(int, cppValue, convertAndThrow(cppValue = toInt32(v8Value, exceptionState), exceptionState), return);
111 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue); 111 impl->setDoNotCheckSecurityOnSetterLongAttribute(cppValue);
112 } 112 }
113 113
114 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info) 114 static void doNotCheckSecurityOnSetterLongAttributeAttributeSetterCallback(v8::L ocal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v oid>& info)
115 { 115 {
116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 116 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
117 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(v8Value, info); 117 TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttribut eAttributeSetter(v8Value, info);
118 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 118 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
119 } 119 }
120 120
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 { 526 {
527 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref(); 527 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->ref();
528 } 528 }
529 529
530 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable) 530 void V8TestInterfaceCheckSecurity::derefObject(ScriptWrappable* scriptWrappable)
531 { 531 {
532 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref(); 532 scriptWrappable->toImpl<TestInterfaceCheckSecurity>()->deref();
533 } 533 }
534 534
535 } // namespace blink 535 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698