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

Side by Side Diff: nacl_bindings_generator/interface_dsl.py

Issue 955113002: Rearrange mojo/nacl files. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 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 unified diff | Download patch
« no previous file with comments | « nacl_bindings_generator/interface.py ('k') | nacl_bindings_generator/libmojo.cc.tmpl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 class Interface(object): 5 class Interface(object):
6 def __init__(self): 6 def __init__(self):
7 self.functions = [] 7 self.functions = []
8 8
9 def Func(self, name, return_type): 9 def Func(self, name, return_type):
10 f = Function(self, len(self.functions), name, return_type) 10 f = Function(self, len(self.functions), name, return_type)
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 def AlwaysWritten(self): 137 def AlwaysWritten(self):
138 assert self.is_output, self 138 assert self.is_output, self
139 self.is_always_written = True 139 self.is_always_written = True
140 return self 140 return self
141 141
142 def IsScalar(self): 142 def IsScalar(self):
143 return not self.is_array and not self.is_struct 143 return not self.is_array and not self.is_struct
144 144
145 def IsPassedByValue(self): 145 def IsPassedByValue(self):
146 return not self.is_output and self.IsScalar() 146 return not self.is_output and self.IsScalar()
OLDNEW
« no previous file with comments | « nacl_bindings_generator/interface.py ('k') | nacl_bindings_generator/libmojo.cc.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698