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

Side by Side Diff: mojo/public/tools/bindings/pylib/generate/mojom.py

Issue 226263002: Mojo: Move mojo/public/bindings to mojo/public/tools/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # mojom's classes provide an interface to mojo modules. Modules are collections 5 # mojom's classes provide an interface to mojo modules. Modules are collections
6 # of interfaces and structs to be used by mojo ipc clients and servers. 6 # of interfaces and structs to be used by mojo ipc clients and servers.
7 # 7 #
8 # A simple interface would be created this way: 8 # A simple interface would be created this way:
9 # module = mojom.Module('Foo') 9 # module = mojom.Module('Foo')
10 # interface = module.AddInterface('Bar') 10 # interface = module.AddInterface('Bar')
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 def AddInterface(self, name): 180 def AddInterface(self, name):
181 interface = Interface(name); 181 interface = Interface(name);
182 self.interfaces.append(interface) 182 self.interfaces.append(interface)
183 return interface; 183 return interface;
184 184
185 def AddStruct(self, name): 185 def AddStruct(self, name):
186 struct = Struct(name) 186 struct = Struct(name)
187 self.structs.append(struct) 187 self.structs.append(struct)
188 return struct; 188 return struct;
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/pylib/generate/__init__.py ('k') | mojo/public/tools/bindings/pylib/generate/mojom_data.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698