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

Side by Side Diff: mojo/nacl/sfi/nacl_bindings_generator/interface_dsl.py

Issue 1398213003: Refactored Non-SFI and SFI NaCl into separate directories. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 def AlwaysWritten(self): 145 def AlwaysWritten(self):
146 assert self.is_output, self 146 assert self.is_output, self
147 self.is_always_written = True 147 self.is_always_written = True
148 return self 148 return self
149 149
150 def IsScalar(self): 150 def IsScalar(self):
151 return not self.is_array and not self.is_struct 151 return not self.is_array and not self.is_struct
152 152
153 def IsPassedByValue(self): 153 def IsPassedByValue(self):
154 return not self.is_output and self.IsScalar() 154 return not self.is_output and self.IsScalar()
OLDNEW
« no previous file with comments | « mojo/nacl/sfi/nacl_bindings_generator/interface.py ('k') | mojo/nacl/sfi/nacl_bindings_generator/libmojo.cc.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698