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

Unified Diff: Source/bindings/tests/results/core/V8DataView.h

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/results/core/V8DataView.h
diff --git a/Source/bindings/tests/results/core/V8TestTypedefs.h b/Source/bindings/tests/results/core/V8DataView.h
similarity index 69%
copy from Source/bindings/tests/results/core/V8TestTypedefs.h
copy to Source/bindings/tests/results/core/V8DataView.h
index 69b72f6796390e80104253bbc9f2830dbb8ce705..e643aacc7b16b66921b82d8ee15d67072484afec 100644
--- a/Source/bindings/tests/results/core/V8TestTypedefs.h
+++ b/Source/bindings/tests/results/core/V8DataView.h
@@ -4,37 +4,32 @@
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
-#ifndef V8TestTypedefs_h
-#define V8TestTypedefs_h
+#ifndef V8DataView_h
+#define V8DataView_h
#include "bindings/core/v8/ScriptWrappable.h"
+#include "bindings/core/v8/V8ArrayBufferView.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8DOMWrapper.h"
#include "bindings/core/v8/WrapperTypeInfo.h"
-#include "bindings/tests/idls/core/TestTypedefs.h"
+#include "bindings/tests/idls/core/TestDataView.h"
#include "platform/heap/Handle.h"
namespace blink {
-class V8TestTypedefs {
+class V8DataView {
public:
static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*);
- static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Value>, v8::Isolate*);
- static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
- static TestTypedefs* toImpl(v8::Handle<v8::Object> object)
- {
- return blink::toScriptWrappableBase(object)->toImpl<TestTypedefs>();
- }
- static TestTypedefs* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
+ static TestDataView* toImpl(v8::Handle<v8::Object> object);
+ static TestDataView* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
static const WrapperTypeInfo wrapperTypeInfo;
static void refObject(ScriptWrappableBase* internalPointer);
static void derefObject(ScriptWrappableBase* internalPointer);
static void trace(Visitor* visitor, ScriptWrappableBase* internalPointer)
{
}
- static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
- static inline ScriptWrappableBase* toScriptWrappableBase(TestTypedefs* impl)
+ static inline ScriptWrappableBase* toScriptWrappableBase(TestDataView* impl)
{
return impl->toScriptWrappableBase();
}
@@ -42,16 +37,16 @@ public:
static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*) { }
};
-inline v8::Handle<v8::Object> wrap(TestTypedefs* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+inline v8::Handle<v8::Object> wrap(TestDataView* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
return impl->wrap(creationContext, isolate);
}
-inline v8::Handle<v8::Value> toV8(TestTypedefs* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+inline v8::Handle<v8::Value> toV8(TestDataView* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
if (UNLIKELY(!impl))
return v8::Null(isolate);
- v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestTypedefs>(impl, isolate);
+ v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8DataView>(impl, isolate);
if (!wrapper.IsEmpty())
return wrapper;
@@ -59,68 +54,68 @@ inline v8::Handle<v8::Value> toV8(TestTypedefs* impl, v8::Handle<v8::Object> cre
}
template<typename CallbackInfo>
-inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestTypedefs* impl)
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestDataView* impl)
{
if (UNLIKELY(!impl)) {
v8SetReturnValueNull(callbackInfo);
return;
}
- if (DOMDataStore::setReturnValueFromWrapper<V8TestTypedefs>(callbackInfo.GetReturnValue(), impl))
+ if (DOMDataStore::setReturnValueFromWrapper<V8DataView>(callbackInfo.GetReturnValue(), impl))
return;
v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
v8SetReturnValue(callbackInfo, wrapper);
}
template<typename CallbackInfo>
-inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestTypedefs* impl)
+inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestDataView* impl)
{
ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld());
if (UNLIKELY(!impl)) {
v8SetReturnValueNull(callbackInfo);
return;
}
- if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestTypedefs>(callbackInfo.GetReturnValue(), impl))
+ if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8DataView>(callbackInfo.GetReturnValue(), impl))
return;
v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
v8SetReturnValue(callbackInfo, wrapper);
}
template<class CallbackInfo, class Wrappable>
-inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestTypedefs* impl, Wrappable* wrappable)
+inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestDataView* impl, Wrappable* wrappable)
{
if (UNLIKELY(!impl)) {
v8SetReturnValueNull(callbackInfo);
return;
}
- if (DOMDataStore::setReturnValueFromWrapperFast<V8TestTypedefs>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
+ if (DOMDataStore::setReturnValueFromWrapperFast<V8DataView>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
return;
v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
v8SetReturnValue(callbackInfo, wrapper);
}
-inline v8::Handle<v8::Value> toV8(PassRefPtr<TestTypedefs> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
+inline v8::Handle<v8::Value> toV8(PassRefPtr<TestDataView> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
{
return toV8(impl.get(), creationContext, isolate);
}
template<class CallbackInfo>
-inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestTypedefs> impl)
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestDataView> impl)
{
v8SetReturnValue(callbackInfo, impl.get());
}
template<class CallbackInfo>
-inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestTypedefs> impl)
+inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestDataView> impl)
{
v8SetReturnValueForMainWorld(callbackInfo, impl.get());
}
template<class CallbackInfo, class Wrappable>
-inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<TestTypedefs> impl, Wrappable* wrappable)
+inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<TestDataView> impl, Wrappable* wrappable)
{
v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
}
} // namespace blink
-#endif // V8TestTypedefs_h
+#endif // V8DataView_h
« no previous file with comments | « Source/bindings/tests/results/core/V8ArrayBufferView.cpp ('k') | Source/bindings/tests/results/core/V8DataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698