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

Unified Diff: Source/bindings/core/v8/V8Binding.h

Issue 1091543002: IDL: Add [FlexibleArrayBufferView] and use for bufferSubData Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-includes-for-type-tuning
Patch Set: add warning about the storage's life-time Created 5 years, 8 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
« no previous file with comments | « Source/bindings/IDLExtendedAttributes.txt ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8Binding.h
diff --git a/Source/bindings/core/v8/V8Binding.h b/Source/bindings/core/v8/V8Binding.h
index 8cdce0b341093efc08197aca973d6d1b1ea688a3..fd6b8518ab2726981d2e59d7f6c690f4341a5a99 100644
--- a/Source/bindings/core/v8/V8Binding.h
+++ b/Source/bindings/core/v8/V8Binding.h
@@ -62,6 +62,7 @@ class LocalDOMWindow;
class LocalFrame;
class NodeFilter;
class XPathNSResolver;
+class FlexibleArrayBufferView;
template <typename T>
struct V8TypeOf {
@@ -897,6 +898,12 @@ CORE_EXPORT Frame* toFrameIfNotDetached(v8::Handle<v8::Context>);
CORE_EXPORT EventTarget* toEventTarget(v8::Isolate*, v8::Handle<v8::Value>);
+// If 'storage' is non-null, it must be large enough to copy all bytes in the
+// array buffer view into it.
+// Use SMALL_ARRAY_BUFFER_VIEW_STORAGE(v8Value) to allocate it using alloca() in
+// the callers stack frame.
+CORE_EXPORT void toFlexibleArrayBufferView(v8::Isolate*, v8::Handle<v8::Value>, FlexibleArrayBufferView&, void* storage = nullptr);
+
// If the current context causes out of memory, JavaScript setting
// is disabled and it returns true.
bool handleOutOfMemory();
« no previous file with comments | « Source/bindings/IDLExtendedAttributes.txt ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698