@@ -164,7 +164,7 @@ define(function (require, exports, module) {
164164 * @param {!Editor } editor The host editor
165165 * @param {Array.<{priority:number, provider:function(...)}> } providers
166166 * prioritized list of providers
167- * @param {string= } defaultErrorMsg Default error message to display if no initial provider found
167+ * @param {string= } defaultErrorMsg Default message to display if no providers return non-null
168168 * @return {$.Promise } a promise that will be resolved when an InlineWidget
169169 * is created or rejected if no inline providers have offered one.
170170 */
@@ -279,10 +279,10 @@ define(function (require, exports, module) {
279279 * An optional priority parameter is used to give providers with higher priority an opportunity
280280 * to provide an inline editor before providers with lower priority.
281281 *
282- * @param {function(!Editor, !{line:number, ch:number}):?$.Promise } provider
282+ * @param {function(!Editor, !{line:number, ch:number}):?( $.Promise|string) } provider
283283 * @param {number= } priority
284- * The provider returns a promise that will be resolved with an InlineWidget, or returns null
285- * to indicate the provider doesn't want to respond to this case.
284+ * The provider returns a promise that will be resolved with an InlineWidget, or returns a string
285+ * indicating why the provider cannot respond to this case (or returns null to indicate no reason) .
286286 */
287287 function registerInlineEditProvider ( provider , priority ) {
288288 if ( priority === undefined ) {
@@ -297,10 +297,10 @@ define(function (require, exports, module) {
297297 * An optional priority parameter is used to give providers with higher priority an opportunity
298298 * to provide an inline editor before providers with lower priority.
299299 *
300- * @param {function(!Editor, !{line:number, ch:number}):?$.Promise } provider
300+ * @param {function(!Editor, !{line:number, ch:number}):?( $.Promise|string) } provider
301301 * @param {number= } priority
302- * The provider returns a promise that will be resolved with an InlineWidget, or returns null
303- * to indicate the provider doesn't want to respond to this case.
302+ * The provider returns a promise that will be resolved with an InlineWidget, or returns a string
303+ * indicating why the provider cannot respond to this case (or returns null to indicate no reason) .
304304 */
305305 function registerInlineDocsProvider ( provider , priority ) {
306306 if ( priority === undefined ) {
@@ -946,7 +946,7 @@ define(function (require, exports, module) {
946946 *
947947 * @param {Array.<{priority:number, provider:function(...)}> } providers
948948 * prioritized list of providers
949- * @param {string= } errorMsg Error message to display if no initial provider found
949+ * @param {string= } errorMsg Default message to display if no providers return non-null
950950 * @return {!Promise } A promise resolved with true if an inline widget is opened or false
951951 * when closed. Rejected if there is neither an existing widget to close nor a provider
952952 * willing to create a widget (or if no editor is open).
0 commit comments