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

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: more 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
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..07ad7afe0a3f9995a51605b3b17f85c66cdbb819 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) or IsInterfaceKind(kind)
+
def StudlyCapsToCamel(studly):
return studly[0].lower() + studly[1:]

Powered by Google App Engine
This is Rietveld 408576698