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

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

Issue 221663004: mojo: add handle<shared_buffer> support to generator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/bindings/pylib/generate/mojom.py
diff --git a/mojo/public/bindings/pylib/generate/mojom.py b/mojo/public/bindings/pylib/generate/mojom.py
index 893af7192b83ddaa2c79348368092c5c7b22fddd..4c5e413ebc1ae11566cf4bfb717edb78018b961c 100644
--- a/mojo/public/bindings/pylib/generate/mojom.py
+++ b/mojo/public/bindings/pylib/generate/mojom.py
@@ -18,22 +18,23 @@ class Kind(object):
self.parent_kind = None
# Initialize the set of primitive types. These can be accessed by clients.
-BOOL = Kind('b')
-INT8 = Kind('i8')
-INT16 = Kind('i16')
-INT32 = Kind('i32')
-INT64 = Kind('i64')
-UINT8 = Kind('u8')
-UINT16 = Kind('u16')
-UINT32 = Kind('u32')
-UINT64 = Kind('u64')
-FLOAT = Kind('f')
-DOUBLE = Kind('d')
-STRING = Kind('s')
-HANDLE = Kind('h')
-DCPIPE = Kind('h:d:c')
-DPPIPE = Kind('h:d:p')
-MSGPIPE = Kind('h:m')
+BOOL = Kind('b')
+INT8 = Kind('i8')
+INT16 = Kind('i16')
+INT32 = Kind('i32')
+INT64 = Kind('i64')
+UINT8 = Kind('u8')
+UINT16 = Kind('u16')
+UINT32 = Kind('u32')
+UINT64 = Kind('u64')
+FLOAT = Kind('f')
+DOUBLE = Kind('d')
+STRING = Kind('s')
+HANDLE = Kind('h')
+DCPIPE = Kind('h:d:c')
+DPPIPE = Kind('h:d:p')
+MSGPIPE = Kind('h:m')
+SHAREDBUFFER = Kind('h:s')
# Collection of all Primitive types
@@ -53,7 +54,8 @@ PRIMITIVES = (
HANDLE,
DCPIPE,
DPPIPE,
- MSGPIPE
+ MSGPIPE,
+ SHAREDBUFFER
)
« no previous file with comments | « mojo/public/bindings/generators/mojom_js_generator.py ('k') | mojo/public/bindings/pylib/generate/mojom_pack.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698