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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. 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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 18 matching lines...) Expand all
29 #include "core/dom/Document.h" 29 #include "core/dom/Document.h"
30 #include "core/frame/LocalFrame.h" 30 #include "core/frame/LocalFrame.h"
31 #include "platform/RuntimeEnabledFeatures.h" 31 #include "platform/RuntimeEnabledFeatures.h"
32 #include "platform/ScriptForbiddenScope.h" 32 #include "platform/ScriptForbiddenScope.h"
33 #include "platform/TraceEvent.h" 33 #include "platform/TraceEvent.h"
34 #include "wtf/GetPtr.h" 34 #include "wtf/GetPtr.h"
35 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 static void initializeScriptWrappableForInterface(TestInterfaceImplementation* i mpl)
40 {
41 impl->setTypeInfo(&V8TestInterface::wrapperTypeInfo);
42 }
43
44 } // namespace blink
45
46 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceImplementa tion* object)
47 {
48 blink::initializeScriptWrappableForInterface(object);
49 }
50
51 namespace blink {
52
53 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref Object, V8TestInterface::createPersistentHandle, V8TestInterface::toActiveDOMObj ect, 0, V8TestInterface::visitDOMWrapper, V8TestInterface::installConditionallyE nabledMethods, V8TestInterface::installConditionallyEnabledProperties, &V8TestIn terfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrap perTypeInfo::ObjectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCoun tedObject }; 39 const WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8TestInterface::domTemplate, V8TestInterface::refObject, V8TestInterface::deref Object, V8TestInterface::createPersistentHandle, V8TestInterface::toActiveDOMObj ect, 0, V8TestInterface::visitDOMWrapper, V8TestInterface::installConditionallyE nabledMethods, V8TestInterface::installConditionallyEnabledProperties, &V8TestIn terfaceEmpty::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, Wrap perTypeInfo::ObjectClassId, WrapperTypeInfo::Dependent, WrapperTypeInfo::RefCoun tedObject };
54 40
55 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eImplementation.h. 41 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eImplementation.h.
56 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 42 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
57 // bindings/core/v8/ScriptWrappable.h. 43 // bindings/core/v8/ScriptWrappable.h.
58 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn terface::wrapperTypeInfo; 44 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn terface::wrapperTypeInfo;
59 45
60 namespace TestInterfaceImplementationV8Internal { 46 namespace TestInterfaceImplementationV8Internal {
61 47
62 template <typename T> void V8_USE(T) { } 48 template <typename T> void V8_USE(T) { }
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after
1981 if (block.HasCaught()) { 1967 if (block.HasCaught()) {
1982 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block); 1968 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat e(), exceptionState, block);
1983 block.ReThrow(); 1969 block.ReThrow();
1984 return false; 1970 return false;
1985 } 1971 }
1986 return true; 1972 return true;
1987 } 1973 }
1988 1974
1989 } // namespace blink 1975 } // namespace blink
1990 #endif // ENABLE(CONDITION) 1976 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestException.cpp ('k') | Source/bindings/tests/results/V8TestInterface2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698