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

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

Issue 156453002: Move encoding module to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 116 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
117 } 117 }
118 118
119 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) 119 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
120 { 120 {
121 if (UNLIKELY(info.Length() < 1)) { 121 if (UNLIKELY(info.Length() < 1)) {
122 throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceGarbag eCollected", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate()); 122 throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceGarbag eCollected", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetI solate());
123 return; 123 return;
124 } 124 }
125 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, info[0]); 125 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, info[0]);
126 RefPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected:: create(str); 126 RefPtrWillBeRawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbag eCollected::create(str);
127 v8::Handle<v8::Object> wrapper = info.Holder(); 127 v8::Handle<v8::Object> wrapper = info.Holder();
128 128
129 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, info.G etIsolate(), WrapperConfiguration::Dependent); 129 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, info.G etIsolate(), WrapperConfiguration::Dependent);
130 v8SetReturnValue(info, wrapper); 130 v8SetReturnValue(info, wrapper);
131 } 131 }
132 132
133 } // namespace TestInterfaceGarbageCollectedV8Internal 133 } // namespace TestInterfaceGarbageCollectedV8Internal
134 134
135 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = { 135 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo llectedAttributes[] = {
136 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib ute>(v8::None), 0 /* on instance */}, 136 {"attr1", TestInterfaceGarbageCollectedV8Internal::attr1AttributeGetterCallb ack, TestInterfaceGarbageCollectedV8Internal::attr1AttributeSetterCallback, 0, 0 , 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttrib ute>(v8::None), 0 /* on instance */},
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 fromInternalPointer(object)->deref(); 221 fromInternalPointer(object)->deref();
222 } 222 }
223 223
224 template<> 224 template<>
225 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 225 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
226 { 226 {
227 return toV8(impl, creationContext, isolate); 227 return toV8(impl, creationContext, isolate);
228 } 228 }
229 229
230 } // namespace WebCore 230 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698