// chrome/browser/lens/core/mojom/lens_side_panel.mojom-webui.ts is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import { mojo } from '//resources/mojo/mojo/public/js/bindings.js';
import { PageContentTypeSpec as lens_mojom_PageContentTypeSpec } from './page_content_type.mojom-webui.js';
import { UrlSpec as url_mojom_UrlSpec } from '//resources/mojo/url/mojom/url.mojom-webui.js';
export const SidePanelResultStatusSpec = { $: mojo.internal.Enum() };
export var SidePanelResultStatus;
(function (SidePanelResultStatus) {
    SidePanelResultStatus[SidePanelResultStatus["MIN_VALUE"] = 0] = "MIN_VALUE";
    SidePanelResultStatus[SidePanelResultStatus["MAX_VALUE"] = 4] = "MAX_VALUE";
    SidePanelResultStatus[SidePanelResultStatus["kUnknown"] = 0] = "kUnknown";
    SidePanelResultStatus[SidePanelResultStatus["kResultShown"] = 1] = "kResultShown";
    SidePanelResultStatus[SidePanelResultStatus["kErrorPageShownOffline"] = 2] = "kErrorPageShownOffline";
    SidePanelResultStatus[SidePanelResultStatus["kErrorPageShownStartQueryError"] = 3] = "kErrorPageShownStartQueryError";
    SidePanelResultStatus[SidePanelResultStatus["kErrorPageShownProtected"] = 4] = "kErrorPageShownProtected";
})(SidePanelResultStatus || (SidePanelResultStatus = {}));
export class LensSidePanelPageHandlerFactoryPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'lens.mojom.LensSidePanelPageHandlerFactory', scope);
    }
}
export class LensSidePanelPageHandlerFactoryRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(LensSidePanelPageHandlerFactoryPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    createSidePanelPageHandler(handler, page) {
        this.proxy.sendMessage(221085481, LensSidePanelPageHandlerFactory_CreateSidePanelPageHandler_ParamsSpec.$, null, [
            handler,
            page
        ], false);
    }
}
;
/**
 * An object which receives request messages for the LensSidePanelPageHandlerFactory
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class LensSidePanelPageHandlerFactoryReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(LensSidePanelPageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(221085481, LensSidePanelPageHandlerFactory_CreateSidePanelPageHandler_ParamsSpec.$, null, impl.createSidePanelPageHandler.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class LensSidePanelPageHandlerFactory {
    static get $interfaceName() {
        return "lens.mojom.LensSidePanelPageHandlerFactory";
    }
    /**
     * Returns a remote for this interface which sends messages to the browser.
     * The browser must have an interface request binder registered for this
     * interface and accessible to the calling document's frame.
     */
    static getRemote() {
        let remote = new LensSidePanelPageHandlerFactoryRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the LensSidePanelPageHandlerFactory
 * mojom interface and dispatches them as callbacks. One callback receiver exists
 * on this object for each message defined in the mojom interface, and each
 * receiver can have any number of listeners added to it.
 */
export class LensSidePanelPageHandlerFactoryCallbackRouter {
    helper_internal_;
    $;
    router_;
    createSidePanelPageHandler;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(LensSidePanelPageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.createSidePanelPageHandler =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(221085481, LensSidePanelPageHandlerFactory_CreateSidePanelPageHandler_ParamsSpec.$, null, this.createSidePanelPageHandler.createReceiverHandler(false /* expectsResponse */), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
    /**
     * @param id An ID returned by a prior call to addListener.
     * @return True iff the identified listener was found and removed.
     */
    removeListener(id) {
        return this.router_.removeListener(id);
    }
}
export class LensSidePanelPageHandlerPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'lens.mojom.LensSidePanelPageHandler', scope);
    }
}
export class LensSidePanelPageHandlerRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(LensSidePanelPageHandlerPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    popAndLoadQueryFromHistory() {
        this.proxy.sendMessage(1412273375, LensSidePanelPageHandler_PopAndLoadQueryFromHistory_ParamsSpec.$, null, [], false);
    }
    getIsContextualSearchbox() {
        return this.proxy.sendMessage(1798922551, LensSidePanelPageHandler_GetIsContextualSearchbox_ParamsSpec.$, LensSidePanelPageHandler_GetIsContextualSearchbox_ResponseParamsSpec.$, [], false);
    }
    onScrollToMessage(textFragments, pdfPageNumber) {
        this.proxy.sendMessage(1467507924, LensSidePanelPageHandler_OnScrollToMessage_ParamsSpec.$, null, [
            textFragments,
            pdfPageNumber
        ], false);
    }
    requestSendFeedback() {
        this.proxy.sendMessage(595010242, LensSidePanelPageHandler_RequestSendFeedback_ParamsSpec.$, null, [], false);
    }
    onAimMessage(message) {
        this.proxy.sendMessage(1246677834, LensSidePanelPageHandler_OnAimMessage_ParamsSpec.$, null, [
            message
        ], false);
    }
    onImageQueryWithEmptyText() {
        this.proxy.sendMessage(1656039725, LensSidePanelPageHandler_OnImageQueryWithEmptyText_ParamsSpec.$, null, [], false);
    }
}
;
/**
 * An object which receives request messages for the LensSidePanelPageHandler
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class LensSidePanelPageHandlerReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(LensSidePanelPageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(1412273375, LensSidePanelPageHandler_PopAndLoadQueryFromHistory_ParamsSpec.$, null, impl.popAndLoadQueryFromHistory.bind(impl), false);
        this.helper_internal_.registerHandler(1798922551, LensSidePanelPageHandler_GetIsContextualSearchbox_ParamsSpec.$, LensSidePanelPageHandler_GetIsContextualSearchbox_ResponseParamsSpec.$, impl.getIsContextualSearchbox.bind(impl), false);
        this.helper_internal_.registerHandler(1467507924, LensSidePanelPageHandler_OnScrollToMessage_ParamsSpec.$, null, impl.onScrollToMessage.bind(impl), false);
        this.helper_internal_.registerHandler(595010242, LensSidePanelPageHandler_RequestSendFeedback_ParamsSpec.$, null, impl.requestSendFeedback.bind(impl), false);
        this.helper_internal_.registerHandler(1246677834, LensSidePanelPageHandler_OnAimMessage_ParamsSpec.$, null, impl.onAimMessage.bind(impl), false);
        this.helper_internal_.registerHandler(1656039725, LensSidePanelPageHandler_OnImageQueryWithEmptyText_ParamsSpec.$, null, impl.onImageQueryWithEmptyText.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class LensSidePanelPageHandler {
    static get $interfaceName() {
        return "lens.mojom.LensSidePanelPageHandler";
    }
    /**
     * Returns a remote for this interface which sends messages to the browser.
     * The browser must have an interface request binder registered for this
     * interface and accessible to the calling document's frame.
     */
    static getRemote() {
        let remote = new LensSidePanelPageHandlerRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the LensSidePanelPageHandler
 * mojom interface and dispatches them as callbacks. One callback receiver exists
 * on this object for each message defined in the mojom interface, and each
 * receiver can have any number of listeners added to it.
 */
export class LensSidePanelPageHandlerCallbackRouter {
    helper_internal_;
    $;
    router_;
    popAndLoadQueryFromHistory;
    getIsContextualSearchbox;
    onScrollToMessage;
    requestSendFeedback;
    onAimMessage;
    onImageQueryWithEmptyText;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(LensSidePanelPageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.popAndLoadQueryFromHistory =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1412273375, LensSidePanelPageHandler_PopAndLoadQueryFromHistory_ParamsSpec.$, null, this.popAndLoadQueryFromHistory.createReceiverHandler(false /* expectsResponse */), false);
        this.getIsContextualSearchbox =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1798922551, LensSidePanelPageHandler_GetIsContextualSearchbox_ParamsSpec.$, LensSidePanelPageHandler_GetIsContextualSearchbox_ResponseParamsSpec.$, this.getIsContextualSearchbox.createReceiverHandler(true /* expectsResponse */), false);
        this.onScrollToMessage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1467507924, LensSidePanelPageHandler_OnScrollToMessage_ParamsSpec.$, null, this.onScrollToMessage.createReceiverHandler(false /* expectsResponse */), false);
        this.requestSendFeedback =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(595010242, LensSidePanelPageHandler_RequestSendFeedback_ParamsSpec.$, null, this.requestSendFeedback.createReceiverHandler(false /* expectsResponse */), false);
        this.onAimMessage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1246677834, LensSidePanelPageHandler_OnAimMessage_ParamsSpec.$, null, this.onAimMessage.createReceiverHandler(false /* expectsResponse */), false);
        this.onImageQueryWithEmptyText =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1656039725, LensSidePanelPageHandler_OnImageQueryWithEmptyText_ParamsSpec.$, null, this.onImageQueryWithEmptyText.createReceiverHandler(false /* expectsResponse */), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
    /**
     * @param id An ID returned by a prior call to addListener.
     * @return True iff the identified listener was found and removed.
     */
    removeListener(id) {
        return this.router_.removeListener(id);
    }
}
export class LensSidePanelPagePendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'lens.mojom.LensSidePanelPage', scope);
    }
}
export class LensSidePanelPageRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(LensSidePanelPagePendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    loadResultsInFrame(resultsUrl) {
        this.proxy.sendMessage(389661297, LensSidePanelPage_LoadResultsInFrame_ParamsSpec.$, null, [
            resultsUrl
        ], false);
    }
    setIsLoadingResults(isLoading) {
        this.proxy.sendMessage(1000632933, LensSidePanelPage_SetIsLoadingResults_ParamsSpec.$, null, [
            isLoading
        ], false);
    }
    setPageContentUploadProgress(progress) {
        this.proxy.sendMessage(1223036910, LensSidePanelPage_SetPageContentUploadProgress_ParamsSpec.$, null, [
            progress
        ], false);
    }
    setBackArrowVisible(visible) {
        this.proxy.sendMessage(618262205, LensSidePanelPage_SetBackArrowVisible_ParamsSpec.$, null, [
            visible
        ], false);
    }
    setShowErrorPage(shouldShowErrorPage, status) {
        this.proxy.sendMessage(1361550647, LensSidePanelPage_SetShowErrorPage_ParamsSpec.$, null, [
            shouldShowErrorPage,
            status
        ], false);
    }
    suppressGhostLoader() {
        this.proxy.sendMessage(1898000860, LensSidePanelPage_SuppressGhostLoader_ParamsSpec.$, null, [], false);
    }
    pageContentTypeChanged(newPageContentType) {
        this.proxy.sendMessage(2100938529, LensSidePanelPage_PageContentTypeChanged_ParamsSpec.$, null, [
            newPageContentType
        ], false);
    }
    showToast(message) {
        this.proxy.sendMessage(1580045871, LensSidePanelPage_ShowToast_ParamsSpec.$, null, [
            message
        ], false);
    }
    sendClientMessageToAim(serializedMessage) {
        this.proxy.sendMessage(1884452645, LensSidePanelPage_SendClientMessageToAim_ParamsSpec.$, null, [
            serializedMessage
        ], false);
    }
    aimHandshakeReceived() {
        this.proxy.sendMessage(913027938, LensSidePanelPage_AimHandshakeReceived_ParamsSpec.$, null, [], false);
    }
    aimResultsChanged(onAim) {
        this.proxy.sendMessage(642303996, LensSidePanelPage_AimResultsChanged_ParamsSpec.$, null, [
            onAim
        ], false);
    }
    focusResultsFrame() {
        this.proxy.sendMessage(628286710, LensSidePanelPage_FocusResultsFrame_ParamsSpec.$, null, [], false);
    }
    setIsOverlayShowing(isShowing) {
        this.proxy.sendMessage(1630190986, LensSidePanelPage_SetIsOverlayShowing_ParamsSpec.$, null, [
            isShowing
        ], false);
    }
    focusSearchbox() {
        this.proxy.sendMessage(2012196378, LensSidePanelPage_FocusSearchbox_ParamsSpec.$, null, [], false);
    }
}
;
/**
 * An object which receives request messages for the LensSidePanelPage
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class LensSidePanelPageReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(LensSidePanelPageRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(389661297, LensSidePanelPage_LoadResultsInFrame_ParamsSpec.$, null, impl.loadResultsInFrame.bind(impl), false);
        this.helper_internal_.registerHandler(1000632933, LensSidePanelPage_SetIsLoadingResults_ParamsSpec.$, null, impl.setIsLoadingResults.bind(impl), false);
        this.helper_internal_.registerHandler(1223036910, LensSidePanelPage_SetPageContentUploadProgress_ParamsSpec.$, null, impl.setPageContentUploadProgress.bind(impl), false);
        this.helper_internal_.registerHandler(618262205, LensSidePanelPage_SetBackArrowVisible_ParamsSpec.$, null, impl.setBackArrowVisible.bind(impl), false);
        this.helper_internal_.registerHandler(1361550647, LensSidePanelPage_SetShowErrorPage_ParamsSpec.$, null, impl.setShowErrorPage.bind(impl), false);
        this.helper_internal_.registerHandler(1898000860, LensSidePanelPage_SuppressGhostLoader_ParamsSpec.$, null, impl.suppressGhostLoader.bind(impl), false);
        this.helper_internal_.registerHandler(2100938529, LensSidePanelPage_PageContentTypeChanged_ParamsSpec.$, null, impl.pageContentTypeChanged.bind(impl), false);
        this.helper_internal_.registerHandler(1580045871, LensSidePanelPage_ShowToast_ParamsSpec.$, null, impl.showToast.bind(impl), false);
        this.helper_internal_.registerHandler(1884452645, LensSidePanelPage_SendClientMessageToAim_ParamsSpec.$, null, impl.sendClientMessageToAim.bind(impl), false);
        this.helper_internal_.registerHandler(913027938, LensSidePanelPage_AimHandshakeReceived_ParamsSpec.$, null, impl.aimHandshakeReceived.bind(impl), false);
        this.helper_internal_.registerHandler(642303996, LensSidePanelPage_AimResultsChanged_ParamsSpec.$, null, impl.aimResultsChanged.bind(impl), false);
        this.helper_internal_.registerHandler(628286710, LensSidePanelPage_FocusResultsFrame_ParamsSpec.$, null, impl.focusResultsFrame.bind(impl), false);
        this.helper_internal_.registerHandler(1630190986, LensSidePanelPage_SetIsOverlayShowing_ParamsSpec.$, null, impl.setIsOverlayShowing.bind(impl), false);
        this.helper_internal_.registerHandler(2012196378, LensSidePanelPage_FocusSearchbox_ParamsSpec.$, null, impl.focusSearchbox.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class LensSidePanelPage {
    static get $interfaceName() {
        return "lens.mojom.LensSidePanelPage";
    }
    /**
     * Returns a remote for this interface which sends messages to the browser.
     * The browser must have an interface request binder registered for this
     * interface and accessible to the calling document's frame.
     */
    static getRemote() {
        let remote = new LensSidePanelPageRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the LensSidePanelPage
 * mojom interface and dispatches them as callbacks. One callback receiver exists
 * on this object for each message defined in the mojom interface, and each
 * receiver can have any number of listeners added to it.
 */
export class LensSidePanelPageCallbackRouter {
    helper_internal_;
    $;
    router_;
    loadResultsInFrame;
    setIsLoadingResults;
    setPageContentUploadProgress;
    setBackArrowVisible;
    setShowErrorPage;
    suppressGhostLoader;
    pageContentTypeChanged;
    showToast;
    sendClientMessageToAim;
    aimHandshakeReceived;
    aimResultsChanged;
    focusResultsFrame;
    setIsOverlayShowing;
    focusSearchbox;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(LensSidePanelPageRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.loadResultsInFrame =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(389661297, LensSidePanelPage_LoadResultsInFrame_ParamsSpec.$, null, this.loadResultsInFrame.createReceiverHandler(false /* expectsResponse */), false);
        this.setIsLoadingResults =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1000632933, LensSidePanelPage_SetIsLoadingResults_ParamsSpec.$, null, this.setIsLoadingResults.createReceiverHandler(false /* expectsResponse */), false);
        this.setPageContentUploadProgress =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1223036910, LensSidePanelPage_SetPageContentUploadProgress_ParamsSpec.$, null, this.setPageContentUploadProgress.createReceiverHandler(false /* expectsResponse */), false);
        this.setBackArrowVisible =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(618262205, LensSidePanelPage_SetBackArrowVisible_ParamsSpec.$, null, this.setBackArrowVisible.createReceiverHandler(false /* expectsResponse */), false);
        this.setShowErrorPage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1361550647, LensSidePanelPage_SetShowErrorPage_ParamsSpec.$, null, this.setShowErrorPage.createReceiverHandler(false /* expectsResponse */), false);
        this.suppressGhostLoader =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1898000860, LensSidePanelPage_SuppressGhostLoader_ParamsSpec.$, null, this.suppressGhostLoader.createReceiverHandler(false /* expectsResponse */), false);
        this.pageContentTypeChanged =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2100938529, LensSidePanelPage_PageContentTypeChanged_ParamsSpec.$, null, this.pageContentTypeChanged.createReceiverHandler(false /* expectsResponse */), false);
        this.showToast =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1580045871, LensSidePanelPage_ShowToast_ParamsSpec.$, null, this.showToast.createReceiverHandler(false /* expectsResponse */), false);
        this.sendClientMessageToAim =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1884452645, LensSidePanelPage_SendClientMessageToAim_ParamsSpec.$, null, this.sendClientMessageToAim.createReceiverHandler(false /* expectsResponse */), false);
        this.aimHandshakeReceived =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(913027938, LensSidePanelPage_AimHandshakeReceived_ParamsSpec.$, null, this.aimHandshakeReceived.createReceiverHandler(false /* expectsResponse */), false);
        this.aimResultsChanged =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(642303996, LensSidePanelPage_AimResultsChanged_ParamsSpec.$, null, this.aimResultsChanged.createReceiverHandler(false /* expectsResponse */), false);
        this.focusResultsFrame =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(628286710, LensSidePanelPage_FocusResultsFrame_ParamsSpec.$, null, this.focusResultsFrame.createReceiverHandler(false /* expectsResponse */), false);
        this.setIsOverlayShowing =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1630190986, LensSidePanelPage_SetIsOverlayShowing_ParamsSpec.$, null, this.setIsOverlayShowing.createReceiverHandler(false /* expectsResponse */), false);
        this.focusSearchbox =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2012196378, LensSidePanelPage_FocusSearchbox_ParamsSpec.$, null, this.focusSearchbox.createReceiverHandler(false /* expectsResponse */), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
    /**
     * @param id An ID returned by a prior call to addListener.
     * @return True iff the identified listener was found and removed.
     */
    removeListener(id) {
        return this.router_.removeListener(id);
    }
}
export const LensSidePanelPageHandlerFactory_CreateSidePanelPageHandler_ParamsSpec = { $: {} };
export const LensSidePanelPageHandler_PopAndLoadQueryFromHistory_ParamsSpec = { $: {} };
export const LensSidePanelPageHandler_GetIsContextualSearchbox_ParamsSpec = { $: {} };
export const LensSidePanelPageHandler_GetIsContextualSearchbox_ResponseParamsSpec = { $: {} };
export const LensSidePanelPageHandler_OnScrollToMessage_ParamsSpec = { $: {} };
export const LensSidePanelPageHandler_RequestSendFeedback_ParamsSpec = { $: {} };
export const LensSidePanelPageHandler_OnAimMessage_ParamsSpec = { $: {} };
export const LensSidePanelPageHandler_OnImageQueryWithEmptyText_ParamsSpec = { $: {} };
export const LensSidePanelPage_LoadResultsInFrame_ParamsSpec = { $: {} };
export const LensSidePanelPage_SetIsLoadingResults_ParamsSpec = { $: {} };
export const LensSidePanelPage_SetPageContentUploadProgress_ParamsSpec = { $: {} };
export const LensSidePanelPage_SetBackArrowVisible_ParamsSpec = { $: {} };
export const LensSidePanelPage_SetShowErrorPage_ParamsSpec = { $: {} };
export const LensSidePanelPage_SuppressGhostLoader_ParamsSpec = { $: {} };
export const LensSidePanelPage_PageContentTypeChanged_ParamsSpec = { $: {} };
export const LensSidePanelPage_ShowToast_ParamsSpec = { $: {} };
export const LensSidePanelPage_SendClientMessageToAim_ParamsSpec = { $: {} };
export const LensSidePanelPage_AimHandshakeReceived_ParamsSpec = { $: {} };
export const LensSidePanelPage_AimResultsChanged_ParamsSpec = { $: {} };
export const LensSidePanelPage_FocusResultsFrame_ParamsSpec = { $: {} };
export const LensSidePanelPage_SetIsOverlayShowing_ParamsSpec = { $: {} };
export const LensSidePanelPage_FocusSearchbox_ParamsSpec = { $: {} };
mojo.internal.Struct(LensSidePanelPageHandlerFactory_CreateSidePanelPageHandler_ParamsSpec.$, 'LensSidePanelPageHandlerFactory_CreateSidePanelPageHandler_Params', [
    mojo.internal.StructField('handler', 0, 0, mojo.internal.InterfaceRequest(LensSidePanelPageHandlerPendingReceiver), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('page', 4, 0, mojo.internal.InterfaceProxy(LensSidePanelPageRemote), null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(LensSidePanelPageHandler_PopAndLoadQueryFromHistory_ParamsSpec.$, 'LensSidePanelPageHandler_PopAndLoadQueryFromHistory_Params', [], [[0, 8],]);
mojo.internal.Struct(LensSidePanelPageHandler_GetIsContextualSearchbox_ParamsSpec.$, 'LensSidePanelPageHandler_GetIsContextualSearchbox_Params', [], [[0, 8],]);
mojo.internal.Struct(LensSidePanelPageHandler_GetIsContextualSearchbox_ResponseParamsSpec.$, 'LensSidePanelPageHandler_GetIsContextualSearchbox_ResponseParams', [
    mojo.internal.StructField('isContextualSearchbox', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPageHandler_OnScrollToMessage_ParamsSpec.$, 'LensSidePanelPageHandler_OnScrollToMessage_Params', [
    mojo.internal.StructField('textFragments', 0, 0, mojo.internal.Array(mojo.internal.String, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('pdfPageNumber', 8, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(LensSidePanelPageHandler_RequestSendFeedback_ParamsSpec.$, 'LensSidePanelPageHandler_RequestSendFeedback_Params', [], [[0, 8],]);
mojo.internal.Struct(LensSidePanelPageHandler_OnAimMessage_ParamsSpec.$, 'LensSidePanelPageHandler_OnAimMessage_Params', [
    mojo.internal.StructField('message', 0, 0, mojo.internal.Array(mojo.internal.Uint8, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPageHandler_OnImageQueryWithEmptyText_ParamsSpec.$, 'LensSidePanelPageHandler_OnImageQueryWithEmptyText_Params', [], [[0, 8],]);
mojo.internal.Struct(LensSidePanelPage_LoadResultsInFrame_ParamsSpec.$, 'LensSidePanelPage_LoadResultsInFrame_Params', [
    mojo.internal.StructField('resultsUrl', 0, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_SetIsLoadingResults_ParamsSpec.$, 'LensSidePanelPage_SetIsLoadingResults_Params', [
    mojo.internal.StructField('isLoading', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_SetPageContentUploadProgress_ParamsSpec.$, 'LensSidePanelPage_SetPageContentUploadProgress_Params', [
    mojo.internal.StructField('progress', 0, 0, mojo.internal.Float, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_SetBackArrowVisible_ParamsSpec.$, 'LensSidePanelPage_SetBackArrowVisible_Params', [
    mojo.internal.StructField('visible', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_SetShowErrorPage_ParamsSpec.$, 'LensSidePanelPage_SetShowErrorPage_Params', [
    mojo.internal.StructField('shouldShowErrorPage', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('status', 4, 0, SidePanelResultStatusSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_SuppressGhostLoader_ParamsSpec.$, 'LensSidePanelPage_SuppressGhostLoader_Params', [], [[0, 8],]);
mojo.internal.Struct(LensSidePanelPage_PageContentTypeChanged_ParamsSpec.$, 'LensSidePanelPage_PageContentTypeChanged_Params', [
    mojo.internal.StructField('newPageContentType', 0, 0, lens_mojom_PageContentTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_ShowToast_ParamsSpec.$, 'LensSidePanelPage_ShowToast_Params', [
    mojo.internal.StructField('message', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_SendClientMessageToAim_ParamsSpec.$, 'LensSidePanelPage_SendClientMessageToAim_Params', [
    mojo.internal.StructField('serializedMessage', 0, 0, mojo.internal.Array(mojo.internal.Uint8, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_AimHandshakeReceived_ParamsSpec.$, 'LensSidePanelPage_AimHandshakeReceived_Params', [], [[0, 8],]);
mojo.internal.Struct(LensSidePanelPage_AimResultsChanged_ParamsSpec.$, 'LensSidePanelPage_AimResultsChanged_Params', [
    mojo.internal.StructField('onAim', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_FocusResultsFrame_ParamsSpec.$, 'LensSidePanelPage_FocusResultsFrame_Params', [], [[0, 8],]);
mojo.internal.Struct(LensSidePanelPage_SetIsOverlayShowing_ParamsSpec.$, 'LensSidePanelPage_SetIsOverlayShowing_Params', [
    mojo.internal.StructField('isShowing', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(LensSidePanelPage_FocusSearchbox_ParamsSpec.$, 'LensSidePanelPage_FocusSearchbox_Params', [], [[0, 8],]);
