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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 "V8TestSpecialOperations.h" 8 #include "V8TestSpecialOperations.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 24 matching lines...) Expand all
35 35
36 void webCoreInitializeScriptWrappableForInterface(blink::TestSpecialOperations* object) 36 void webCoreInitializeScriptWrappableForInterface(blink::TestSpecialOperations* object)
37 { 37 {
38 blink::initializeScriptWrappableForInterface(object); 38 blink::initializeScriptWrappableForInterface(object);
39 } 39 }
40 40
41 namespace blink { 41 namespace blink {
42 42
43 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::refObject , V8TestSpecialOperations::derefObject, V8TestSpecialOperations::createPersisten tHandle, 0, 0, 0, V8TestSpecialOperations::installConditionallyEnabledMethods, V 8TestSpecialOperations::installConditionallyEnabledProperties, 0, WrapperTypeInf o::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo:: Independent, WrapperTypeInfo::RefCountedObject }; 43 const WrapperTypeInfo V8TestSpecialOperations::wrapperTypeInfo = { gin::kEmbedde rBlink, V8TestSpecialOperations::domTemplate, V8TestSpecialOperations::refObject , V8TestSpecialOperations::derefObject, V8TestSpecialOperations::createPersisten tHandle, 0, 0, 0, V8TestSpecialOperations::installConditionallyEnabledMethods, V 8TestSpecialOperations::installConditionallyEnabledProperties, 0, WrapperTypeInf o::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo:: Independent, WrapperTypeInfo::RefCountedObject };
44 44
45 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestSpecialO perations.h.
46 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
47 // bindings/core/v8/ScriptWrappable.h.
48 const WrapperTypeInfo& TestSpecialOperations::s_wrapperTypeInfo = V8TestSpecialO perations::wrapperTypeInfo;
49
45 namespace TestSpecialOperationsV8Internal { 50 namespace TestSpecialOperationsV8Internal {
46 51
47 template <typename T> void V8_USE(T) { } 52 template <typename T> void V8_USE(T) { }
48 53
49 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 54 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
50 { 55 {
51 if (UNLIKELY(info.Length() < 1)) { 56 if (UNLIKELY(info.Length() < 1)) {
52 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n amedItem", "TestSpecialOperations", 1, info.Length(), info.GetIsolate()), info.G etIsolate()); 57 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n amedItem", "TestSpecialOperations", 1, info.Length(), info.GetIsolate()), info.G etIsolate());
53 return; 58 return;
54 } 59 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 return 0; 256 return 0;
252 } 257 }
253 258
254 template<> 259 template<>
255 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 260 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
256 { 261 {
257 return toV8(impl, creationContext, isolate); 262 return toV8(impl, creationContext, isolate);
258 } 263 }
259 264
260 } // namespace blink 265 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698