blob: 791465ac86efd19863d251052eba93f256645a04 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/** @enum {number} */
contextualSearch.mojom.OverlayPosition = {};
contextualSearch.mojom.OverlayPosition.kClose;
contextualSearch.mojom.OverlayPosition.kPeek;
contextualSearch.mojom.OverlayPosition.kExpand;
contextualSearch.mojom.OverlayPosition.kMaximize;
goog.provide('contextualSearch.mojom.ContextualSearchJsApiService');
goog.provide('contextualSearch.mojom.ContextualSearchJsApiServiceImpl');
goog.provide('contextualSearch.mojom.ContextualSearchJsApiServicePtr');
/**
* @const
* @type { !mojo.Interface };
*/
contextualSearch.mojom.ContextualSearchJsApiService;
/** @interface */
contextualSearch.mojom.ContextualSearchJsApiServiceImpl = class {
/**
* @param { !url.mojom.Url } url
* @return {Promise}
*/
shouldEnableJsApi(url) {}
/**
* @param { !string } message
* @param { !boolean } doesAnswer
*/
handleSetCaption(message, doesAnswer) {}
/**
* @param { !contextualSearch.mojom.OverlayPosition } desiredPosition
*/
handleChangeOverlayPosition(desiredPosition) {}
};
/**
* @implements { mojo.InterfacePtr }
* @implements { contextualSearch.mojom.ContextualSearchJsApiServiceImpl }
*/
contextualSearch.mojom.ContextualSearchJsApiServicePtr = class {
/**
* @param { !url.mojom.Url } url
* @return {Promise}
*/
shouldEnableJsApi(url) {}
/**
* @param { !string } message
* @param { !boolean } doesAnswer
*/
handleSetCaption(message, doesAnswer) {}
/**
* @param { !contextualSearch.mojom.OverlayPosition } desiredPosition
*/
handleChangeOverlayPosition(desiredPosition) {}
};
goog.provide('contextualSearch.mojom.ContextualSearchJsApiService_ShouldEnableJsApi_Params');
contextualSearch.mojom.ContextualSearchJsApiService_ShouldEnableJsApi_Params = class {
constructor() {
/** @type { !url.mojom.Url } */
this.url;
}
};
goog.provide('contextualSearch.mojom.ContextualSearchJsApiService_ShouldEnableJsApi_ResponseParams');
contextualSearch.mojom.ContextualSearchJsApiService_ShouldEnableJsApi_ResponseParams = class {
constructor() {
/** @type { !boolean } */
this.shouldEnable;
}
};
goog.provide('contextualSearch.mojom.ContextualSearchJsApiService_HandleSetCaption_Params');
contextualSearch.mojom.ContextualSearchJsApiService_HandleSetCaption_Params = class {
constructor() {
/** @type { !string } */
this.message;
/** @type { !boolean } */
this.doesAnswer;
}
};
goog.provide('contextualSearch.mojom.ContextualSearchJsApiService_HandleChangeOverlayPosition_Params');
contextualSearch.mojom.ContextualSearchJsApiService_HandleChangeOverlayPosition_Params = class {
constructor() {
/** @type { !contextualSearch.mojom.OverlayPosition } */
this.desiredPosition;
}
};