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

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

Issue 26547005: IDL compiler: [PerContextEnabled] for getters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 7 years, 2 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 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // In ScriptWrappable::init, the use of a local function declaration has an issu e on Windows: 48 // In ScriptWrappable::init, the use of a local function declaration has an issu e on Windows:
49 // the local declaration does not pick up the surrounding namespace. Therefore, we provide this function 49 // the local declaration does not pick up the surrounding namespace. Therefore, we provide this function
50 // in the global namespace. 50 // in the global namespace.
51 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe edback/details/664619/the-namespace-of-local-function-declarations-in-c) 51 // (More info on the MSVC bug here: http://connect.microsoft.com/VisualStudio/fe edback/details/664619/the-namespace-of-local-function-declarations-in-c)
52 void webCoreInitializeScriptWrappableForInterface(WebCore::TestCustomAccessors* object) 52 void webCoreInitializeScriptWrappableForInterface(WebCore::TestCustomAccessors* object)
53 { 53 {
54 WebCore::initializeScriptWrappableForInterface(object); 54 WebCore::initializeScriptWrappableForInterface(object);
55 } 55 }
56 56
57 namespace WebCore { 57 namespace WebCore {
58 WrapperTypeInfo V8TestCustomAccessors::info = { V8TestCustomAccessors::GetTempla te, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAccessors::installP erContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; 58 WrapperTypeInfo V8TestCustomAccessors::info = { V8TestCustomAccessors::GetTempla te, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAccessors::installP erContextEnabledPrototypeProperties, 0, WrapperTypeObjectPrototype };
59 59
60 namespace TestCustomAccessorsV8Internal { 60 namespace TestCustomAccessorsV8Internal {
61 61
62 template <typename T> void V8_USE(T) { } 62 template <typename T> void V8_USE(T) { }
63 63
64 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg s) 64 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg s)
65 { 65 {
66 if (UNLIKELY(args.Length() < 1)) { 66 if (UNLIKELY(args.Length() < 1)) {
67 throwTypeError(ExceptionMessages::failedToExecute("anotherFunction", "Te stCustomAccessors", ExceptionMessages::notEnoughArguments(1, args.Length())), ar gs.GetIsolate()); 67 throwTypeError(ExceptionMessages::failedToExecute("anotherFunction", "Te stCustomAccessors", ExceptionMessages::notEnoughArguments(1, args.Length())), ar gs.GetIsolate());
68 return; 68 return;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje ct(impl.get()); 199 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje ct(impl.get());
200 // Might be a XXXConstructor::info instead of an XXX::info. These will b oth have 200 // Might be a XXXConstructor::info instead of an XXX::info. These will b oth have
201 // the same object de-ref functions, though, so use that as the basis of the check. 201 // the same object de-ref functions, though, so use that as the basis of the check.
202 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == info.derefObjectFunction); 202 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction == info.derefObjectFunction);
203 } 203 }
204 204
205 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, toInternalPointer(impl.get()), isolate); 205 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext , &info, toInternalPointer(impl.get()), isolate);
206 if (UNLIKELY(wrapper.IsEmpty())) 206 if (UNLIKELY(wrapper.IsEmpty()))
207 return wrapper; 207 return wrapper;
208 208
209 installPerContextProperties(wrapper, impl.get(), isolate); 209 installPerContextEnabledProperties(wrapper, impl.get(), isolate);
210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
211 return wrapper; 211 return wrapper;
212 } 212 }
213 213
214 void V8TestCustomAccessors::derefObject(void* object) 214 void V8TestCustomAccessors::derefObject(void* object)
215 { 215 {
216 fromInternalPointer(object)->deref(); 216 fromInternalPointer(object)->deref();
217 } 217 }
218 218
219 } // namespace WebCore 219 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestCustomAccessors.h ('k') | Source/bindings/tests/results/V8TestEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698