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

Issue 14044026: Ready for latest WebIDL for named property getters. (Closed)

Created:
7 years, 8 months ago by kojih
Modified:
7 years, 8 months ago
CC:
blink-reviews, Nate Chapin, jsbell, abarth-chromium, alancutter (OOO until 2018)
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Ready for latest WebIDL for named property getters. Currently Blink WebIDL is old and defined named property getter as [NamedGetter], which has a problem that sometimes we can't get return type and method name via IDL. This patch improve the situation, now all existing [NamedGetter] in IDL are replaced with getter ReturnType MethodName(DOMString) as discribed in: http://www.w3.org/TR/WebIDL/#idl-named-properties Note that current generator does not have logic to generate named setter, creator, deleter code. This is one of TODOs. R=haraken@chromium.org BUG=229740 TEST=TestEventTarget.idl Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149247

Patch Set 1 #

Patch Set 2 : removed debug code #

Total comments: 7

Patch Set 3 : removed NamedGetter from IDLAttributes.txt #

Patch Set 4 : updated #

Patch Set 5 : fixed #

Total comments: 1

Patch Set 6 : fixed spaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -43 lines) Patch
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 4 5 7 chunks +25 lines, -19 lines 0 comments Download
M Source/bindings/scripts/IDLAttributes.txt View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/scripts/IDLParser.pm View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M Source/bindings/tests/idls/TestEventTarget.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 2 chunks +1 line, -4 lines 0 comments Download
M Source/core/dom/DOMNamedFlowCollection.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/html/HTMLCollection.idl View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/plugins/DOMMimeTypeArray.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/plugins/DOMPlugin.idl View 2 chunks +1 line, -2 lines 0 comments Download
M Source/core/plugins/DOMPluginArray.idl View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/mediastream/RTCStatsResponse.idl View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
kojih
r?
7 years, 8 months ago (2013-04-26 11:33:03 UTC) #1
haraken
This is great improvement. https://codereview.chromium.org/14044026/diff/1011/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (right): https://codereview.chromium.org/14044026/diff/1011/Source/bindings/scripts/CodeGeneratorV8.pm#newcode286 Source/bindings/scripts/CodeGeneratorV8.pm:286: and scalar(@$parameters)==1 and $parameters->[0]->type eq ...
7 years, 8 months ago (2013-04-26 11:47:15 UTC) #2
kojih
https://codereview.chromium.org/14044026/diff/1011/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (right): https://codereview.chromium.org/14044026/diff/1011/Source/bindings/scripts/CodeGeneratorV8.pm#newcode286 Source/bindings/scripts/CodeGeneratorV8.pm:286: and scalar(@$parameters)==1 and $parameters->[0]->type eq "DOMString" ) { OK ...
7 years, 8 months ago (2013-04-26 12:03:24 UTC) #3
haraken
LGTM! https://codereview.chromium.org/14044026/diff/1011/Source/bindings/scripts/IDLParser.pm File Source/bindings/scripts/IDLParser.pm (right): https://codereview.chromium.org/14044026/diff/1011/Source/bindings/scripts/IDLParser.pm#newcode1216 Source/bindings/scripts/IDLParser.pm:1216: $interface->signature->specials($specials); On 2013/04/26 12:03:24, kojih wrote: > I ...
7 years, 8 months ago (2013-04-26 12:09:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/14044026/17002
7 years, 8 months ago (2013-04-26 12:16:16 UTC) #5
commit-bot: I haz the power
Presubmit check for 14044026-17002 failed and returned exit status 1. INFO:root:Found 11 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-26 12:16:29 UTC) #6
haraken
> Missing LGTM from an OWNER for these files: > Source/modules/mediastream/RTCStatsResponse.idl ^^^ Sorry, this is ...
7 years, 8 months ago (2013-04-26 12:18:22 UTC) #7
abarth-chromium
LGTM. We need to fix the per-file IDL OWNER issue. @haraken maybe we should make ...
7 years, 8 months ago (2013-04-26 22:10:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/14044026/17002
7 years, 8 months ago (2013-04-27 05:07:45 UTC) #9
commit-bot: I haz the power
7 years, 8 months ago (2013-04-27 05:31:08 UTC) #10
Message was sent while issue was closed.
Change committed as 149247

Powered by Google App Engine
This is Rietveld 408576698