| OLD | NEW |
| 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 # pylint: disable=F0401 | 5 # pylint: disable=F0401 |
| 6 | 6 |
| 7 import interface_dsl | 7 import interface_dsl |
| 8 | 8 |
| 9 def MakeInterface(): | 9 def MakeInterface(): |
| 10 mojo = interface_dsl.Interface() | 10 mojo = interface_dsl.Interface() |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 # This function is not provided by the Mojo system APIs, but instead allows | 126 # This function is not provided by the Mojo system APIs, but instead allows |
| 127 # trusted code to provide a handle for use by untrusted code. See the | 127 # trusted code to provide a handle for use by untrusted code. See the |
| 128 # implementation in mojo_syscall.cc.tmpl. | 128 # implementation in mojo_syscall.cc.tmpl. |
| 129 f = mojo.Func('_MojoGetInitialHandle', 'MojoResult') | 129 f = mojo.Func('_MojoGetInitialHandle', 'MojoResult') |
| 130 f.Param('handle').Out('MojoHandle') | 130 f.Param('handle').Out('MojoHandle') |
| 131 | 131 |
| 132 mojo.Finalize() | 132 mojo.Finalize() |
| 133 | 133 |
| 134 return mojo | 134 return mojo |
| OLD | NEW |