Chromium Code Reviews| Index: mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/module.py b/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| index 448f7474e195a0ac1a68f2bc6b1e81ada1d3e68e..f162caf72c8099bbdfcd8f4b121f1a9ef0115d5f 100644 |
| --- a/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| +++ b/mojo/public/tools/bindings/pylib/mojom/generate/module.py |
| @@ -281,7 +281,6 @@ class Interface(ReferenceKind): |
| self.methods.append(method) |
| return method |
|
yzshen1
2014/08/15 16:26:36
It is intended to have two empty lines according t
|
| - |
| class EnumField(object): |
| def __init__(self, name=None, value=None): |
| self.name = name |
| @@ -400,3 +399,11 @@ def IsAnyHandleKind(kind): |
| def IsMoveOnlyKind(kind): |
| return IsObjectKind(kind) or IsAnyHandleKind(kind) |
| + |
| + |
| +def HasCallbacks(interface): |
| + for method in interface.methods: |
| + if method.response_parameters != None: |
| + return True |
| + return False |
| + |