// chrome/browser/ui/webui/side_panel/customize_chrome/customize_chrome.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 { MojoBrowserProxyFactory } from '//resources/mojo/mojo_browser_proxy.js';
import { TileTypeSpec as ntpTiles_mojom_TileTypeSpec } from '//resources/mojo/components/ntp_tiles/tile_type.mojom-webui.js';
import { TokenSpec as mojoBase_mojom_TokenSpec } from '//resources/mojo/mojo/public/mojom/base/token.mojom-webui.js';
import { SkColorSpec as skia_mojom_SkColorSpec } from '//resources/mojo/skia/public/mojom/skcolor.mojom-webui.js';
import { UrlSpec as url_mojom_UrlSpec } from '//resources/mojo/url/mojom/url.mojom-webui.js';
export const CustomizeChromeSectionSpec = { $: mojo.internal.Enum() };
export var CustomizeChromeSection;
(function (CustomizeChromeSection) {
    CustomizeChromeSection[CustomizeChromeSection["MIN_VALUE"] = 0] = "MIN_VALUE";
    CustomizeChromeSection[CustomizeChromeSection["MAX_VALUE"] = 6] = "MAX_VALUE";
    CustomizeChromeSection[CustomizeChromeSection["kUnspecified"] = 0] = "kUnspecified";
    CustomizeChromeSection[CustomizeChromeSection["kAppearance"] = 1] = "kAppearance";
    CustomizeChromeSection[CustomizeChromeSection["kShortcuts"] = 2] = "kShortcuts";
    CustomizeChromeSection[CustomizeChromeSection["kModules"] = 3] = "kModules";
    CustomizeChromeSection[CustomizeChromeSection["kWallpaperSearch"] = 4] = "kWallpaperSearch";
    CustomizeChromeSection[CustomizeChromeSection["kToolbar"] = 5] = "kToolbar";
    CustomizeChromeSection[CustomizeChromeSection["kFooter"] = 6] = "kFooter";
})(CustomizeChromeSection || (CustomizeChromeSection = {}));
export const ChromeWebStoreCollectionSpec = { $: mojo.internal.Enum() };
export var ChromeWebStoreCollection;
(function (ChromeWebStoreCollection) {
    ChromeWebStoreCollection[ChromeWebStoreCollection["MIN_VALUE"] = 0] = "MIN_VALUE";
    ChromeWebStoreCollection[ChromeWebStoreCollection["MAX_VALUE"] = 0] = "MAX_VALUE";
    ChromeWebStoreCollection[ChromeWebStoreCollection["kWritingEssentials"] = 0] = "kWritingEssentials";
})(ChromeWebStoreCollection || (ChromeWebStoreCollection = {}));
export const ChromeWebStoreCategorySpec = { $: mojo.internal.Enum() };
export var ChromeWebStoreCategory;
(function (ChromeWebStoreCategory) {
    ChromeWebStoreCategory[ChromeWebStoreCategory["MIN_VALUE"] = 0] = "MIN_VALUE";
    ChromeWebStoreCategory[ChromeWebStoreCategory["MAX_VALUE"] = 1] = "MAX_VALUE";
    ChromeWebStoreCategory[ChromeWebStoreCategory["kWorkflowPlanning"] = 0] = "kWorkflowPlanning";
    ChromeWebStoreCategory[ChromeWebStoreCategory["kShopping"] = 1] = "kShopping";
})(ChromeWebStoreCategory || (ChromeWebStoreCategory = {}));
export const NewTabPageTypeSpec = { $: mojo.internal.Enum() };
export var NewTabPageType;
(function (NewTabPageType) {
    NewTabPageType[NewTabPageType["MIN_VALUE"] = 0] = "MIN_VALUE";
    NewTabPageType[NewTabPageType["MAX_VALUE"] = 6] = "MAX_VALUE";
    NewTabPageType[NewTabPageType["kFirstPartyWebUI"] = 0] = "kFirstPartyWebUI";
    NewTabPageType[NewTabPageType["kThirdPartyWebUI"] = 1] = "kThirdPartyWebUI";
    NewTabPageType[NewTabPageType["kThirdPartyRemote"] = 2] = "kThirdPartyRemote";
    NewTabPageType[NewTabPageType["kExtension"] = 3] = "kExtension";
    NewTabPageType[NewTabPageType["kIncognito"] = 4] = "kIncognito";
    NewTabPageType[NewTabPageType["kGuestMode"] = 5] = "kGuestMode";
    NewTabPageType[NewTabPageType["kNone"] = 6] = "kNone";
})(NewTabPageType || (NewTabPageType = {}));
export class CustomizeChromePageHandlerFactoryPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'side_panel.mojom.CustomizeChromePageHandlerFactory', scope);
    }
}
export class CustomizeChromePageHandlerFactoryRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(CustomizeChromePageHandlerFactoryPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    createPageHandler(page, handler) {
        this.proxy.sendMessage(1125874649, CustomizeChromePageHandlerFactory_CreatePageHandler_ParamsSpec.$, null, [
            page,
            handler
        ], false);
    }
}
;
/**
 * An object which receives request messages for the CustomizeChromePageHandlerFactory
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class CustomizeChromePageHandlerFactoryReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(CustomizeChromePageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(1125874649, CustomizeChromePageHandlerFactory_CreatePageHandler_ParamsSpec.$, null, impl.createPageHandler.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class CustomizeChromePageHandlerFactory {
    static get $interfaceName() {
        return "side_panel.mojom.CustomizeChromePageHandlerFactory";
    }
    /**
     * 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 CustomizeChromePageHandlerFactoryRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the CustomizeChromePageHandlerFactory
 * 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 CustomizeChromePageHandlerFactoryCallbackRouter {
    helper_internal_;
    $;
    router_;
    createPageHandler;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(CustomizeChromePageHandlerFactoryRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.createPageHandler =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1125874649, CustomizeChromePageHandlerFactory_CreatePageHandler_ParamsSpec.$, null, this.createPageHandler.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 CustomizeChromePageHandlerPendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'side_panel.mojom.CustomizeChromePageHandler', scope);
    }
}
export class CustomizeChromePageHandlerRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(CustomizeChromePageHandlerPendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    setMostVisitedSettings(shortcutsTypes, shortcutsVisible, personalShortcutsVisible) {
        this.proxy.sendMessage(814537751, CustomizeChromePageHandler_SetMostVisitedSettings_ParamsSpec.$, null, [
            shortcutsTypes,
            shortcutsVisible,
            personalShortcutsVisible
        ], false);
    }
    updateMostVisitedSettings() {
        this.proxy.sendMessage(2125991600, CustomizeChromePageHandler_UpdateMostVisitedSettings_ParamsSpec.$, null, [], false);
    }
    getBackgroundCollections() {
        return this.proxy.sendMessage(676686877, CustomizeChromePageHandler_GetBackgroundCollections_ParamsSpec.$, CustomizeChromePageHandler_GetBackgroundCollections_ResponseParamsSpec.$, [], false);
    }
    getReplacementCollectionPreviewImage(collectionId) {
        return this.proxy.sendMessage(1807606110, CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ParamsSpec.$, CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ResponseParamsSpec.$, [
            collectionId
        ], false);
    }
    getBackgroundImages(collectionId) {
        return this.proxy.sendMessage(2141964716, CustomizeChromePageHandler_GetBackgroundImages_ParamsSpec.$, CustomizeChromePageHandler_GetBackgroundImages_ResponseParamsSpec.$, [
            collectionId
        ], false);
    }
    updateModulesSettings() {
        this.proxy.sendMessage(417197172, CustomizeChromePageHandler_UpdateModulesSettings_ParamsSpec.$, null, [], false);
    }
    updateTheme() {
        this.proxy.sendMessage(511373519, CustomizeChromePageHandler_UpdateTheme_ParamsSpec.$, null, [], false);
    }
    updateThemeEditable(isThemeEditable) {
        this.proxy.sendMessage(1595888532, CustomizeChromePageHandler_UpdateThemeEditable_ParamsSpec.$, null, [
            isThemeEditable
        ], false);
    }
    setDefaultColor() {
        this.proxy.sendMessage(198030058, CustomizeChromePageHandler_SetDefaultColor_ParamsSpec.$, null, [], false);
    }
    setFollowDeviceTheme(follow) {
        this.proxy.sendMessage(1895215507, CustomizeChromePageHandler_SetFollowDeviceTheme_ParamsSpec.$, null, [
            follow
        ], false);
    }
    removeBackgroundImage() {
        this.proxy.sendMessage(85835608, CustomizeChromePageHandler_RemoveBackgroundImage_ParamsSpec.$, null, [], false);
    }
    chooseLocalCustomBackground() {
        return this.proxy.sendMessage(1151568422, CustomizeChromePageHandler_ChooseLocalCustomBackground_ParamsSpec.$, CustomizeChromePageHandler_ChooseLocalCustomBackground_ResponseParamsSpec.$, [], false);
    }
    setBackgroundImage(attribution1, attribution2, attributionUrl, imageUrl, thumbnailUrl, collectionId) {
        this.proxy.sendMessage(903941981, CustomizeChromePageHandler_SetBackgroundImage_ParamsSpec.$, null, [
            attribution1,
            attribution2,
            attributionUrl,
            imageUrl,
            thumbnailUrl,
            collectionId
        ], false);
    }
    setDailyRefreshCollectionId(collectionId) {
        this.proxy.sendMessage(1291433155, CustomizeChromePageHandler_SetDailyRefreshCollectionId_ParamsSpec.$, null, [
            collectionId
        ], false);
    }
    openChromeWebStore() {
        this.proxy.sendMessage(153767788, CustomizeChromePageHandler_OpenChromeWebStore_ParamsSpec.$, null, [], false);
    }
    openChromeWebStoreHomePage() {
        this.proxy.sendMessage(169824494, CustomizeChromePageHandler_OpenChromeWebStoreHomePage_ParamsSpec.$, null, [], false);
    }
    openThirdPartyThemePage(themeId) {
        this.proxy.sendMessage(335703196, CustomizeChromePageHandler_OpenThirdPartyThemePage_ParamsSpec.$, null, [
            themeId
        ], false);
    }
    openChromeWebStoreCategoryPage(category) {
        this.proxy.sendMessage(1475370226, CustomizeChromePageHandler_OpenChromeWebStoreCategoryPage_ParamsSpec.$, null, [
            category
        ], false);
    }
    openChromeWebStoreCollectionPage(collection) {
        this.proxy.sendMessage(780345874, CustomizeChromePageHandler_OpenChromeWebStoreCollectionPage_ParamsSpec.$, null, [
            collection
        ], false);
    }
    openNtpManagedByPage() {
        this.proxy.sendMessage(534657206, CustomizeChromePageHandler_OpenNtpManagedByPage_ParamsSpec.$, null, [], false);
    }
    setModulesVisible(visible) {
        this.proxy.sendMessage(1407192394, CustomizeChromePageHandler_SetModulesVisible_ParamsSpec.$, null, [
            visible
        ], false);
    }
    setModuleDisabled(moduleId, disabled) {
        this.proxy.sendMessage(1402599908, CustomizeChromePageHandler_SetModuleDisabled_ParamsSpec.$, null, [
            moduleId,
            disabled
        ], false);
    }
    setToolChipsVisible(visible) {
        this.proxy.sendMessage(1978265254, CustomizeChromePageHandler_SetToolChipsVisible_ParamsSpec.$, null, [
            visible
        ], false);
    }
    updateToolChipsSettings() {
        this.proxy.sendMessage(510732147, CustomizeChromePageHandler_UpdateToolChipsSettings_ParamsSpec.$, null, [], false);
    }
    updateScrollToSection() {
        this.proxy.sendMessage(394610721, CustomizeChromePageHandler_UpdateScrollToSection_ParamsSpec.$, null, [], false);
    }
    updateAttachedTabState() {
        this.proxy.sendMessage(1126565172, CustomizeChromePageHandler_UpdateAttachedTabState_ParamsSpec.$, null, [], false);
    }
    updateNtpManagedByName() {
        this.proxy.sendMessage(1271245346, CustomizeChromePageHandler_UpdateNtpManagedByName_ParamsSpec.$, null, [], false);
    }
    setFooterVisible(visible) {
        this.proxy.sendMessage(1616677889, CustomizeChromePageHandler_SetFooterVisible_ParamsSpec.$, null, [
            visible
        ], false);
    }
    updateFooterSettings() {
        this.proxy.sendMessage(1267838260, CustomizeChromePageHandler_UpdateFooterSettings_ParamsSpec.$, null, [], false);
    }
}
;
/**
 * An object which receives request messages for the CustomizeChromePageHandler
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class CustomizeChromePageHandlerReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(CustomizeChromePageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(814537751, CustomizeChromePageHandler_SetMostVisitedSettings_ParamsSpec.$, null, impl.setMostVisitedSettings.bind(impl), false);
        this.helper_internal_.registerHandler(2125991600, CustomizeChromePageHandler_UpdateMostVisitedSettings_ParamsSpec.$, null, impl.updateMostVisitedSettings.bind(impl), false);
        this.helper_internal_.registerHandler(676686877, CustomizeChromePageHandler_GetBackgroundCollections_ParamsSpec.$, CustomizeChromePageHandler_GetBackgroundCollections_ResponseParamsSpec.$, impl.getBackgroundCollections.bind(impl), false);
        this.helper_internal_.registerHandler(1807606110, CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ParamsSpec.$, CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ResponseParamsSpec.$, impl.getReplacementCollectionPreviewImage.bind(impl), false);
        this.helper_internal_.registerHandler(2141964716, CustomizeChromePageHandler_GetBackgroundImages_ParamsSpec.$, CustomizeChromePageHandler_GetBackgroundImages_ResponseParamsSpec.$, impl.getBackgroundImages.bind(impl), false);
        this.helper_internal_.registerHandler(417197172, CustomizeChromePageHandler_UpdateModulesSettings_ParamsSpec.$, null, impl.updateModulesSettings.bind(impl), false);
        this.helper_internal_.registerHandler(511373519, CustomizeChromePageHandler_UpdateTheme_ParamsSpec.$, null, impl.updateTheme.bind(impl), false);
        this.helper_internal_.registerHandler(1595888532, CustomizeChromePageHandler_UpdateThemeEditable_ParamsSpec.$, null, impl.updateThemeEditable.bind(impl), false);
        this.helper_internal_.registerHandler(198030058, CustomizeChromePageHandler_SetDefaultColor_ParamsSpec.$, null, impl.setDefaultColor.bind(impl), false);
        this.helper_internal_.registerHandler(1895215507, CustomizeChromePageHandler_SetFollowDeviceTheme_ParamsSpec.$, null, impl.setFollowDeviceTheme.bind(impl), false);
        this.helper_internal_.registerHandler(85835608, CustomizeChromePageHandler_RemoveBackgroundImage_ParamsSpec.$, null, impl.removeBackgroundImage.bind(impl), false);
        this.helper_internal_.registerHandler(1151568422, CustomizeChromePageHandler_ChooseLocalCustomBackground_ParamsSpec.$, CustomizeChromePageHandler_ChooseLocalCustomBackground_ResponseParamsSpec.$, impl.chooseLocalCustomBackground.bind(impl), false);
        this.helper_internal_.registerHandler(903941981, CustomizeChromePageHandler_SetBackgroundImage_ParamsSpec.$, null, impl.setBackgroundImage.bind(impl), false);
        this.helper_internal_.registerHandler(1291433155, CustomizeChromePageHandler_SetDailyRefreshCollectionId_ParamsSpec.$, null, impl.setDailyRefreshCollectionId.bind(impl), false);
        this.helper_internal_.registerHandler(153767788, CustomizeChromePageHandler_OpenChromeWebStore_ParamsSpec.$, null, impl.openChromeWebStore.bind(impl), false);
        this.helper_internal_.registerHandler(169824494, CustomizeChromePageHandler_OpenChromeWebStoreHomePage_ParamsSpec.$, null, impl.openChromeWebStoreHomePage.bind(impl), false);
        this.helper_internal_.registerHandler(335703196, CustomizeChromePageHandler_OpenThirdPartyThemePage_ParamsSpec.$, null, impl.openThirdPartyThemePage.bind(impl), false);
        this.helper_internal_.registerHandler(1475370226, CustomizeChromePageHandler_OpenChromeWebStoreCategoryPage_ParamsSpec.$, null, impl.openChromeWebStoreCategoryPage.bind(impl), false);
        this.helper_internal_.registerHandler(780345874, CustomizeChromePageHandler_OpenChromeWebStoreCollectionPage_ParamsSpec.$, null, impl.openChromeWebStoreCollectionPage.bind(impl), false);
        this.helper_internal_.registerHandler(534657206, CustomizeChromePageHandler_OpenNtpManagedByPage_ParamsSpec.$, null, impl.openNtpManagedByPage.bind(impl), false);
        this.helper_internal_.registerHandler(1407192394, CustomizeChromePageHandler_SetModulesVisible_ParamsSpec.$, null, impl.setModulesVisible.bind(impl), false);
        this.helper_internal_.registerHandler(1402599908, CustomizeChromePageHandler_SetModuleDisabled_ParamsSpec.$, null, impl.setModuleDisabled.bind(impl), false);
        this.helper_internal_.registerHandler(1978265254, CustomizeChromePageHandler_SetToolChipsVisible_ParamsSpec.$, null, impl.setToolChipsVisible.bind(impl), false);
        this.helper_internal_.registerHandler(510732147, CustomizeChromePageHandler_UpdateToolChipsSettings_ParamsSpec.$, null, impl.updateToolChipsSettings.bind(impl), false);
        this.helper_internal_.registerHandler(394610721, CustomizeChromePageHandler_UpdateScrollToSection_ParamsSpec.$, null, impl.updateScrollToSection.bind(impl), false);
        this.helper_internal_.registerHandler(1126565172, CustomizeChromePageHandler_UpdateAttachedTabState_ParamsSpec.$, null, impl.updateAttachedTabState.bind(impl), false);
        this.helper_internal_.registerHandler(1271245346, CustomizeChromePageHandler_UpdateNtpManagedByName_ParamsSpec.$, null, impl.updateNtpManagedByName.bind(impl), false);
        this.helper_internal_.registerHandler(1616677889, CustomizeChromePageHandler_SetFooterVisible_ParamsSpec.$, null, impl.setFooterVisible.bind(impl), false);
        this.helper_internal_.registerHandler(1267838260, CustomizeChromePageHandler_UpdateFooterSettings_ParamsSpec.$, null, impl.updateFooterSettings.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class CustomizeChromePageHandler {
    static get $interfaceName() {
        return "side_panel.mojom.CustomizeChromePageHandler";
    }
    /**
     * 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 CustomizeChromePageHandlerRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the CustomizeChromePageHandler
 * 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 CustomizeChromePageHandlerCallbackRouter {
    helper_internal_;
    $;
    router_;
    setMostVisitedSettings;
    updateMostVisitedSettings;
    getBackgroundCollections;
    getReplacementCollectionPreviewImage;
    getBackgroundImages;
    updateModulesSettings;
    updateTheme;
    updateThemeEditable;
    setDefaultColor;
    setFollowDeviceTheme;
    removeBackgroundImage;
    chooseLocalCustomBackground;
    setBackgroundImage;
    setDailyRefreshCollectionId;
    openChromeWebStore;
    openChromeWebStoreHomePage;
    openThirdPartyThemePage;
    openChromeWebStoreCategoryPage;
    openChromeWebStoreCollectionPage;
    openNtpManagedByPage;
    setModulesVisible;
    setModuleDisabled;
    setToolChipsVisible;
    updateToolChipsSettings;
    updateScrollToSection;
    updateAttachedTabState;
    updateNtpManagedByName;
    setFooterVisible;
    updateFooterSettings;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(CustomizeChromePageHandlerRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.setMostVisitedSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(814537751, CustomizeChromePageHandler_SetMostVisitedSettings_ParamsSpec.$, null, this.setMostVisitedSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.updateMostVisitedSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2125991600, CustomizeChromePageHandler_UpdateMostVisitedSettings_ParamsSpec.$, null, this.updateMostVisitedSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.getBackgroundCollections =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(676686877, CustomizeChromePageHandler_GetBackgroundCollections_ParamsSpec.$, CustomizeChromePageHandler_GetBackgroundCollections_ResponseParamsSpec.$, this.getBackgroundCollections.createReceiverHandler(true /* expectsResponse */), false);
        this.getReplacementCollectionPreviewImage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1807606110, CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ParamsSpec.$, CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ResponseParamsSpec.$, this.getReplacementCollectionPreviewImage.createReceiverHandler(true /* expectsResponse */), false);
        this.getBackgroundImages =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(2141964716, CustomizeChromePageHandler_GetBackgroundImages_ParamsSpec.$, CustomizeChromePageHandler_GetBackgroundImages_ResponseParamsSpec.$, this.getBackgroundImages.createReceiverHandler(true /* expectsResponse */), false);
        this.updateModulesSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(417197172, CustomizeChromePageHandler_UpdateModulesSettings_ParamsSpec.$, null, this.updateModulesSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.updateTheme =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(511373519, CustomizeChromePageHandler_UpdateTheme_ParamsSpec.$, null, this.updateTheme.createReceiverHandler(false /* expectsResponse */), false);
        this.updateThemeEditable =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1595888532, CustomizeChromePageHandler_UpdateThemeEditable_ParamsSpec.$, null, this.updateThemeEditable.createReceiverHandler(false /* expectsResponse */), false);
        this.setDefaultColor =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(198030058, CustomizeChromePageHandler_SetDefaultColor_ParamsSpec.$, null, this.setDefaultColor.createReceiverHandler(false /* expectsResponse */), false);
        this.setFollowDeviceTheme =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1895215507, CustomizeChromePageHandler_SetFollowDeviceTheme_ParamsSpec.$, null, this.setFollowDeviceTheme.createReceiverHandler(false /* expectsResponse */), false);
        this.removeBackgroundImage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(85835608, CustomizeChromePageHandler_RemoveBackgroundImage_ParamsSpec.$, null, this.removeBackgroundImage.createReceiverHandler(false /* expectsResponse */), false);
        this.chooseLocalCustomBackground =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1151568422, CustomizeChromePageHandler_ChooseLocalCustomBackground_ParamsSpec.$, CustomizeChromePageHandler_ChooseLocalCustomBackground_ResponseParamsSpec.$, this.chooseLocalCustomBackground.createReceiverHandler(true /* expectsResponse */), false);
        this.setBackgroundImage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(903941981, CustomizeChromePageHandler_SetBackgroundImage_ParamsSpec.$, null, this.setBackgroundImage.createReceiverHandler(false /* expectsResponse */), false);
        this.setDailyRefreshCollectionId =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1291433155, CustomizeChromePageHandler_SetDailyRefreshCollectionId_ParamsSpec.$, null, this.setDailyRefreshCollectionId.createReceiverHandler(false /* expectsResponse */), false);
        this.openChromeWebStore =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(153767788, CustomizeChromePageHandler_OpenChromeWebStore_ParamsSpec.$, null, this.openChromeWebStore.createReceiverHandler(false /* expectsResponse */), false);
        this.openChromeWebStoreHomePage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(169824494, CustomizeChromePageHandler_OpenChromeWebStoreHomePage_ParamsSpec.$, null, this.openChromeWebStoreHomePage.createReceiverHandler(false /* expectsResponse */), false);
        this.openThirdPartyThemePage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(335703196, CustomizeChromePageHandler_OpenThirdPartyThemePage_ParamsSpec.$, null, this.openThirdPartyThemePage.createReceiverHandler(false /* expectsResponse */), false);
        this.openChromeWebStoreCategoryPage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1475370226, CustomizeChromePageHandler_OpenChromeWebStoreCategoryPage_ParamsSpec.$, null, this.openChromeWebStoreCategoryPage.createReceiverHandler(false /* expectsResponse */), false);
        this.openChromeWebStoreCollectionPage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(780345874, CustomizeChromePageHandler_OpenChromeWebStoreCollectionPage_ParamsSpec.$, null, this.openChromeWebStoreCollectionPage.createReceiverHandler(false /* expectsResponse */), false);
        this.openNtpManagedByPage =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(534657206, CustomizeChromePageHandler_OpenNtpManagedByPage_ParamsSpec.$, null, this.openNtpManagedByPage.createReceiverHandler(false /* expectsResponse */), false);
        this.setModulesVisible =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1407192394, CustomizeChromePageHandler_SetModulesVisible_ParamsSpec.$, null, this.setModulesVisible.createReceiverHandler(false /* expectsResponse */), false);
        this.setModuleDisabled =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1402599908, CustomizeChromePageHandler_SetModuleDisabled_ParamsSpec.$, null, this.setModuleDisabled.createReceiverHandler(false /* expectsResponse */), false);
        this.setToolChipsVisible =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1978265254, CustomizeChromePageHandler_SetToolChipsVisible_ParamsSpec.$, null, this.setToolChipsVisible.createReceiverHandler(false /* expectsResponse */), false);
        this.updateToolChipsSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(510732147, CustomizeChromePageHandler_UpdateToolChipsSettings_ParamsSpec.$, null, this.updateToolChipsSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.updateScrollToSection =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(394610721, CustomizeChromePageHandler_UpdateScrollToSection_ParamsSpec.$, null, this.updateScrollToSection.createReceiverHandler(false /* expectsResponse */), false);
        this.updateAttachedTabState =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1126565172, CustomizeChromePageHandler_UpdateAttachedTabState_ParamsSpec.$, null, this.updateAttachedTabState.createReceiverHandler(false /* expectsResponse */), false);
        this.updateNtpManagedByName =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1271245346, CustomizeChromePageHandler_UpdateNtpManagedByName_ParamsSpec.$, null, this.updateNtpManagedByName.createReceiverHandler(false /* expectsResponse */), false);
        this.setFooterVisible =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1616677889, CustomizeChromePageHandler_SetFooterVisible_ParamsSpec.$, null, this.setFooterVisible.createReceiverHandler(false /* expectsResponse */), false);
        this.updateFooterSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1267838260, CustomizeChromePageHandler_UpdateFooterSettings_ParamsSpec.$, null, this.updateFooterSettings.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 CustomizeChromePagePendingReceiver {
    handle;
    constructor(handle) {
        this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
    }
    bindInBrowser(scope = 'context') {
        mojo.internal.interfaceSupport.bind(this.handle, 'side_panel.mojom.CustomizeChromePage', scope);
    }
}
export class CustomizeChromePageRemote {
    proxy;
    $;
    onConnectionError;
    constructor(handle) {
        this.proxy =
            new mojo.internal.interfaceSupport.InterfaceRemoteBase(CustomizeChromePagePendingReceiver, handle);
        this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
        this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
    }
    setModulesSettings(modulesSettings, managed, visible) {
        this.proxy.sendMessage(1086394503, CustomizeChromePage_SetModulesSettings_ParamsSpec.$, null, [
            modulesSettings,
            managed,
            visible
        ], false);
    }
    setMostVisitedSettings(shortcutsTypes, visible, personalShortcutsVisible, disabledShortcuts) {
        this.proxy.sendMessage(121398922, CustomizeChromePage_SetMostVisitedSettings_ParamsSpec.$, null, [
            shortcutsTypes,
            visible,
            personalShortcutsVisible,
            disabledShortcuts
        ], false);
    }
    setToolsSettings(visible) {
        this.proxy.sendMessage(1995550158, CustomizeChromePage_SetToolsSettings_ParamsSpec.$, null, [
            visible
        ], false);
    }
    setFooterSettings(visible, extensionPolicyEnabled, managementNoticeState) {
        this.proxy.sendMessage(615030384, CustomizeChromePage_SetFooterSettings_ParamsSpec.$, null, [
            visible,
            extensionPolicyEnabled,
            managementNoticeState
        ], false);
    }
    setTheme(theme) {
        this.proxy.sendMessage(413005665, CustomizeChromePage_SetTheme_ParamsSpec.$, null, [
            theme
        ], false);
    }
    setThemeEditable(isThemeEditable) {
        this.proxy.sendMessage(17100211, CustomizeChromePage_SetThemeEditable_ParamsSpec.$, null, [
            isThemeEditable
        ], false);
    }
    scrollToSection(section) {
        this.proxy.sendMessage(499890328, CustomizeChromePage_ScrollToSection_ParamsSpec.$, null, [
            section
        ], false);
    }
    attachedTabStateUpdated(ntpType) {
        this.proxy.sendMessage(1445006748, CustomizeChromePage_AttachedTabStateUpdated_ParamsSpec.$, null, [
            ntpType
        ], false);
    }
    ntpManagedByNameUpdated(name, description) {
        this.proxy.sendMessage(898517123, CustomizeChromePage_NtpManagedByNameUpdated_ParamsSpec.$, null, [
            name,
            description
        ], false);
    }
}
;
/**
 * An object which receives request messages for the CustomizeChromePage
 * mojom interface. Must be constructed over an object which implements that
 * interface.
 */
export class CustomizeChromePageReceiver {
    helper_internal_;
    $;
    onConnectionError;
    constructor(impl) {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(CustomizeChromePageRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.helper_internal_.registerHandler(1086394503, CustomizeChromePage_SetModulesSettings_ParamsSpec.$, null, impl.setModulesSettings.bind(impl), false);
        this.helper_internal_.registerHandler(121398922, CustomizeChromePage_SetMostVisitedSettings_ParamsSpec.$, null, impl.setMostVisitedSettings.bind(impl), false);
        this.helper_internal_.registerHandler(1995550158, CustomizeChromePage_SetToolsSettings_ParamsSpec.$, null, impl.setToolsSettings.bind(impl), false);
        this.helper_internal_.registerHandler(615030384, CustomizeChromePage_SetFooterSettings_ParamsSpec.$, null, impl.setFooterSettings.bind(impl), false);
        this.helper_internal_.registerHandler(413005665, CustomizeChromePage_SetTheme_ParamsSpec.$, null, impl.setTheme.bind(impl), false);
        this.helper_internal_.registerHandler(17100211, CustomizeChromePage_SetThemeEditable_ParamsSpec.$, null, impl.setThemeEditable.bind(impl), false);
        this.helper_internal_.registerHandler(499890328, CustomizeChromePage_ScrollToSection_ParamsSpec.$, null, impl.scrollToSection.bind(impl), false);
        this.helper_internal_.registerHandler(1445006748, CustomizeChromePage_AttachedTabStateUpdated_ParamsSpec.$, null, impl.attachedTabStateUpdated.bind(impl), false);
        this.helper_internal_.registerHandler(898517123, CustomizeChromePage_NtpManagedByNameUpdated_ParamsSpec.$, null, impl.ntpManagedByNameUpdated.bind(impl), false);
        this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
    }
}
export class CustomizeChromePage {
    static get $interfaceName() {
        return "side_panel.mojom.CustomizeChromePage";
    }
    /**
     * 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 CustomizeChromePageRemote;
        remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
        return remote;
    }
}
/**
 * An object which receives request messages for the CustomizeChromePage
 * 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 CustomizeChromePageCallbackRouter {
    helper_internal_;
    $;
    router_;
    setModulesSettings;
    setMostVisitedSettings;
    setToolsSettings;
    setFooterSettings;
    setTheme;
    setThemeEditable;
    scrollToSection;
    attachedTabStateUpdated;
    ntpManagedByNameUpdated;
    onConnectionError;
    constructor() {
        this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(CustomizeChromePageRemote);
        this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
        this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
        this.setModulesSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1086394503, CustomizeChromePage_SetModulesSettings_ParamsSpec.$, null, this.setModulesSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.setMostVisitedSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(121398922, CustomizeChromePage_SetMostVisitedSettings_ParamsSpec.$, null, this.setMostVisitedSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.setToolsSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1995550158, CustomizeChromePage_SetToolsSettings_ParamsSpec.$, null, this.setToolsSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.setFooterSettings =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(615030384, CustomizeChromePage_SetFooterSettings_ParamsSpec.$, null, this.setFooterSettings.createReceiverHandler(false /* expectsResponse */), false);
        this.setTheme =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(413005665, CustomizeChromePage_SetTheme_ParamsSpec.$, null, this.setTheme.createReceiverHandler(false /* expectsResponse */), false);
        this.setThemeEditable =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(17100211, CustomizeChromePage_SetThemeEditable_ParamsSpec.$, null, this.setThemeEditable.createReceiverHandler(false /* expectsResponse */), false);
        this.scrollToSection =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(499890328, CustomizeChromePage_ScrollToSection_ParamsSpec.$, null, this.scrollToSection.createReceiverHandler(false /* expectsResponse */), false);
        this.attachedTabStateUpdated =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(1445006748, CustomizeChromePage_AttachedTabStateUpdated_ParamsSpec.$, null, this.attachedTabStateUpdated.createReceiverHandler(false /* expectsResponse */), false);
        this.ntpManagedByNameUpdated =
            new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(this.router_);
        this.helper_internal_.registerHandler(898517123, CustomizeChromePage_NtpManagedByNameUpdated_ParamsSpec.$, null, this.ntpManagedByNameUpdated.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 BackgroundImageSpec = { $: {} };
export const ThirdPartyThemeInfoSpec = { $: {} };
export const ThemeSpec = { $: {} };
export const BackgroundCollectionSpec = { $: {} };
export const CollectionImageSpec = { $: {} };
export const ModuleSettingsSpec = { $: {} };
export const ManagementNoticeStateSpec = { $: {} };
export const CustomizeChromePageHandlerFactory_CreatePageHandler_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetMostVisitedSettings_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateMostVisitedSettings_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_GetBackgroundCollections_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_GetBackgroundCollections_ResponseParamsSpec = { $: {} };
export const CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ResponseParamsSpec = { $: {} };
export const CustomizeChromePageHandler_GetBackgroundImages_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_GetBackgroundImages_ResponseParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateModulesSettings_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateTheme_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateThemeEditable_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetDefaultColor_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetFollowDeviceTheme_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_RemoveBackgroundImage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_ChooseLocalCustomBackground_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_ChooseLocalCustomBackground_ResponseParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetBackgroundImage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetDailyRefreshCollectionId_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_OpenChromeWebStore_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_OpenChromeWebStoreHomePage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_OpenThirdPartyThemePage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_OpenChromeWebStoreCategoryPage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_OpenChromeWebStoreCollectionPage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_OpenNtpManagedByPage_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetModulesVisible_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetModuleDisabled_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetToolChipsVisible_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateToolChipsSettings_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateScrollToSection_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateAttachedTabState_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateNtpManagedByName_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_SetFooterVisible_ParamsSpec = { $: {} };
export const CustomizeChromePageHandler_UpdateFooterSettings_ParamsSpec = { $: {} };
export const CustomizeChromePage_SetModulesSettings_ParamsSpec = { $: {} };
export const CustomizeChromePage_SetMostVisitedSettings_ParamsSpec = { $: {} };
export const CustomizeChromePage_SetToolsSettings_ParamsSpec = { $: {} };
export const CustomizeChromePage_SetFooterSettings_ParamsSpec = { $: {} };
export const CustomizeChromePage_SetTheme_ParamsSpec = { $: {} };
export const CustomizeChromePage_SetThemeEditable_ParamsSpec = { $: {} };
export const CustomizeChromePage_ScrollToSection_ParamsSpec = { $: {} };
export const CustomizeChromePage_AttachedTabStateUpdated_ParamsSpec = { $: {} };
export const CustomizeChromePage_NtpManagedByNameUpdated_ParamsSpec = { $: {} };
mojo.internal.Struct(BackgroundImageSpec.$, 'BackgroundImage', [
    mojo.internal.StructField('url', 0, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('snapshotUrl', 8, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isUploadedImage', 16, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('localBackgroundId', 24, 0, mojoBase_mojom_TokenSpec.$, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('title', 32, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('collectionId', 40, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('dailyRefreshEnabled', 16, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 56],]);
mojo.internal.Struct(ThirdPartyThemeInfoSpec.$, 'ThirdPartyThemeInfo', [
    mojo.internal.StructField('id', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('name', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(ThemeSpec.$, 'Theme', [
    mojo.internal.StructField('backgroundImage', 0, 0, BackgroundImageSpec.$, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('thirdPartyThemeInfo', 8, 0, ThirdPartyThemeInfoSpec.$, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('backgroundColor', 16, 0, skia_mojom_SkColorSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('foregroundColor', 24, 0, skia_mojom_SkColorSpec.$, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('backgroundManagedByPolicy', 32, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('followDeviceTheme', 32, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 48],]);
mojo.internal.Struct(BackgroundCollectionSpec.$, 'BackgroundCollection', [
    mojo.internal.StructField('id', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('label', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('previewImageUrl', 16, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('imageVerified', 24, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(CollectionImageSpec.$, 'CollectionImage', [
    mojo.internal.StructField('attribution1', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('attribution2', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('attributionUrl', 16, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('imageUrl', 24, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('previewImageUrl', 32, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('collectionId', 40, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('imageVerified', 48, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 64],]);
mojo.internal.Struct(ModuleSettingsSpec.$, 'ModuleSettings', [
    mojo.internal.StructField('id', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('name', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('description', 16, 0, mojo.internal.String, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('enabled', 24, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('visible', 24, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(ManagementNoticeStateSpec.$, 'ManagementNoticeState', [
    mojo.internal.StructField('canBeShown', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('enabledByPolicy', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandlerFactory_CreatePageHandler_ParamsSpec.$, 'CustomizeChromePageHandlerFactory_CreatePageHandler_Params', [
    mojo.internal.StructField('page', 0, 0, mojo.internal.InterfaceProxy(CustomizeChromePageRemote), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('handler', 8, 0, mojo.internal.InterfaceRequest(CustomizeChromePageHandlerPendingReceiver), null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetMostVisitedSettings_ParamsSpec.$, 'CustomizeChromePageHandler_SetMostVisitedSettings_Params', [
    mojo.internal.StructField('shortcutsTypes', 0, 0, mojo.internal.Array(ntpTiles_mojom_TileTypeSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('shortcutsVisible', 8, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('personalShortcutsVisible', 8, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateMostVisitedSettings_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateMostVisitedSettings_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_GetBackgroundCollections_ParamsSpec.$, 'CustomizeChromePageHandler_GetBackgroundCollections_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_GetBackgroundCollections_ResponseParamsSpec.$, 'CustomizeChromePageHandler_GetBackgroundCollections_ResponseParams', [
    mojo.internal.StructField('collections', 0, 0, mojo.internal.Array(BackgroundCollectionSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ParamsSpec.$, 'CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_Params', [
    mojo.internal.StructField('collectionId', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ResponseParamsSpec.$, 'CustomizeChromePageHandler_GetReplacementCollectionPreviewImage_ResponseParams', [
    mojo.internal.StructField('previewImageUrl', 0, 0, url_mojom_UrlSpec.$, null, true /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_GetBackgroundImages_ParamsSpec.$, 'CustomizeChromePageHandler_GetBackgroundImages_Params', [
    mojo.internal.StructField('collectionId', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_GetBackgroundImages_ResponseParamsSpec.$, 'CustomizeChromePageHandler_GetBackgroundImages_ResponseParams', [
    mojo.internal.StructField('images', 0, 0, mojo.internal.Array(CollectionImageSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateModulesSettings_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateModulesSettings_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateTheme_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateTheme_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateThemeEditable_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateThemeEditable_Params', [
    mojo.internal.StructField('isThemeEditable', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetDefaultColor_ParamsSpec.$, 'CustomizeChromePageHandler_SetDefaultColor_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetFollowDeviceTheme_ParamsSpec.$, 'CustomizeChromePageHandler_SetFollowDeviceTheme_Params', [
    mojo.internal.StructField('follow', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_RemoveBackgroundImage_ParamsSpec.$, 'CustomizeChromePageHandler_RemoveBackgroundImage_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_ChooseLocalCustomBackground_ParamsSpec.$, 'CustomizeChromePageHandler_ChooseLocalCustomBackground_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_ChooseLocalCustomBackground_ResponseParamsSpec.$, 'CustomizeChromePageHandler_ChooseLocalCustomBackground_ResponseParams', [
    mojo.internal.StructField('success', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetBackgroundImage_ParamsSpec.$, 'CustomizeChromePageHandler_SetBackgroundImage_Params', [
    mojo.internal.StructField('attribution1', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('attribution2', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('attributionUrl', 16, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('imageUrl', 24, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('thumbnailUrl', 32, 0, url_mojom_UrlSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('collectionId', 40, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 56],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetDailyRefreshCollectionId_ParamsSpec.$, 'CustomizeChromePageHandler_SetDailyRefreshCollectionId_Params', [
    mojo.internal.StructField('collectionId', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_OpenChromeWebStore_ParamsSpec.$, 'CustomizeChromePageHandler_OpenChromeWebStore_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_OpenChromeWebStoreHomePage_ParamsSpec.$, 'CustomizeChromePageHandler_OpenChromeWebStoreHomePage_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_OpenThirdPartyThemePage_ParamsSpec.$, 'CustomizeChromePageHandler_OpenThirdPartyThemePage_Params', [
    mojo.internal.StructField('themeId', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_OpenChromeWebStoreCategoryPage_ParamsSpec.$, 'CustomizeChromePageHandler_OpenChromeWebStoreCategoryPage_Params', [
    mojo.internal.StructField('category', 0, 0, ChromeWebStoreCategorySpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_OpenChromeWebStoreCollectionPage_ParamsSpec.$, 'CustomizeChromePageHandler_OpenChromeWebStoreCollectionPage_Params', [
    mojo.internal.StructField('collection', 0, 0, ChromeWebStoreCollectionSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_OpenNtpManagedByPage_ParamsSpec.$, 'CustomizeChromePageHandler_OpenNtpManagedByPage_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetModulesVisible_ParamsSpec.$, 'CustomizeChromePageHandler_SetModulesVisible_Params', [
    mojo.internal.StructField('visible', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetModuleDisabled_ParamsSpec.$, 'CustomizeChromePageHandler_SetModuleDisabled_Params', [
    mojo.internal.StructField('moduleId', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('disabled', 8, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetToolChipsVisible_ParamsSpec.$, 'CustomizeChromePageHandler_SetToolChipsVisible_Params', [
    mojo.internal.StructField('visible', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateToolChipsSettings_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateToolChipsSettings_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateScrollToSection_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateScrollToSection_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateAttachedTabState_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateAttachedTabState_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateNtpManagedByName_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateNtpManagedByName_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePageHandler_SetFooterVisible_ParamsSpec.$, 'CustomizeChromePageHandler_SetFooterVisible_Params', [
    mojo.internal.StructField('visible', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePageHandler_UpdateFooterSettings_ParamsSpec.$, 'CustomizeChromePageHandler_UpdateFooterSettings_Params', [], [[0, 8],]);
mojo.internal.Struct(CustomizeChromePage_SetModulesSettings_ParamsSpec.$, 'CustomizeChromePage_SetModulesSettings_Params', [
    mojo.internal.StructField('modulesSettings', 0, 0, mojo.internal.Array(ModuleSettingsSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('managed', 8, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('visible', 8, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(CustomizeChromePage_SetMostVisitedSettings_ParamsSpec.$, 'CustomizeChromePage_SetMostVisitedSettings_Params', [
    mojo.internal.StructField('shortcutsTypes', 0, 0, mojo.internal.Array(ntpTiles_mojom_TileTypeSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('visible', 8, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('personalShortcutsVisible', 8, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('disabledShortcuts', 16, 0, mojo.internal.Array(ntpTiles_mojom_TileTypeSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(CustomizeChromePage_SetToolsSettings_ParamsSpec.$, 'CustomizeChromePage_SetToolsSettings_Params', [
    mojo.internal.StructField('visible', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePage_SetFooterSettings_ParamsSpec.$, 'CustomizeChromePage_SetFooterSettings_Params', [
    mojo.internal.StructField('visible', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('extensionPolicyEnabled', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('managementNoticeState', 8, 0, ManagementNoticeStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(CustomizeChromePage_SetTheme_ParamsSpec.$, 'CustomizeChromePage_SetTheme_Params', [
    mojo.internal.StructField('theme', 0, 0, ThemeSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePage_SetThemeEditable_ParamsSpec.$, 'CustomizeChromePage_SetThemeEditable_Params', [
    mojo.internal.StructField('isThemeEditable', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePage_ScrollToSection_ParamsSpec.$, 'CustomizeChromePage_ScrollToSection_Params', [
    mojo.internal.StructField('section', 0, 0, CustomizeChromeSectionSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePage_AttachedTabStateUpdated_ParamsSpec.$, 'CustomizeChromePage_AttachedTabStateUpdated_Params', [
    mojo.internal.StructField('ntpType', 0, 0, NewTabPageTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(CustomizeChromePage_NtpManagedByNameUpdated_ParamsSpec.$, 'CustomizeChromePage_NtpManagedByNameUpdated_Params', [
    mojo.internal.StructField('name', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('description', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
export const browserProxyFactory = new MojoBrowserProxyFactory(CustomizeChromePageHandlerRemote, CustomizeChromePageCallbackRouter, (remote, receiver) => CustomizeChromePageHandlerFactory.getRemote().createPageHandler(remote, receiver));
