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

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 and sent out to the code review. 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, WrapperTypeObj ectPrototype, 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, WrapperTypeObj ectPrototype, RefCountedObject };
44 44
45 // The definition of TestSpecialOperations's WrapperTypeInfo. If TestSpecialOper ations inherits
46 // from ScriptWrappable, you have to write DEFINE_WRAPPERTYPEINFO macro in the
47 // class definition. Otherwise, you have to write NotScriptWrappable in the IDL
48 // file as an extended attribute in order to let IDL compiler know that
49 // TestSpecialOperations doesn't inherit from ScriptWrappable. Note that
50 // NotScriptWrappable is inheritable.
51 const WrapperTypeInfo& TestSpecialOperations::s_wrapperTypeInfo = V8TestSpecialO perations::wrapperTypeInfo;
52
45 namespace TestSpecialOperationsV8Internal { 53 namespace TestSpecialOperationsV8Internal {
46 54
47 template <typename T> void V8_USE(T) { } 55 template <typename T> void V8_USE(T) { }
48 56
49 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 57 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
50 { 58 {
51 if (UNLIKELY(info.Length() < 1)) { 59 if (UNLIKELY(info.Length() < 1)) {
52 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n amedItem", "TestSpecialOperations", 1, info.Length(), info.GetIsolate()), info.G etIsolate()); 60 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("n amedItem", "TestSpecialOperations", 1, info.Length(), info.GetIsolate()), info.G etIsolate());
53 return; 61 return;
54 } 62 }
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 return 0; 259 return 0;
252 } 260 }
253 261
254 template<> 262 template<>
255 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 263 v8::Handle<v8::Value> toV8NoInline(TestSpecialOperations* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
256 { 264 {
257 return toV8(impl, creationContext, isolate); 265 return toV8(impl, creationContext, isolate);
258 } 266 }
259 267
260 } // namespace blink 268 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698