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

Issue 12964003: Allowing renaming on DOM members on a per-method basis (Closed)

Created:
7 years, 9 months ago by blois
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org, Andrei Mouravski
Visibility:
Public.

Description

Changing the IDL DartName= annotation to only operate on a per-member basis, allowing overloaded methods to be renamed independently. This also includes a change to rename one overload of CanvasRenderingContext2D.createImageData as a test case. The remaining changes are to address differences between old semantics of DartName and new semantics, as well as some ordering differences of generated code. BUG= Committed: https://code.google.com/p/dart/source/detail?r=20355

Patch Set 1 : #

Total comments: 16

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -85 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 5 chunks +21 lines, -20 lines 0 comments Download
M sdk/lib/html/dartium/html_dartium.dart View 4 chunks +12 lines, -22 lines 0 comments Download
M sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart View 3 chunks +8 lines, -8 lines 0 comments Download
M sdk/lib/indexed_db/dartium/indexed_db_dartium.dart View 4 chunks +7 lines, -7 lines 0 comments Download
M tests/html/canvasrenderingcontext2d_test.dart View 1 chunk +10 lines, -0 lines 0 comments Download
M tools/dom/idl/dart/dart.idl View 2 chunks +5 lines, -9 lines 0 comments Download
M tools/dom/scripts/htmldartgenerator.py View 1 2 chunks +15 lines, -16 lines 0 comments Download
M tools/dom/scripts/htmlrenamer.py View 1 chunk +1 line, -1 line 0 comments Download
M tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
blois
7 years, 9 months ago (2013-03-20 20:21:40 UTC) #1
Andrei Mouravski
It looks great! https://codereview.chromium.org/12964003/diff/2001/sdk/lib/html/dartium/html_dartium.dart File sdk/lib/html/dartium/html_dartium.dart (left): https://codereview.chromium.org/12964003/diff/2001/sdk/lib/html/dartium/html_dartium.dart#oldcode3095 sdk/lib/html/dartium/html_dartium.dart:3095: - String _getPropertyValue(String propertyName) native "CSSStyleDeclaration__getPropertyValue_Callback"; ...
7 years, 9 months ago (2013-03-20 22:42:08 UTC) #2
blois
https://codereview.chromium.org/12964003/diff/2001/sdk/lib/html/dartium/html_dartium.dart File sdk/lib/html/dartium/html_dartium.dart (left): https://codereview.chromium.org/12964003/diff/2001/sdk/lib/html/dartium/html_dartium.dart#oldcode3095 sdk/lib/html/dartium/html_dartium.dart:3095: - String _getPropertyValue(String propertyName) native "CSSStyleDeclaration__getPropertyValue_Callback"; On 2013/03/20 22:42:08, ...
7 years, 9 months ago (2013-03-20 22:47:56 UTC) #3
Andrei Mouravski
https://codereview.chromium.org/12964003/diff/2001/tests/html/canvasrenderingcontext2d_test.dart File tests/html/canvasrenderingcontext2d_test.dart (right): https://codereview.chromium.org/12964003/diff/2001/tests/html/canvasrenderingcontext2d_test.dart#newcode539 tests/html/canvasrenderingcontext2d_test.dart:539: var other = context.createImageDataFromData(imageData); On 2013/03/20 22:47:56, blois wrote: ...
7 years, 9 months ago (2013-03-20 22:50:19 UTC) #4
sra1
lgtm https://chromiumcodereview.appspot.com/12964003/diff/2001/tools/dom/idl/dart/dart.idl File tools/dom/idl/dart/dart.idl (right): https://chromiumcodereview.appspot.com/12964003/diff/2001/tools/dom/idl/dart/dart.idl#newcode36 tools/dom/idl/dart/dart.idl:36: [DartName=createImageDataFromImageData] ImageData createImageData(in ImageData imagedata) raises (DOMException); createImageDataCopy?
7 years, 9 months ago (2013-03-21 00:26:35 UTC) #5
sra1
On 2013/03/21 00:26:35, sra1 wrote: > lgtm > > https://chromiumcodereview.appspot.com/12964003/diff/2001/tools/dom/idl/dart/dart.idl > File tools/dom/idl/dart/dart.idl (right): > ...
7 years, 9 months ago (2013-03-21 00:31:35 UTC) #6
blois
On 2013/03/21 00:31:35, sra1 wrote: > On 2013/03/21 00:26:35, sra1 wrote: > > lgtm > ...
7 years, 9 months ago (2013-03-21 00:36:07 UTC) #7
Andrei Mouravski
lgtm
7 years, 9 months ago (2013-03-21 01:19:22 UTC) #8
Anton Muhin
lgtm https://chromiumcodereview.appspot.com/12964003/diff/2001/sdk/lib/html/dart2js/html_dart2js.dart File sdk/lib/html/dart2js/html_dart2js.dart (right): https://chromiumcodereview.appspot.com/12964003/diff/2001/sdk/lib/html/dart2js/html_dart2js.dart#newcode2495 sdk/lib/html/dart2js/html_dart2js.dart:2495: + @JSName('getPropertyValue') why methods below are reordered? https://chromiumcodereview.appspot.com/12964003/diff/2001/tools/dom/idl/dart/dart.idl ...
7 years, 9 months ago (2013-03-21 14:03:02 UTC) #9
blois
https://chromiumcodereview.appspot.com/12964003/diff/2001/sdk/lib/html/dart2js/html_dart2js.dart File sdk/lib/html/dart2js/html_dart2js.dart (right): https://chromiumcodereview.appspot.com/12964003/diff/2001/sdk/lib/html/dart2js/html_dart2js.dart#newcode2495 sdk/lib/html/dart2js/html_dart2js.dart:2495: + @JSName('getPropertyValue') On 2013/03/21 14:03:02, Anton Muhin wrote: > ...
7 years, 9 months ago (2013-03-21 16:55:43 UTC) #10
Anton Muhin
still lgtm FYI: Dartium bbs are red for now, you may want to wait a ...
7 years, 9 months ago (2013-03-21 16:56:51 UTC) #11
blois
7 years, 9 months ago (2013-03-21 21:50:21 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 manually as r20355 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698