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

Unified Diff: tools/json_schema_compiler/idl_schema.py

Issue 2949143002: [Extensions Bindings] Support ArrayBufferView in idl files (Closed)
Patch Set: . Created 3 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
Index: tools/json_schema_compiler/idl_schema.py
diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
index 7bbe84246768df23684c6ed6f9784f6c238e7bb5..125e5bd481f246a31d8b79e7127478175626ace9 100755
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -315,6 +315,10 @@ class Typeref(object):
elif self.typeref == 'ArrayBuffer':
properties['type'] = 'binary'
properties['isInstanceOf'] = 'ArrayBuffer'
+ elif self.typeref == 'ArrayBufferView':
+ properties['type'] = 'binary'
+ # We force the APIs to specify instanceOf since ArrayBufferView isn't an
lazyboy 2017/06/24 00:53:16 nit: also add: therefore we don't specify instance
Devlin 2017/06/24 02:05:26 Done.
+ # instantiable type.
elif self.typeref == 'FileEntry':
properties['type'] = 'object'
properties['isInstanceOf'] = 'FileEntry'
« chrome/common/extensions/api/idltest.idl ('K') | « extensions/renderer/v8_schema_registry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698