| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 # This function is not provided by the Mojo system APIs, but instead allows | 114 # This function is not provided by the Mojo system APIs, but instead allows |
| 115 # trusted code to provide a handle for use by untrusted code. See the | 115 # trusted code to provide a handle for use by untrusted code. See the |
| 116 # implementation in mojo_syscall.cc.tmpl. | 116 # implementation in mojo_syscall.cc.tmpl. |
| 117 f = mojo.Func('_MojoGetInitialHandle', 'MojoResult') | 117 f = mojo.Func('_MojoGetInitialHandle', 'MojoResult') |
| 118 f.Param('handle').Out('MojoHandle') | 118 f.Param('handle').Out('MojoHandle') |
| 119 | 119 |
| 120 mojo.Finalize() | 120 mojo.Finalize() |
| 121 | 121 |
| 122 return mojo | 122 return mojo |
| OLD | NEW |