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

Issue 14384004: Get rid of [Callback] extended attribute for parameters in IDL files (Closed)

Created:
7 years, 8 months ago by do-not-use
Modified:
7 years, 7 months ago
CC:
blink-reviews, jsbell, abarth-chromium, kinuko, apavlov+blink_chromium.org, darktears, Nate Chapin, lgombos
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Get rid of [Callback] extended attribute for parameters in IDL files Remove the Blink-specific [Callback] extended attribute and make the bindings generator smart enough to know when a parameter is of callback type on its own. BUG=235547 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149436

Patch Set 1 #

Total comments: 5

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

Patch Set 3 : Really take Kentaro's feedback into consideration #

Patch Set 4 : Rebase on master #

Patch Set 5 : Fix whitespace issue in generated bindings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -176 lines) Patch
M Source/bindings/derived_sources.gyp View 1 chunk +4 lines, -20 lines 0 comments Download
M Source/bindings/scripts/CodeGenerator.pm View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 4 10 chunks +30 lines, -9 lines 0 comments Download
M Source/bindings/scripts/IDLAttributes.txt View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObj.idl View 4 chunks +13 lines, -13 lines 0 comments Download
M Source/bindings/tests/idls/TestTypedefs.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8Float64Array.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestCallback.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestCallback.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomNamedGetter.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestCustomNamedGetter.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventConstructor.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventConstructor.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestException.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestException.cpp View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestMediaQueryListListener.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestMediaQueryListListener.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 3 4 4 chunks +4 lines, -5 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.cpp View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestObj.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestObj.cpp View 1 2 3 4 9 chunks +13 lines, -15 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestSerializedScriptValueInterface.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestSerializedScriptValueInterface.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestTypedefs.cpp View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/css/FontLoader.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/DataTransferItem.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/DOMWindow.idl View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/DOMWindowFileSystem.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/DirectoryEntry.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/filesystem/DirectoryReader.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/filesystem/Entry.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/modules/filesystem/FileEntry.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/WorkerContextFileSystem.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/mediastream/NavigatorMediaStream.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/mediastream/RTCPeerConnection.idl View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/modules/notifications/Notification.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/notifications/NotificationCenter.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/quota/StorageInfo.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/quota/StorageQuota.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioContext.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/DOMWindowWebDatabase.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/webdatabase/Database.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/webdatabase/DatabaseSync.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/webdatabase/SQLTransaction.idl View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/modules/webdatabase/WorkerContextWebDatabase.idl View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
do-not-use
Impact on IDL processing time is low: Without patch (8 jobs / 1 job): 0m32.841s ...
7 years, 8 months ago (2013-04-26 16:39:50 UTC) #1
do-not-use
https://codereview.chromium.org/14384004/diff/1/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/14384004/diff/1/Source/bindings/derived_sources.gyp#newcode177 Source/bindings/derived_sources.gyp:177: '--include', '../core', The generator will look for IDL files ...
7 years, 8 months ago (2013-04-26 16:48:16 UTC) #2
haraken
https://codereview.chromium.org/14384004/diff/1/Source/bindings/scripts/CodeGenerator.pm File Source/bindings/scripts/CodeGenerator.pm (right): https://codereview.chromium.org/14384004/diff/1/Source/bindings/scripts/CodeGenerator.pm#newcode661 Source/bindings/scripts/CodeGenerator.pm:661: } This is a bit weak for whitespaces. Let's ...
7 years, 8 months ago (2013-04-26 18:03:35 UTC) #3
do-not-use
https://codereview.chromium.org/14384004/diff/1/Source/bindings/scripts/CodeGenerator.pm File Source/bindings/scripts/CodeGenerator.pm (right): https://codereview.chromium.org/14384004/diff/1/Source/bindings/scripts/CodeGenerator.pm#newcode661 Source/bindings/scripts/CodeGenerator.pm:661: } On 2013/04/26 18:03:36, haraken wrote: > This is ...
7 years, 8 months ago (2013-04-26 18:15:57 UTC) #4
haraken
> > This is a bit weak for whitespaces. Let's use the same programming pattern ...
7 years, 8 months ago (2013-04-26 19:17:37 UTC) #5
do-not-use
On 2013/04/26 19:17:37, haraken wrote: > > > This is a bit weak for whitespaces. ...
7 years, 8 months ago (2013-04-26 19:24:06 UTC) #6
haraken
LGTM
7 years, 8 months ago (2013-04-26 19:27:31 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/14384004/8002
7 years, 8 months ago (2013-04-26 19:27:58 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=5772
7 years, 8 months ago (2013-04-26 20:02:19 UTC) #9
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/14384004/8002
7 years, 8 months ago (2013-04-27 05:12:55 UTC) #10
commit-bot: I haz the power
Failed to apply patch for Source/bindings/scripts/CodeGeneratorV8.pm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-27 05:13:01 UTC) #11
do-not-use
I rebased on master, could someone please cq+ again?
7 years, 7 months ago (2013-04-30 08:11:50 UTC) #12
haraken
Done.
7 years, 7 months ago (2013-04-30 08:12:35 UTC) #13
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/14384004/21001
7 years, 7 months ago (2013-04-30 08:12:35 UTC) #14
commit-bot: I haz the power
Retried try job too often on blink_bare_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_bare_presubmit&number=172
7 years, 7 months ago (2013-04-30 08:19:00 UTC) #15
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/14384004/21001
7 years, 7 months ago (2013-04-30 08:19:43 UTC) #16
commit-bot: I haz the power
Retried try job too often on blink_bare_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_bare_presubmit&number=175
7 years, 7 months ago (2013-04-30 08:30:02 UTC) #17
do-not-use
On 2013/04/30 08:30:02, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 7 months ago (2013-04-30 12:00:42 UTC) #18
haraken
jochen: rubber-stamp please?
7 years, 7 months ago (2013-04-30 12:01:26 UTC) #19
jochen (gone - plz use gerrit)
rubber stamp lgtm
7 years, 7 months ago (2013-04-30 12:11:22 UTC) #20
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/14384004/21001
7 years, 7 months ago (2013-04-30 12:11:52 UTC) #21
commit-bot: I haz the power
Retried try job too often on blink_bare_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=blink_bare_presubmit&number=180
7 years, 7 months ago (2013-04-30 12:21:37 UTC) #22
do-not-use
On 2013/04/30 12:21:37, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 7 months ago (2013-04-30 12:37:27 UTC) #23
haraken
Would it be possible to fix CodeGeneratorV8.pm so that it doesn't output redundant trailing spaces? ...
7 years, 7 months ago (2013-04-30 12:39:44 UTC) #24
do-not-use
On 2013/04/30 12:39:44, haraken wrote: > Would it be possible to fix CodeGeneratorV8.pm so that ...
7 years, 7 months ago (2013-04-30 13:39:45 UTC) #25
do-not-use
On 2013/04/30 13:39:45, Christophe Dumez wrote: > On 2013/04/30 12:39:44, haraken wrote: > > Would ...
7 years, 7 months ago (2013-04-30 13:51:58 UTC) #26
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/14384004/37002
7 years, 7 months ago (2013-04-30 14:03:42 UTC) #27
commit-bot: I haz the power
7 years, 7 months ago (2013-04-30 14:44:56 UTC) #28
Message was sent while issue was closed.
Change committed as 149436

Powered by Google App Engine
This is Rietveld 408576698