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

Unified Diff: mojo/public/tools/bindings/generators/mojom_dart_generator.py

Issue 816113004: Dart: Adds a content handler and a test. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: comment Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/tools/bindings/generators/mojom_dart_generator.py
diff --git a/mojo/public/tools/bindings/generators/mojom_dart_generator.py b/mojo/public/tools/bindings/generators/mojom_dart_generator.py
index 893e66555a98be03140c35d7900028dca22ac88a..9862943cb4f6a98f0e8dbe2d6b6da447158fa156 100644
--- a/mojo/public/tools/bindings/generators/mojom_dart_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_dart_generator.py
@@ -121,8 +121,8 @@ _spec_to_encode_method = {
def GetDartType(kind):
if kind.imported_from:
- return kind.imported_from["unique_name"] + "." + kind.name
- return kind.name
+ return kind.imported_from["unique_name"] + "." + GetNameForElement(kind)
+ return GetNameForElement(kind)
def DartDefaultValue(field):
if field.default:

Powered by Google App Engine
This is Rietveld 408576698