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

Issue 16951005: Add support for byte and octet Web IDL types to the bindings generator (Closed)

Created:
7 years, 6 months ago by do-not-use
Modified:
7 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, Rik, adamk+blink_chromium.org, haraken, Nate Chapin, lgombos
Visibility:
Public.

Description

Add support for byte and octet Web IDL types to the bindings generator Add support for byte and octet Web IDL types to the bindings generator: - http://dev.w3.org/2006/webapi/WebIDL/#idl-byte - http://dev.w3.org/2006/webapi/WebIDL/#idl-octet Get rid of custom code for DataView's getInt8, getUInt8, setInt8, setUInt8 methods and use the newly supported byte / octet types. Updated fast/js/webidl-type-mapping.html layout test and the bindings test to cover byte and octet types. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152423

Patch Set 1 #

Total comments: 2

Patch Set 2 : Take Kentaro's feedback into consideration #

Total comments: 9

Patch Set 3 : Take Joshua's feedback into consideration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+595 lines, -86 lines) Patch
M LayoutTests/fast/js/webidl-type-mapping.html View 1 2 1 chunk +104 lines, -0 lines 0 comments Download
M LayoutTests/fast/js/webidl-type-mapping-expected.txt View 1 2 1 chunk +206 lines, -0 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 chunks +8 lines, -2 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 2 chunks +6 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 8 chunks +148 lines, -2 lines 0 comments Download
M Source/bindings/v8/V8Binding.h View 1 chunk +26 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8Binding.cpp View 1 2 2 chunks +76 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8DataViewCustom.cpp View 1 chunk +0 lines, -72 lines 0 comments Download
M Source/core/html/canvas/DataView.idl View 2 chunks +4 lines, -10 lines 0 comments Download
M Source/core/testing/TypeConversions.h View 2 chunks +12 lines, -0 lines 0 comments Download
M Source/core/testing/TypeConversions.idl View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
do-not-use
7 years, 6 months ago (2013-06-13 14:04:39 UTC) #1
arv (Not doing code reviews)
LGTM Joshua, please take a look as well.
7 years, 6 months ago (2013-06-13 14:41:13 UTC) #2
haraken
LGTM https://codereview.chromium.org/16951005/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (right): https://codereview.chromium.org/16951005/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm#newcode4813 Source/bindings/scripts/CodeGeneratorV8.pm:4813: return "int" if $type eq "long" or $type ...
7 years, 6 months ago (2013-06-13 14:45:30 UTC) #3
jsbell
lgtm as well with a few suggestions https://codereview.chromium.org/16951005/diff/8001/LayoutTests/fast/js/webidl-type-mapping-expected.txt File LayoutTests/fast/js/webidl-type-mapping-expected.txt (right): https://codereview.chromium.org/16951005/diff/8001/LayoutTests/fast/js/webidl-type-mapping-expected.txt#newcode566 LayoutTests/fast/js/webidl-type-mapping-expected.txt:566: PASS converter.testByte ...
7 years, 6 months ago (2013-06-13 16:51:30 UTC) #4
do-not-use
https://codereview.chromium.org/16951005/diff/8001/LayoutTests/fast/js/webidl-type-mapping-expected.txt File LayoutTests/fast/js/webidl-type-mapping-expected.txt (right): https://codereview.chromium.org/16951005/diff/8001/LayoutTests/fast/js/webidl-type-mapping-expected.txt#newcode566 LayoutTests/fast/js/webidl-type-mapping-expected.txt:566: PASS converter.testByte is 0x7F On 2013/06/13 16:51:31, jsbell wrote: ...
7 years, 6 months ago (2013-06-13 19:11:19 UTC) #5
jsbell
https://codereview.chromium.org/16951005/diff/8001/Source/bindings/v8/V8Binding.cpp File Source/bindings/v8/V8Binding.cpp (right): https://codereview.chromium.org/16951005/diff/8001/Source/bindings/v8/V8Binding.cpp#newcode154 Source/bindings/v8/V8Binding.cpp:154: return static_cast<int8_t>(result > kMaxInt8 ? result - 256 : ...
7 years, 6 months ago (2013-06-13 19:14:23 UTC) #6
do-not-use
I updated the patch to take Joshua's feedback into consideration (Patch Set 3).
7 years, 6 months ago (2013-06-13 19:35:56 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/16951005/15001
7 years, 6 months ago (2013-06-14 06:00:05 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-14 07:39:00 UTC) #9
Message was sent while issue was closed.
Change committed as 152423

Powered by Google App Engine
This is Rietveld 408576698