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

Issue 27207002: Add support for [PutForwards] IDL extended attribute (Closed)

Created:
7 years, 2 months ago by Inactive
Modified:
7 years, 2 months ago
CC:
blink-reviews, kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, haraken, Nate Chapin
Visibility:
Public.

Description

Add support for [PutForwards] IDL extended attribute Add support for [PutForwards] IDL extended attribute in the Perl bindings generator and use it for Document.location: http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#document This CL also gets rid of custom bindings code for Document.location and uses [PutForwards] instead. R=haraken, abarth BUG=307045 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159674

Patch Set 1 #

Patch Set 2 : Fix bindings generator #

Total comments: 4

Patch Set 3 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -63 lines) Patch
M Source/bindings/bindings.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/scripts/IDLAttributes.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.pm View 1 2 3 chunks +30 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/TestNode.idl View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.cpp View 4 chunks +63 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 2 chunks +64 lines, -0 lines 0 comments Download
D Source/bindings/v8/custom/V8DocumentLocationCustom.cpp View 1 chunk +0 lines, -59 lines 0 comments Download
M Source/core/dom/Document.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/dom/Document.idl View 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
For comparison, the generated code looks like: static void locationAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) { ...
7 years, 2 months ago (2013-10-14 21:14:30 UTC) #1
Inactive
https://codereview.chromium.org/27207002/diff/5001/Source/core/dom/Document.idl File Source/core/dom/Document.idl (left): https://codereview.chromium.org/27207002/diff/5001/Source/core/dom/Document.idl#oldcode133 Source/core/dom/Document.idl:133: [Custom, Replaceable, PerWorldBindings, ActivityLogging=AccessForIsolatedWorlds] readonly attribute Location location; I ...
7 years, 2 months ago (2013-10-14 21:18:09 UTC) #2
haraken
LGTM https://codereview.chromium.org/27207002/diff/5001/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/27207002/diff/5001/Source/bindings/scripts/code_generator_v8.pm#newcode1866 Source/bindings/scripts/code_generator_v8.pm:1866: my $attrType = $attribute->type; This is not necessary. ...
7 years, 2 months ago (2013-10-15 00:15:36 UTC) #3
Nils Barth (inactive)
Thanks for doing this Chris! Could you update the documentation, indicating that this is supported? ...
7 years, 2 months ago (2013-10-15 02:13:29 UTC) #4
Inactive
On 2013/10/15 02:13:29, Nils Barth wrote: > Thanks for doing this Chris! > Could you ...
7 years, 2 months ago (2013-10-15 02:46:08 UTC) #5
Nils Barth (inactive)
On 2013/10/15 02:46:08, Chris Dumez wrote: > On 2013/10/15 02:13:29, Nils Barth wrote: > > ...
7 years, 2 months ago (2013-10-15 07:17:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/27207002/16001
7 years, 2 months ago (2013-10-15 13:39:11 UTC) #7
Inactive
Updated the doc: https://sites.google.com/a/chromium.org/dev/blink/webidl/blink-idl-extended-attributes?pli=1#TOC-PutForwards-a-
7 years, 2 months ago (2013-10-15 13:46:33 UTC) #8
commit-bot: I haz the power
Change committed as 159674
7 years, 2 months ago (2013-10-15 16:03:32 UTC) #9
arv (Not doing code reviews)
7 years, 2 months ago (2013-10-15 16:23:06 UTC) #10
Message was sent while issue was closed.
Any reason you didn't update Window location in this CL?

Powered by Google App Engine
This is Rietveld 408576698