New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 655919 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
please use my google.com address
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

[Native] doesn't work for interface enums

Project Member Reported by xhw...@chromium.org, Oct 14 2016

Issue description

The following doesn't seem to work:

interface Foo {
  [Native]
  enum Bar;
}

In mojom-shared.h, I see

using Bar = mojo::NativeEnum;

But everywhere else Bar is referred as Foo_Bar, which becomes undeclared.
 

Comment 1 by xhw...@chromium.org, Oct 14 2016

This PS shows how I get this error: https://chromiumcodereview.appspot.com/2416183002/#ps1


Project Member

Comment 2 by bugdroid1@chromium.org, Oct 14 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/50ba000ec3132d4b12f55b1ff46e08407843e605

commit 50ba000ec3132d4b12f55b1ff46e08407843e605
Author: rockot <rockot@chromium.org>
Date: Fri Oct 14 17:30:22 2016

Generate the correct C++ symbol name for scoped native enums

BUG= 655919 
TBR=yzshen@chromium.org

Review-Url: https://codereview.chromium.org/2413093004
Cr-Commit-Position: refs/heads/master@{#425373}

[modify] https://crrev.com/50ba000ec3132d4b12f55b1ff46e08407843e605/mojo/public/tools/bindings/generators/cpp_templates/module-shared.h.tmpl

Comment 3 by roc...@chromium.org, Oct 14 2016

Status: Fixed (was: Untriaged)
Project Member

Comment 5 by bugdroid1@chromium.org, Oct 14 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/efd2ed209baaa86c49442114e1d812bc19808034

commit efd2ed209baaa86c49442114e1d812bc19808034
Author: xhwang <xhwang@chromium.org>
Date: Fri Oct 14 22:18:08 2016

More fix on generating correct C++ symbol name for scoped native enums

This is a follow up of
https://crrev.com/50ba000ec3132d4b12f55b1ff46e08407843e605

R=rockot@chromium.org
BUG= 655919 
TEST=Tested locally

Review-Url: https://codereview.chromium.org/2419163002
Cr-Commit-Position: refs/heads/master@{#425492}

[modify] https://crrev.com/efd2ed209baaa86c49442114e1d812bc19808034/mojo/public/tools/bindings/generators/cpp_templates/module-shared-internal.h.tmpl

Sign in to add a comment