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

Issue 345393004: IDL: Support 'stringifier' keyword (Closed)

Created:
6 years, 6 months ago by Jens Widell
Modified:
6 years, 6 months ago
CC:
blink-reviews, arv+blink, blink-reviews-css, sof, eae+blinkwatch, ed+blinkwatch_opera.com, abarth-chromium, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, Inactive, darktears, apavlov+blink_chromium.org, rwlbuis, watchdog-blink-watchlist_google.com, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

IDL: Support 'stringifier' keyword Usable in one of these forms: stringifier; stringifier DOMString (); stringifier DOMString name(); stringifier attribute DOMString name; All cause a toString() method to be defined on the interface automatically. The first two are equivalent, and call CPPClass::toString() to retrieve the string value. The latter two use CPPClass::name() to retrieve the string value and also declare a regular attribute and operation, respectively. Changed all simple "DOMString toString()" occurrences in IDL files to use "stringifier" instead. BUG=306606 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176833

Patch Set 1 : #

Total comments: 5

Patch Set 2 : rebased #

Patch Set 3 : moved logic to v8_interface.py #

Total comments: 6

Patch Set 4 : move handling of unnamed operations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -5 lines) Patch
M Source/bindings/scripts/idl_definitions.py View 1 2 3 5 chunks +44 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/TestInterface.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/TestInterface2.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 2 chunks +14 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface2.cpp View 2 chunks +28 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 3 chunks +44 lines, -0 lines 0 comments Download
M Source/core/css/WebKitCSSMatrix.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DOMTokenList.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/Range.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/frame/Window.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Selection.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Jens Widell
Please take a look. I've left some existing toString() methods in interfaces untouched: - URLUtils ...
6 years, 6 months ago (2014-06-23 14:08:07 UTC) #1
haraken
https://codereview.chromium.org/345393004/diff/90001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/345393004/diff/90001/Source/bindings/scripts/idl_definitions.py#newcode609 Source/bindings/scripts/idl_definitions.py:609: """Return a synthesized 'toString' operation from the stringifier.""" On ...
6 years, 6 months ago (2014-06-23 16:33:19 UTC) #2
Jens Widell
https://codereview.chromium.org/345393004/diff/90001/Source/core/dom/Range.idl File Source/core/dom/Range.idl (right): https://codereview.chromium.org/345393004/diff/90001/Source/core/dom/Range.idl#newcode60 Source/core/dom/Range.idl:60: stringifier; On 2014/06/23 16:33:19, haraken wrote: > > Not ...
6 years, 6 months ago (2014-06-23 17:09:11 UTC) #3
Jens Widell
https://codereview.chromium.org/345393004/diff/90001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/345393004/diff/90001/Source/bindings/scripts/idl_definitions.py#newcode609 Source/bindings/scripts/idl_definitions.py:609: """Return a synthesized 'toString' operation from the stringifier.""" On ...
6 years, 6 months ago (2014-06-24 08:00:29 UTC) #4
haraken
LGTM https://codereview.chromium.org/345393004/diff/130001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/345393004/diff/130001/Source/bindings/scripts/idl_definitions.py#newcode316 Source/bindings/scripts/idl_definitions.py:316: elif self.stringifier.operation and self.stringifier.operation.name: Do we need the ...
6 years, 6 months ago (2014-06-24 08:28:36 UTC) #5
Jens Widell
https://codereview.chromium.org/345393004/diff/130001/Source/bindings/scripts/idl_definitions.py File Source/bindings/scripts/idl_definitions.py (right): https://codereview.chromium.org/345393004/diff/130001/Source/bindings/scripts/idl_definitions.py#newcode316 Source/bindings/scripts/idl_definitions.py:316: elif self.stringifier.operation and self.stringifier.operation.name: On 2014/06/24 08:28:36, haraken wrote: ...
6 years, 6 months ago (2014-06-24 08:38:43 UTC) #6
haraken
On 2014/06/24 08:38:43, Jens Lindström wrote: > https://codereview.chromium.org/345393004/diff/130001/Source/bindings/scripts/idl_definitions.py > File Source/bindings/scripts/idl_definitions.py (right): > > https://codereview.chromium.org/345393004/diff/130001/Source/bindings/scripts/idl_definitions.py#newcode316 ...
6 years, 6 months ago (2014-06-24 08:40:49 UTC) #7
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 6 months ago (2014-06-24 10:54:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/345393004/150001
6 years, 6 months ago (2014-06-24 10:55:31 UTC) #9
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 6 months ago (2014-06-24 10:55:34 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/345393004/150001
6 years, 6 months ago (2014-06-24 10:55:56 UTC) #11
commit-bot: I haz the power
Change committed as 176833
6 years, 6 months ago (2014-06-24 12:06:47 UTC) #12
f(malita)
On 2014/06/24 12:06:47, I haz the power (commit-bot) wrote: > Change committed as 176833 This ...
6 years, 6 months ago (2014-06-24 14:42:08 UTC) #13
Jens Widell
6 years, 6 months ago (2014-06-24 14:43:27 UTC) #14
Message was sent while issue was closed.
On 2014/06/24 14:42:08, Florin Malita wrote:
> On 2014/06/24 12:06:47, I haz the power (commit-bot) wrote:
> > Change committed as 176833
> 
> This broke the Linux GN build:
>
http://build.chromium.org/p/chromium.webkit/builders/Linux%20GN/builds/1918/s...

Known. Fix in https://codereview.chromium.org/349413004/.

Powered by Google App Engine
This is Rietveld 408576698