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 338893004: Extend ScalarValueString handling to include constructors. (Closed)

Created:
6 years, 6 months ago by sof
Modified:
6 years, 6 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, arv+blink, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Extend ScalarValueString handling to include constructors. ScalarValueString conversion may raise an exception; take that into account when generating the constructor's code. Also, common up various string-like and exception-raising tests internally, making them properties over the underlying IDL types. R=jsbell@chromium.org,haraken@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176732

Patch Set 1 #

Total comments: 13

Patch Set 2 : Common up more string-related type checks #

Total comments: 4

Patch Set 3 : Tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -84 lines) Patch
M Source/bindings/scripts/idl_types.py View 1 2 2 chunks +23 lines, -2 lines 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/bindings/scripts/v8_interface.py View 3 chunks +5 lines, -8 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 4 chunks +4 lines, -6 lines 0 comments Download
A Source/bindings/tests/idls/TestInterfaceConstructor4.idl View 1 chunk +11 lines, -0 lines 0 comments Download
A + Source/bindings/tests/results/V8TestInterfaceConstructor4.h View 2 chunks +26 lines, -26 lines 0 comments Download
A + Source/bindings/tests/results/V8TestInterfaceConstructor4.cpp View 5 chunks +74 lines, -34 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sof
Please take a look. Ran into some issues when trying to use the shiny-new ScalarValueString ...
6 years, 6 months ago (2014-06-19 19:52:04 UTC) #1
jsbell
Thanks for taking this on! There's another use of `idl_type.name in ('ByteString', 'ScalarValueString')` in v8_attributes.py ...
6 years, 6 months ago (2014-06-19 20:49:20 UTC) #2
jsbell
https://codereview.chromium.org/338893004/diff/1/Source/bindings/scripts/idl_types.py File Source/bindings/scripts/idl_types.py (right): https://codereview.chromium.org/338893004/diff/1/Source/bindings/scripts/idl_types.py#newcode210 Source/bindings/scripts/idl_types.py:210: def may_raise_exception_on_conversion(self): On 2014/06/19 20:49:19, jsbell wrote: > We ...
6 years, 6 months ago (2014-06-19 20:50:27 UTC) #3
sof
On 2014/06/19 20:49:20, jsbell wrote: > Thanks for taking this on! > > There's another ...
6 years, 6 months ago (2014-06-19 21:41:17 UTC) #4
sof
https://codereview.chromium.org/338893004/diff/1/Source/bindings/scripts/idl_types.py File Source/bindings/scripts/idl_types.py (right): https://codereview.chromium.org/338893004/diff/1/Source/bindings/scripts/idl_types.py#newcode80 Source/bindings/scripts/idl_types.py:80: On 2014/06/19 20:49:19, jsbell wrote: > Nit: remove one ...
6 years, 6 months ago (2014-06-20 07:21:16 UTC) #5
Jens Widell
https://codereview.chromium.org/338893004/diff/20001/Source/bindings/scripts/idl_types.py File Source/bindings/scripts/idl_types.py (right): https://codereview.chromium.org/338893004/diff/20001/Source/bindings/scripts/idl_types.py#newcode74 Source/bindings/scripts/idl_types.py:74: # http://heycam.github.io/webidl/, Section 4.5.1.1 (step 10.11) Add "#es-interface-call" to ...
6 years, 6 months ago (2014-06-20 08:07:06 UTC) #6
sof
https://codereview.chromium.org/338893004/diff/20001/Source/bindings/scripts/idl_types.py File Source/bindings/scripts/idl_types.py (right): https://codereview.chromium.org/338893004/diff/20001/Source/bindings/scripts/idl_types.py#newcode74 Source/bindings/scripts/idl_types.py:74: # http://heycam.github.io/webidl/, Section 4.5.1.1 (step 10.11) On 2014/06/20 08:07:06, ...
6 years, 6 months ago (2014-06-20 08:15:10 UTC) #7
Jens Widell
https://codereview.chromium.org/338893004/diff/1/Source/bindings/scripts/v8_methods.py File Source/bindings/scripts/v8_methods.py (right): https://codereview.chromium.org/338893004/diff/1/Source/bindings/scripts/v8_methods.py#newcode314 Source/bindings/scripts/v8_methods.py:314: idl_type.name in ('String', 'ByteString', 'ScalarValueString') and On 2014/06/20 07:21:16, ...
6 years, 6 months ago (2014-06-20 08:29:10 UTC) #8
sof
Would be good to land these fixes; what remains?
6 years, 6 months ago (2014-06-23 05:43:14 UTC) #9
haraken
This is a nice change, LGTM.
6 years, 6 months ago (2014-06-23 06:06:52 UTC) #10
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 6 months ago (2014-06-23 06:45:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/338893004/40001
6 years, 6 months ago (2014-06-23 06:45:59 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-23 08:24:44 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-23 09:04:42 UTC) #14
Message was sent while issue was closed.
Change committed as 176732

Powered by Google App Engine
This is Rietveld 408576698