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

Issue 27638002: IDL compiler: Basic setters (Closed)

Created:
7 years, 2 months ago by Nils Barth (inactive)
Modified:
7 years, 2 months ago
Reviewers:
haraken
CC:
blink-reviews, kojih, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, haraken, Nate Chapin, Inactive, kouhei (in TOK)
Visibility:
Public.

Description

IDL compiler: Basic setters Initial CL for setters, supports primitive types and any. Test cases for setters are easy: just remove 'readonly' from a getter-only test case (and 'Readonly' from the variable name)! (In some cases a read only test case is also needed and should be added.) Also doc fix re: PerContextEnabled per: https://code.google.com/p/chromium/issues/detail?id=307814 BUG=239771 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159866

Patch Set 1 #

Patch Set 2 : Reupload #

Total comments: 14

Patch Set 3 : Revised #

Patch Set 4 : PerContextEnabled doc fix #

Patch Set 5 : Comment formatting #

Total comments: 16

Patch Set 6 : Revised #

Patch Set 7 : Fix ; #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -126 lines) Patch
M Source/bindings/scripts/IDLAttributes.txt View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_attributes.py View 1 2 3 4 5 6 6 chunks +34 lines, -12 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_types.py View 1 2 3 4 5 6 3 chunks +31 lines, -33 lines 0 comments Download
M Source/bindings/scripts/unstable/v8_utilities.py View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 2 3 4 5 6 3 chunks +25 lines, -3 lines 0 comments Download
M Source/bindings/templates/interface.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 chunk +7 lines, -2 lines 0 comments Download
M Source/bindings/tests/idls/TestObjectPython.idl View 1 2 3 4 5 6 1 chunk +17 lines, -12 lines 0 comments Download
M Source/bindings/tests/results/V8TestObjectPython.cpp View 1 2 3 4 5 6 5 chunks +278 lines, -60 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Nils Barth (inactive)
Starting on setters!
7 years, 2 months ago (2013-10-17 02:32:11 UTC) #1
haraken
https://codereview.chromium.org/27638002/diff/5001/Source/bindings/scripts/unstable/v8_attributes.py File Source/bindings/scripts/unstable/v8_attributes.py (right): https://codereview.chromium.org/27638002/diff/5001/Source/bindings/scripts/unstable/v8_attributes.py#newcode84 Source/bindings/scripts/unstable/v8_attributes.py:84: 'setter': setter_name(interface, attribute), setter => setter_callback_name setter_name => setter_callback_name ...
7 years, 2 months ago (2013-10-17 03:54:05 UTC) #2
Nils Barth (inactive)
Revised; main question is what to call the "convert and assign to local variable" template ...
7 years, 2 months ago (2013-10-17 05:02:41 UTC) #3
Nils Barth (inactive)
BTW, just added a doc fix re: PerContextEnabled (ContextFeatures are quite different from RuntimeEnabledFeatures).
7 years, 2 months ago (2013-10-17 05:09:18 UTC) #4
haraken
https://codereview.chromium.org/27638002/diff/20001/Source/bindings/scripts/unstable/v8_attributes.py File Source/bindings/scripts/unstable/v8_attributes.py (right): https://codereview.chromium.org/27638002/diff/20001/Source/bindings/scripts/unstable/v8_attributes.py#newcode80 Source/bindings/scripts/unstable/v8_attributes.py:80: 'has_setter': has_setter, Can we remove has_setter? The fact that ...
7 years, 2 months ago (2013-10-17 05:37:21 UTC) #5
Nils Barth (inactive)
Inline replies; summary: 1. Jinja parameters make the templates simpler 2. For getter/setter expressions, already ...
7 years, 2 months ago (2013-10-17 06:24:01 UTC) #6
haraken
LGTM. I'm not fully satisfied with some inconsistent naming between getters and setters, but you ...
7 years, 2 months ago (2013-10-17 09:07:47 UTC) #7
Nils Barth (inactive)
On 2013/10/17 09:07:47, haraken wrote: > LGTM. I'm not fully satisfied with some inconsistent naming ...
7 years, 2 months ago (2013-10-17 09:23:17 UTC) #8
Nils Barth (inactive)
https://codereview.chromium.org/27638002/diff/20001/Source/bindings/scripts/unstable/v8_types.py File Source/bindings/scripts/unstable/v8_types.py (right): https://codereview.chromium.org/27638002/diff/20001/Source/bindings/scripts/unstable/v8_types.py#newcode372 Source/bindings/scripts/unstable/v8_types.py:372: def v8_value_to_local_cpp_value(idl_type, extended_attributes, v8_value, variable_name, includes, isolate): On 2013/10/17 ...
7 years, 2 months ago (2013-10-17 09:23:25 UTC) #9
Nils Barth (inactive)
BTW, I fixed the ; handling (so ; all in template, instead of everywhere in ...
7 years, 2 months ago (2013-10-17 09:25:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/27638002/30001
7 years, 2 months ago (2013-10-17 09:28:36 UTC) #11
commit-bot: I haz the power
7 years, 2 months ago (2013-10-17 11:43:39 UTC) #12
Message was sent while issue was closed.
Change committed as 159866

Powered by Google App Engine
This is Rietveld 408576698