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

Unified Diff: Source/bindings/v8/Dictionary.cpp

Issue 18475002: WebCrypto: Add framework for AlgorithmIdentifier normalization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rename verify --> verifySignature (because "verify" is a macro on Mac) Created 7 years, 6 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/v8/Dictionary.h ('k') | Source/bindings/v8/custom/V8AlgorithmCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/Dictionary.cpp
diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
index a67c1f341b51a4fd9ccbfc7e1f7ff3e59a47546f..b95bed22a1af87e58838c60a18e4f655ee8e05bc 100644
--- a/Source/bindings/v8/Dictionary.cpp
+++ b/Source/bindings/v8/Dictionary.cpp
@@ -327,6 +327,18 @@ bool Dictionary::get(const String& key, RefPtr<Uint8Array>& value) const
return true;
}
+bool Dictionary::get(const String& key, RefPtr<ArrayBufferView>& value) const
+{
+ v8::Local<v8::Value> v8Value;
+ if (!getKey(key, v8Value))
+ return false;
+
+ value = 0;
+ if (V8ArrayBufferView::HasInstance(v8Value, m_isolate, worldType(m_isolate)))
+ value = V8ArrayBufferView::toNative(v8::Handle<v8::Object>::Cast(v8Value));
+ return true;
+}
+
bool Dictionary::get(const String& key, RefPtr<MIDIPort>& value) const
{
v8::Local<v8::Value> v8Value;
« no previous file with comments | « Source/bindings/v8/Dictionary.h ('k') | Source/bindings/v8/custom/V8AlgorithmCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698