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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 1667213002: Don't expose nonstandard FileSystem API to Service Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@work-bind
Patch Set: virtual/stable rebaselines Created 4 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 "V8TestInterface5.h" 7 #include "V8TestInterface5.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 namespace TestInterface5ImplementationV8Internal { 43 namespace TestInterface5ImplementationV8Internal {
44 44
45 template<class CallbackInfo> 45 template<class CallbackInfo>
46 static bool TestInterface5ImplementationCreateDataProperty(v8::Local<v8::Name> n ame, v8::Local<v8::Value> v8Value, const CallbackInfo& info) 46 static bool TestInterface5ImplementationCreateDataProperty(v8::Local<v8::Name> n ame, v8::Local<v8::Value> v8Value, const CallbackInfo& info)
47 { 47 {
48 ASSERT(info.This()->IsObject()); 48 ASSERT(info.This()->IsObject());
49 return v8CallBoolean(v8::Local<v8::Object>::Cast(info.This())->CreateDataPro perty(info.GetIsolate()->GetCurrentContext(), name, v8Value)); 49 return v8CallBoolean(v8::Local<v8::Object>::Cast(info.This())->CreateDataPro perty(info.GetIsolate()->GetCurrentContext(), name, v8Value));
50 } 50 }
51 51
52 static void TestInterface5ImplementationConstructorAttributeSetterCallback(v8::L ocal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info)
53 {
54 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
55 do {
56 v8::Local<v8::Value> data = info.Data();
57 ASSERT(data->IsExternal());
58 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()- >CreationContext());
59 if (!perContextData)
60 break;
61 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data);
62 if (!wrapperTypeInfo)
63 break;
64 TestInterface5ImplementationCreateDataProperty(v8String(info.GetIsolate( ), wrapperTypeInfo->interfaceName), v8Value, info);
65 } while (false); // do ... while (false) just for use of break
66 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
67 }
68
69 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info) 52 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo <v8::Value>& info)
70 { 53 {
71 v8::Local<v8::Object> holder = info.Holder(); 54 v8::Local<v8::Object> holder = info.Holder();
72 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); 55 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder);
73 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl ); 56 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl );
74 } 57 }
75 58
76 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info) 59 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall backInfo<v8::Value>& info)
77 { 60 {
78 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 61 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 { 1033 {
1051 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 1034 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
1052 } 1035 }
1053 1036
1054 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 1037 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
1055 { 1038 {
1056 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 1039 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
1057 } 1040 }
1058 1041
1059 } // namespace blink 1042 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698