| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 * @interface | 1099 * @interface |
| 1100 */ | 1100 */ |
| 1101 function ServicePort() { | 1101 function ServicePort() { |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 ServicePort.prototype = { | 1104 ServicePort.prototype = { |
| 1105 /** | 1105 /** |
| 1106 * @param {function(string)} messageHandler | 1106 * @param {function(string)} messageHandler |
| 1107 * @param {function(string)} closeHandler | 1107 * @param {function(string)} closeHandler |
| 1108 */ | 1108 */ |
| 1109 setHandlers: function(messageHandler, closeHandler) {}, | 1109 setHandlers(messageHandler, closeHandler) {}, |
| 1110 | 1110 |
| 1111 /** | 1111 /** |
| 1112 * @param {string} message | 1112 * @param {string} message |
| 1113 * @return {!Promise<boolean>} | 1113 * @return {!Promise<boolean>} |
| 1114 */ | 1114 */ |
| 1115 send: function(message) {}, | 1115 send(message) {}, |
| 1116 | 1116 |
| 1117 /** | 1117 /** |
| 1118 * @return {!Promise<boolean>} | 1118 * @return {!Promise<boolean>} |
| 1119 */ | 1119 */ |
| 1120 close: function() {} | 1120 close() {} |
| 1121 }; | 1121 }; |
| 1122 | 1122 |
| 1123 /** @type {!Runtime} */ | 1123 /** @type {!Runtime} */ |
| 1124 var runtime; | 1124 var runtime; |
| OLD | NEW |