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

Issue 265753003: Add support for type checking of floating point attributes (Closed)

Created:
6 years, 7 months ago by Nils Barth (inactive)
Modified:
6 years, 7 months ago
Reviewers:
haraken
CC:
blink-reviews, philipj_slow, arv+blink, jsbell+bindings_chromium.org, feature-media-reviews_chromium.org, sof, kouhei+bindings_chromium.org, eric.carlson_apple.com, abarth-chromium, marja+watch_chromium.org, blink-reviews-bindings_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive, fs
Visibility:
Public.

Description

Add support for type checking of floating point attributes Just do the same thing for value passed to setter(if (!std::isfinite) ...) as for method arguments. Add examples in SourceBuffer for checking. Followup to: Add support for type checking of floating point arguments as [TypeChecking=Unrestricted] https://codereview.chromium.org/259773008/ This does *not* add TypeChecking throughout SourceBuffer, only enough for testing; Fredrik is doing full type checking in: Apply TypeChecking to MediaSource IDLs https://codereview.chromium.org/266453005/ R=haraken BUG=354298 TEST=http/tests/media/media-source/mediasource-timestamp-offset.html TEST=http/tests/media/media-source/mediasource-appendwindow.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173064

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove nop [TypeChecking=Unrestricted] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -24 lines) Patch
M Source/bindings/scripts/v8_attributes.py View 3 chunks +11 lines, -5 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 chunk +14 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 2 chunks +12 lines, -0 lines 0 comments Download
M Source/modules/mediasource/SourceBuffer.cpp View 3 chunks +3 lines, -12 lines 0 comments Download
M Source/modules/mediasource/SourceBuffer.idl View 1 2 chunks +7 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Nils Barth (inactive)
Attributes too! This finishes support for |unrestricted|; now we just need it to be used ...
6 years, 7 months ago (2014-05-01 02:51:42 UTC) #1
haraken
https://codereview.chromium.org/265753003/diff/1/Source/modules/mediasource/SourceBuffer.idl File Source/modules/mediasource/SourceBuffer.idl (right): https://codereview.chromium.org/265753003/diff/1/Source/modules/mediasource/SourceBuffer.idl#newcode60 Source/modules/mediasource/SourceBuffer.idl:60: [RaisesException=Setter, TypeChecking=Unrestricted] attribute unrestricted double appendWindowEnd; I'm a bit ...
6 years, 7 months ago (2014-05-01 03:25:57 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/265753003/diff/1/Source/modules/mediasource/SourceBuffer.idl File Source/modules/mediasource/SourceBuffer.idl (right): https://codereview.chromium.org/265753003/diff/1/Source/modules/mediasource/SourceBuffer.idl#newcode60 Source/modules/mediasource/SourceBuffer.idl:60: [RaisesException=Setter, TypeChecking=Unrestricted] attribute unrestricted double appendWindowEnd; On 2014/05/01 03:25:58, ...
6 years, 7 months ago (2014-05-01 03:34:25 UTC) #3
haraken
On 2014/05/01 03:34:25, Nils Barth wrote: > https://codereview.chromium.org/265753003/diff/1/Source/modules/mediasource/SourceBuffer.idl > File Source/modules/mediasource/SourceBuffer.idl (right): > > https://codereview.chromium.org/265753003/diff/1/Source/modules/mediasource/SourceBuffer.idl#newcode60 ...
6 years, 7 months ago (2014-05-01 03:38:23 UTC) #4
Nils Barth (inactive)
On 2014/05/01 03:38:23, haraken wrote: > Makes sense, though I'd drop [TypeChecking=Unrestricted] from unrestricted > ...
6 years, 7 months ago (2014-05-01 03:43:07 UTC) #5
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 7 months ago (2014-05-01 03:43:12 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/265753003/20001
6 years, 7 months ago (2014-05-01 03:43:43 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-01 04:13:31 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink
6 years, 7 months ago (2014-05-01 04:13:32 UTC) #9
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 7 months ago (2014-05-01 04:31:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/265753003/20001
6 years, 7 months ago (2014-05-01 04:32:09 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-01 05:13:09 UTC) #12
Message was sent while issue was closed.
Change committed as 173064

Powered by Google App Engine
This is Rietveld 408576698