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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py

Issue 910883002: Update mojo sdk to rev 8af2ccff2eee4bfca1043015abee30482a030b30 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply 9f87aeadbda22441b7d469e596f7bd7d0d73e2a8 (https://codereview.chromium.org/908973002/) Created 5 years, 10 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: third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
index 3a415932c4e0945ba77e1530a52c4a01a728af6f..3d0ac2e2c3f09fdc3f7636bbd1ab129dbc6917ff 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
+++ b/third_party/mojo/src/mojo/public/tools/bindings/pylib/mojom/generate/data.py
@@ -364,6 +364,7 @@ def ConstantFromData(module, data, parent_kind):
scope = (module.namespace, )
# TODO(mpcomplete): maybe we should only support POD kinds.
constant.kind = KindFromData(module.kinds, data['kind'], scope)
+ constant.parent_kind = parent_kind
constant.value = FixupExpression(module, data.get('value'), scope, None)
value = mojom.ConstantValue(module, parent_kind, constant)
@@ -409,7 +410,7 @@ def ModuleFromData(data):
module.structs = map(
lambda struct: StructFromData(module, struct), data['structs'])
module.unions = map(
- lambda union: UnionFromData(module, struct), data.get('unions', []))
+ lambda union: UnionFromData(module, union), data.get('unions', []))
module.interfaces = map(
lambda interface: InterfaceFromData(module, interface),
data['interfaces'])

Powered by Google App Engine
This is Rietveld 408576698