| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 [DartPackage="mojo", JavaPackage="org.chromium.mojo.bindings"] | 5 [DartPackage="mojo", |
| 6 JavaPackage="org.chromium.mojo.bindings"] |
| 6 module mojo; | 7 module mojo; |
| 7 | 8 |
| 8 // For each message pipe representing a user-defined interface, some control | 9 // For each message pipe representing a user-defined interface, some control |
| 9 // functions are provided at the same end of the message pipe as the | 10 // functions are provided at the same end of the message pipe as the |
| 10 // user-defined interface, providing information about the user-defined | 11 // user-defined interface, providing information about the user-defined |
| 11 // interface and controlling behavior of the message pipe. | 12 // interface and controlling behavior of the message pipe. |
| 12 | 13 |
| 13 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
| 14 // Run@0xFFFFFFFF(RunInput input) => (RunOutput? output); | 15 // Run@0xFFFFFFFF(RunInput input) => (RunOutput? output); |
| 15 // | 16 // |
| (...skipping 29 matching lines...) Expand all Loading... |
| 45 | 46 |
| 46 struct RunResponseMessageParams { | 47 struct RunResponseMessageParams { |
| 47 // The reserved fields make the layout compatible with the RunOutput union | 48 // The reserved fields make the layout compatible with the RunOutput union |
| 48 // described above. | 49 // described above. |
| 49 uint32 reserved0; // Must be set to 16. | 50 uint32 reserved0; // Must be set to 16. |
| 50 uint32 reserved1; // Must be set to 0. | 51 uint32 reserved1; // Must be set to 0. |
| 51 QueryVersionResult query_version_result; | 52 QueryVersionResult query_version_result; |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 // Queries the max supported version of the user-defined interface. | 55 // Queries the max supported version of the user-defined interface. |
| 55 struct QueryVersion { | 56 struct QueryVersion {}; |
| 56 }; | |
| 57 struct QueryVersionResult { | 57 struct QueryVersionResult { |
| 58 uint32 version; | 58 uint32 version; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 //////////////////////////////////////////////////////////////////////////////// | 61 //////////////////////////////////////////////////////////////////////////////// |
| 62 // RunOrClosePipe@0xFFFFFFFE(RunOrClosePipeInput input); | 62 // RunOrClosePipe@0xFFFFFFFE(RunOrClosePipeInput input); |
| 63 // | 63 // |
| 64 // This control function runs the input command. If the operation fails or the | 64 // This control function runs the input command. If the operation fails or the |
| 65 // command is not supported, the message pipe is closed. | 65 // command is not supported, the message pipe is closed. |
| 66 // | 66 // |
| (...skipping 14 matching lines...) Expand all Loading... |
| 81 uint32 reserved0; // Must be set to 16. | 81 uint32 reserved0; // Must be set to 16. |
| 82 uint32 reserved1; // Must be set to 0. | 82 uint32 reserved1; // Must be set to 0. |
| 83 RequireVersion require_version; | 83 RequireVersion require_version; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // If the specified version of the user-defined interface is not supported, the | 86 // If the specified version of the user-defined interface is not supported, the |
| 87 // function fails and the pipe is closed. | 87 // function fails and the pipe is closed. |
| 88 struct RequireVersion { | 88 struct RequireVersion { |
| 89 uint32 version; | 89 uint32 version; |
| 90 }; | 90 }; |
| OLD | NEW |