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

Issue 17851002: Use & instead of | in the value of [CallWith] / [SetterCallWith] (Closed)

Created:
7 years, 6 months ago by do-not-use
Modified:
7 years, 5 months ago
Reviewers:
haraken
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, lgombos
Visibility:
Public.

Description

Use & instead of | in the value of [CallWith] / [SetterCallWith] [CallWith=ScriptExecutionContext|ScriptState] meant that both the ScriptExecutionContext AND the ScriptState would be passed as arguments to the implementation (not one OR the other). This patch changes the semantics for those IDL extended attributes to make it less confusing. Proper usage is now: [CallWith=ScriptExecutionContext&ScriptState] R=haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153217

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -34 lines) Patch
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/generate-bindings.pl View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +8 lines, -8 lines 0 comments Download
M Source/core/page/Console.idl View 2 chunks +14 lines, -14 lines 0 comments Download
M Source/core/page/Location.idl View 1 chunk +10 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
do-not-use
7 years, 6 months ago (2013-06-26 10:18:39 UTC) #1
marja
I don't think this is any less confusing; the flag-like syntax foo = flag1 | ...
7 years, 6 months ago (2013-06-26 11:37:14 UTC) #2
do-not-use
On 2013/06/26 11:37:14, marja wrote: > I don't think this is any less confusing; the ...
7 years, 6 months ago (2013-06-26 11:41:04 UTC) #3
haraken
LGTM
7 years, 6 months ago (2013-06-26 11:44:44 UTC) #4
do-not-use
Marja, are you still opposed to this change? I do think it makes things a ...
7 years, 6 months ago (2013-06-26 11:58:10 UTC) #5
Nils Barth (inactive)
The flag-like syntax is appealing, but as Christophe notes, we're putting logical expressions in the ...
7 years, 6 months ago (2013-06-26 12:11:49 UTC) #6
do-not-use
On 2013/06/26 12:11:49, Nils Barth wrote: > The flag-like syntax is appealing, but as Christophe ...
7 years, 6 months ago (2013-06-26 12:20:43 UTC) #7
marja
On 2013/06/26 11:58:10, cdumez wrote: > Marja, are you still opposed to this change? > ...
7 years, 6 months ago (2013-06-26 12:43:24 UTC) #8
do-not-use
On 2013/06/26 12:20:43, cdumez wrote: > On 2013/06/26 12:11:49, Nils Barth wrote: > > The ...
7 years, 6 months ago (2013-06-27 06:00:53 UTC) #9
haraken
Nils is out of office. I think it's ok to land your CL as is. ...
7 years, 5 months ago (2013-06-28 03:35:11 UTC) #10
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/17851002/1
7 years, 5 months ago (2013-06-28 06:17:21 UTC) #11
commit-bot: I haz the power
Change committed as 153217
7 years, 5 months ago (2013-06-28 07:56:03 UTC) #12
Nils Barth (inactive)
7 years, 5 months ago (2013-07-01 05:45:09 UTC) #13
Message was sent while issue was closed.
On 2013/06/27 06:00:53, cdumez wrote:
> On 2013/06/26 12:20:43, cdumez wrote:

> > Where do you suggest we use "foo=flag1|flag2" ? It appears "|" is currently
> only
> > used for CallWith and Conditional. Unless we have a need for both '|' and
> '||',
> > I don't see a need for distinguishing.
> 
> Nils, could you please follow up? Can the patch land this way or do you have a
> better proposal? I still not clear regarding where you want to use | and ||
> (which actual extended attributes?).

Sorry for the late reply – missed update in the pile!
Patch (landed) is fine; since this isn't used widely, there's no need for
distinguishing,
as you note.

Powered by Google App Engine
This is Rietveld 408576698