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

Issue 9316096: Draft implementation of c++ bindings generation. (Closed)

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

Description

Draft implementation of c++ bindings generation. Generate stubs for all c++ files. R=antonm@google.com Committed: https://code.google.com/p/dart/source/detail?r=4133

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address comments. #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -11 lines) Patch
M client/dom/scripts/dartgenerator.py View 1 7 chunks +71 lines, -11 lines 6 comments Download
A client/dom/templates/dom/native/cpp_all_in_one.template View 1 chunk +9 lines, -0 lines 0 comments Download
A client/dom/templates/dom/native/cpp_callback_header.template View 1 chunk +39 lines, -0 lines 3 comments Download
A client/dom/templates/dom/native/cpp_callback_implementation.template View 1 chunk +14 lines, -0 lines 0 comments Download
A client/dom/templates/dom/native/cpp_header.template View 1 chunk +46 lines, -0 lines 1 comment Download
A client/dom/templates/dom/native/cpp_implementation.template View 1 chunk +27 lines, -0 lines 0 comments Download
A client/dom/templates/dom/native/cpp_resolver.template View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
podivilov
8 years, 10 months ago (2012-02-03 13:50:04 UTC) #1
antonm
Pretty neat! 1st round of comments. https://chromiumcodereview.appspot.com/9316096/diff/1/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): https://chromiumcodereview.appspot.com/9316096/diff/1/client/dom/scripts/dartgenerator.py#newcode2100 client/dom/scripts/dartgenerator.py:2100: cpp_impl_path = os.path.join(self._output_dir, ...
8 years, 10 months ago (2012-02-03 14:03:06 UTC) #2
sra1
https://chromiumcodereview.appspot.com/9316096/diff/1/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): https://chromiumcodereview.appspot.com/9316096/diff/1/client/dom/scripts/dartgenerator.py#newcode2154 client/dom/scripts/dartgenerator.py:2154: self._templates.Load('cpp_all_in_one.template'), Instead of using Fragments to build and substitute ...
8 years, 10 months ago (2012-02-03 21:30:49 UTC) #3
podivilov
http://codereview.chromium.org/9316096/diff/1/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): http://codereview.chromium.org/9316096/diff/1/client/dom/scripts/dartgenerator.py#newcode2100 client/dom/scripts/dartgenerator.py:2100: cpp_impl_path = os.path.join(self._output_dir, 'cpp', On 2012/02/03 14:03:06, antonm wrote: ...
8 years, 10 months ago (2012-02-06 13:24:36 UTC) #4
antonm
LGTM http://codereview.chromium.org/9316096/diff/5001/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): http://codereview.chromium.org/9316096/diff/5001/client/dom/scripts/dartgenerator.py#newcode2195 client/dom/scripts/dartgenerator.py:2195: CLASS_NAME=os.path.splitext(os.path.basename(path))[0]) up to you, but I find those ...
8 years, 10 months ago (2012-02-06 13:45:51 UTC) #5
podivilov
Thanks! http://codereview.chromium.org/9316096/diff/5001/client/dom/scripts/dartgenerator.py File client/dom/scripts/dartgenerator.py (right): http://codereview.chromium.org/9316096/diff/5001/client/dom/scripts/dartgenerator.py#newcode2195 client/dom/scripts/dartgenerator.py:2195: CLASS_NAME=os.path.splitext(os.path.basename(path))[0]) On 2012/02/06 13:45:51, antonm wrote: > up ...
8 years, 10 months ago (2012-02-10 15:59:37 UTC) #6
antonm
8 years, 10 months ago (2012-02-10 16:01:06 UTC) #7
http://codereview.chromium.org/9316096/diff/5001/client/dom/templates/dom/nat...
File client/dom/templates/dom/native/cpp_callback_header.template (right):

http://codereview.chromium.org/9316096/diff/5001/client/dom/templates/dom/nat...
client/dom/templates/dom/native/cpp_callback_header.template:39: #endif //
Dart$(INTERFACE)_h
Some time ago I was told by ap that they are not required any more.  Things may
have changed again since then.  Anyway, cosmetic, feel free to ignore.

On 2012/02/10 15:59:37, podivilov wrote:
> On 2012/02/06 13:45:51, antonm wrote:
> > nit: do we need this trailing // Dart$(INTERFACE) ?
> 
> Yes, most webcore headers have them. Old bindings also had them. Why do you
> think we should remove them from here?

Powered by Google App Engine
This is Rietveld 408576698