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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/generator.py

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator.gypi ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/generate/generator.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
index 1a1be2114a112de2c641cdcc26727095bfc0aae7..bea69b890529e81ac1e17d67fb20c114f2d7d25f 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
@@ -49,6 +49,9 @@ def IsHandleKind(kind):
def IsInterfaceKind(kind):
return isinstance(kind, mojom.Interface)
+def IsMoveOnlyKind(kind):
+ return IsObjectKind(kind) or IsHandleKind(kind)
+
def StudlyCapsToCamel(studly):
return studly[0].lower() + studly[1:]
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator.gypi ('k') | mojo/service_manager/service_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698