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

Issue 9290020: Add support for native bindings generation to dartgenerator.py. (Closed)

Created:
8 years, 11 months ago by podivilov
Modified:
8 years, 10 months ago
Reviewers:
vsm, Anton Muhin, antonm, sra1
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add support for native bindings generation to dartgenerator.py. R=antonm@google.com,sra@google.com,vsm@google.com Committed: https://code.google.com/p/dart/source/detail?r=3855

Patch Set 1 #

Total comments: 27

Patch Set 2 : Address comments. #

Total comments: 6

Patch Set 3 : Simplify _BaseClassName method. #

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+615 lines, -777 lines) Patch
D client/dom/common/implementation.dart View 1 chunk +0 lines, -123 lines 0 comments Download
D client/dom/common/public.dart View 1 chunk +0 lines, -571 lines 0 comments Download
M client/dom/scripts/dartdomgenerator.py View 1 2 3 4 3 chunks +26 lines, -8 lines 0 comments Download
M client/dom/scripts/dartgenerator.py View 1 2 3 4 8 chunks +321 lines, -75 lines 1 comment Download
A client/dom/src/native_DOMImplementation.dart View 1 1 chunk +80 lines, -0 lines 0 comments Download
A client/dom/src/native_DOMPublic.dart View 1 1 chunk +36 lines, -0 lines 0 comments Download
A client/dom/src/native_DOMWrapperBase.dart View 1 chunk +7 lines, -0 lines 0 comments Download
A client/dom/src/native_FactoryProviders.dart View 1 chunk +61 lines, -0 lines 0 comments Download
A client/dom/src/native_FactoryProvidersImplementation.dart View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A client/dom/src/native_GlobalProperties.dart View 1 chunk +8 lines, -0 lines 0 comments Download
A client/dom/templates/dom/native/dart_implementation.darttemplate View 1 chunk +12 lines, -0 lines 0 comments Download
A client/dom/templates/dom/native/dom_impl.darttemplate View 1 chunk +20 lines, -0 lines 0 comments Download
A client/dom/templates/dom/native/dom_public.darttemplate View 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
podivilov
8 years, 11 months ago (2012-01-25 18:57:22 UTC) #1
sra1
https://chromiumcodereview.appspot.com/9290020/diff/1/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): https://chromiumcodereview.appspot.com/9290020/diff/1/client/dom/scripts/dartgenerator.py#newcode442 client/dom/scripts/dartgenerator.py:442: else: Is it possible to generate everything at once?
8 years, 11 months ago (2012-01-26 05:35:30 UTC) #2
podivilov
https://chromiumcodereview.appspot.com/9290020/diff/1/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): https://chromiumcodereview.appspot.com/9290020/diff/1/client/dom/scripts/dartgenerator.py#newcode442 client/dom/scripts/dartgenerator.py:442: else: On 2012/01/26 05:35:30, sra1 wrote: > Is it ...
8 years, 11 months ago (2012-01-26 08:28:51 UTC) #3
antonm
https://chromiumcodereview.appspot.com/9290020/diff/1/client/dom/scripts/dartdomgenerator.py File client/dom/scripts/dartdomgenerator.py (right): https://chromiumcodereview.appspot.com/9290020/diff/1/client/dom/scripts/dartdomgenerator.py#newcode87 client/dom/scripts/dartdomgenerator.py:87: if not native: cannot you move this logic into ...
8 years, 11 months ago (2012-01-26 11:06:14 UTC) #4
podivilov
http://codereview.chromium.org/9290020/diff/1/client/dom/scripts/dartdomgenerator.py File client/dom/scripts/dartdomgenerator.py (right): http://codereview.chromium.org/9290020/diff/1/client/dom/scripts/dartdomgenerator.py#newcode87 client/dom/scripts/dartdomgenerator.py:87: if not native: On 2012/01/26 11:06:14, antonm wrote: > ...
8 years, 11 months ago (2012-01-26 14:18:56 UTC) #5
antonm
LGTM if my last question is a typical stupid question. http://codereview.chromium.org/9290020/diff/2002/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): http://codereview.chromium.org/9290020/diff/2002/client/dom/scripts/dartgenerator.py#newcode2108 ...
8 years, 11 months ago (2012-01-26 14:32:05 UTC) #6
podivilov
Thanks! http://codereview.chromium.org/9290020/diff/2002/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): http://codereview.chromium.org/9290020/diff/2002/client/dom/scripts/dartgenerator.py#newcode2108 client/dom/scripts/dartgenerator.py:2108: # Generate dom_public.dart On 2012/01/26 14:32:05, antonm wrote: ...
8 years, 11 months ago (2012-01-26 14:52:37 UTC) #7
sra1
I have made several comments about the direction in which I would like the code ...
8 years, 11 months ago (2012-01-26 18:32:16 UTC) #8
podivilov
Thanks for the comments, PTAL. http://codereview.chromium.org/9290020/diff/1/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): http://codereview.chromium.org/9290020/diff/1/client/dom/scripts/dartgenerator.py#newcode442 client/dom/scripts/dartgenerator.py:442: else: On 2012/01/26 18:32:16, ...
8 years, 10 months ago (2012-01-30 19:23:50 UTC) #9
antonm
8 years, 10 months ago (2012-02-01 13:03:43 UTC) #10
LGTM

http://codereview.chromium.org/9290020/diff/7001/client/dom/scripts/dartgener...
File client/dom/scripts/dartgenerator.py (right):

http://codereview.chromium.org/9290020/diff/7001/client/dom/scripts/dartgener...
client/dom/scripts/dartgenerator.py:400: if 'native' in systems:
nit: some concerns: systems may have system we don't support and we probably
want to protect against this and overall in check looks slightly unpythonic to
me.

Maybe something like:

def makeNativeSystem():
  ...
  return natie_system

def makeWrappingSystem():
  ...


allSystems = {
  'native': makeNativeSystem,
  'wrapping': makeWrappingSystem,
  ...
}

for system in systems:
  self._systems.append(allSystems[system]())

?

Feel free to ignore.

Powered by Google App Engine
This is Rietveld 408576698