| 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 * @interface | 5 * @interface |
| 6 */ | 6 */ |
| 7 Common.Renderer = function() {}; | 7 Common.Renderer = function() {}; |
| 8 | 8 |
| 9 Common.Renderer.prototype = { | 9 Common.Renderer.prototype = { |
| 10 /** | 10 /** |
| 11 * @param {!Object} object | 11 * @param {!Object} object |
| 12 * @return {!Promise.<!Element>} | 12 * @return {!Promise.<!Element>} |
| 13 */ | 13 */ |
| 14 render: function(object) {} | 14 render(object) {} |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * @param {!Object} object | 18 * @param {!Object} object |
| 19 * @return {!Promise.<!Element>} | 19 * @return {!Promise.<!Element>} |
| 20 */ | 20 */ |
| 21 Common.Renderer.renderPromise = function(object) { | 21 Common.Renderer.renderPromise = function(object) { |
| 22 if (!object) | 22 if (!object) |
| 23 return Promise.reject(new Error('Can\'t render ' + object)); | 23 return Promise.reject(new Error('Can\'t render ' + object)); |
| 24 | 24 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 return Promise.race(promises); | 66 return Promise.race(promises); |
| 67 } | 67 } |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 Common.Revealer.prototype = { | 70 Common.Revealer.prototype = { |
| 71 /** | 71 /** |
| 72 * @param {!Object} object | 72 * @param {!Object} object |
| 73 * @param {boolean=} omitFocus | 73 * @param {boolean=} omitFocus |
| 74 * @return {!Promise} | 74 * @return {!Promise} |
| 75 */ | 75 */ |
| 76 reveal: function(object, omitFocus) {} | 76 reveal(object, omitFocus) {} |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * @interface | 80 * @interface |
| 81 */ | 81 */ |
| 82 Common.App = function() {}; | 82 Common.App = function() {}; |
| 83 | 83 |
| 84 Common.App.prototype = { | 84 Common.App.prototype = { |
| 85 /** | 85 /** |
| 86 * @param {!Document} document | 86 * @param {!Document} document |
| 87 */ | 87 */ |
| 88 presentUI: function(document) {} | 88 presentUI(document) {} |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 /** | 91 /** |
| 92 * @interface | 92 * @interface |
| 93 */ | 93 */ |
| 94 Common.AppProvider = function() {}; | 94 Common.AppProvider = function() {}; |
| 95 | 95 |
| 96 Common.AppProvider.prototype = { | 96 Common.AppProvider.prototype = { |
| 97 /** | 97 /** |
| 98 * @return {!Common.App} | 98 * @return {!Common.App} |
| 99 */ | 99 */ |
| 100 createApp: function() {} | 100 createApp() {} |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 /** | 103 /** |
| 104 * @interface | 104 * @interface |
| 105 */ | 105 */ |
| 106 Common.QueryParamHandler = function() {}; | 106 Common.QueryParamHandler = function() {}; |
| 107 | 107 |
| 108 Common.QueryParamHandler.prototype = { | 108 Common.QueryParamHandler.prototype = { |
| 109 /** | 109 /** |
| 110 * @param {string} value | 110 * @param {string} value |
| 111 */ | 111 */ |
| 112 handleQueryParam: function(value) {} | 112 handleQueryParam(value) {} |
| 113 }; | 113 }; |
| OLD | NEW |