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

Issue 1811853004: Mojo C++ bindigns: fix generated namespace when variant is specified. (Closed)

Created:
4 years, 9 months ago by yzshen1
Modified:
4 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindigns: fix generated namespace when variant is specified. This fixed the issue that enum generated code didn't work when variant is specified. This is a quick fix, we need more fundermental improvement for variant handling code. BUG=595791 Committed: https://crrev.com/e56136366dd27d1764c01203565447b53197733f Cr-Commit-Position: refs/heads/master@{#381760}

Patch Set 1 #

Patch Set 2 : add missing new file #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -9 lines) Patch
M mojo/mojo_edk_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/mojo_public.gyp View 1 chunk +11 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/BUILD.gn View 1 chunk +10 lines, -0 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/test_variant.mojom View 1 1 chunk +5 lines, -3 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 5 chunks +15 lines, -6 lines 5 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (6 generated)
yzshen1
Hi, Ken and Sam. Would you please take a look? Thanks!
4 years, 9 months ago (2016-03-17 17:23:01 UTC) #2
Ken Rockot(use gerrit already)
Missing the mojom file? :)
4 years, 9 months ago (2016-03-17 17:24:33 UTC) #3
yzshen1
On 2016/03/17 17:24:33, Ken Rockot wrote: > Missing the mojom file? :) Just uploaded. Thanks! ...
4 years, 9 months ago (2016-03-17 17:28:50 UTC) #4
Ken Rockot(use gerrit already)
lgtm
4 years, 9 months ago (2016-03-17 17:33:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811853004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811853004/20001
4 years, 9 months ago (2016-03-17 17:34:15 UTC) #7
Sam McNally
https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py File mojo/public/tools/bindings/generators/mojom_cpp_generator.py (right): https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py#newcode85 mojo/public/tools/bindings/generators/mojom_cpp_generator.py:85: if kind.imported_from: We'll want to add the variant here ...
4 years, 9 months ago (2016-03-17 17:37:58 UTC) #8
yzshen1
https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py File mojo/public/tools/bindings/generators/mojom_cpp_generator.py (right): https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py#newcode85 mojo/public/tools/bindings/generators/mojom_cpp_generator.py:85: if kind.imported_from: On 2016/03/17 17:37:58, Sam McNally wrote: > ...
4 years, 9 months ago (2016-03-17 17:46:36 UTC) #9
Sam McNally
https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py File mojo/public/tools/bindings/generators/mojom_cpp_generator.py (right): https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py#newcode88 mojo/public/tools/bindings/generators/mojom_cpp_generator.py:88: if hasattr(kind, "module"): On 2016/03/17 17:46:36, yzshen1 wrote: > ...
4 years, 9 months ago (2016-03-17 17:52:55 UTC) #11
yzshen1
On 2016/03/17 17:52:55, Sam McNally wrote: > https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py > File mojo/public/tools/bindings/generators/mojom_cpp_generator.py (right): > > https://codereview.chromium.org/1811853004/diff/20001/mojo/public/tools/bindings/generators/mojom_cpp_generator.py#newcode88 ...
4 years, 9 months ago (2016-03-17 17:58:45 UTC) #12
Sam McNally
On 2016/03/17 17:58:45, yzshen1 wrote: > On 2016/03/17 17:52:55, Sam McNally wrote: > > > ...
4 years, 9 months ago (2016-03-17 18:05:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811853004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811853004/20001
4 years, 9 months ago (2016-03-17 18:40:13 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-17 18:45:39 UTC) #17
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 18:48:16 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e56136366dd27d1764c01203565447b53197733f
Cr-Commit-Position: refs/heads/master@{#381760}

Powered by Google App Engine
This is Rietveld 408576698