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

Issue 2949143002: [Extensions Bindings] Support ArrayBufferView in idl files (Closed)

Created:
3 years, 6 months ago by Devlin
Modified:
3 years, 6 months ago
Reviewers:
lazyboy, jbroman
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions Bindings] Support ArrayBufferView in idl files Currently, to specify an ArrayBufferView in an IDL file, we use `[instanceOf=Uint8Array] object view` Change this to `[instanceOf=Uint8Array] ArrayBufferView view` Update the schema compiler to consider the type of ArrayBufferView to be `binary`, rather than `object`, so that these values are properly converted in native bindings. BUG=653596 TEST=browser_tests --gtest_filter=ExtensionIdltestApiTest.IdlCompiler Review-Url: https://codereview.chromium.org/2949143002 Cr-Commit-Position: refs/heads/master@{#482120} Committed: https://chromium.googlesource.com/chromium/src/+/b35688d3937842851444f07370dfe09cb94dd1b9

Patch Set 1 #

Patch Set 2 : . #

Total comments: 3

Patch Set 3 : extend comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M chrome/common/extensions/api/idltest.idl View 1 chunk +3 lines, -2 lines 0 comments Download
M extensions/renderer/bindings/api_bindings_system.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M extensions/renderer/bindings/argument_spec.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M extensions/renderer/v8_schema_registry.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/json_schema_compiler/idl_schema.py View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
Devlin
I'm not thrilled with this, and I don't think we actually *use* ArrayBufferView arguments anywhere, ...
3 years, 6 months ago (2017-06-22 21:54:58 UTC) #11
jbroman
lgtm
3 years, 6 months ago (2017-06-23 18:22:42 UTC) #12
lazyboy
lgtm https://codereview.chromium.org/2949143002/diff/20001/tools/json_schema_compiler/idl_schema.py File tools/json_schema_compiler/idl_schema.py (right): https://codereview.chromium.org/2949143002/diff/20001/tools/json_schema_compiler/idl_schema.py#newcode320 tools/json_schema_compiler/idl_schema.py:320: # We force the APIs to specify instanceOf ...
3 years, 6 months ago (2017-06-24 00:53:16 UTC) #13
Devlin
https://codereview.chromium.org/2949143002/diff/20001/tools/json_schema_compiler/idl_schema.py File tools/json_schema_compiler/idl_schema.py (right): https://codereview.chromium.org/2949143002/diff/20001/tools/json_schema_compiler/idl_schema.py#newcode320 tools/json_schema_compiler/idl_schema.py:320: # We force the APIs to specify instanceOf since ...
3 years, 6 months ago (2017-06-24 02:05:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2949143002/40001
3 years, 6 months ago (2017-06-24 02:05:45 UTC) #20
commit-bot: I haz the power
3 years, 6 months ago (2017-06-24 02:14:30 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b35688d3937842851444f07370df...

Powered by Google App Engine
This is Rietveld 408576698