Chromium Code Reviews| 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' |