// components/browser_apis/ui_controllers/toolbar/toolbar_ui_api_data_model.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 { EventDispositionFlagSpec as browserControlsApi_mojom_EventDispositionFlagSpec } from './browser_controls_api_data_model.mojom-webui.js';
import { ExtensionActionInfoSpec as extensionsBar_mojom_ExtensionActionInfoSpec } from './extensions_bar_data_model.mojom-webui.js';
import { IconHandleSpec as toolbarUiApi_mojom_IconHandleSpec } from './icon_handle.mojom-webui.js';
import { String16Spec as mojoBase_mojom_String16Spec } from '//resources/mojo/mojo/public/mojom/base/string16.mojom-webui.js';
import { TimeDeltaSpec as mojoBase_mojom_TimeDeltaSpec } from '//resources/mojo/mojo/public/mojom/base/time.mojom-webui.js';
import { RangeSpec as gfx_mojom_RangeSpec } from '//resources/mojo/ui/gfx/range/mojom/range.mojom-webui.js';
export const ContextMenuTypeSpec = { $: mojo.internal.Enum() };
export var ContextMenuType;
(function (ContextMenuType) {
    ContextMenuType[ContextMenuType["MIN_VALUE"] = 0] = "MIN_VALUE";
    ContextMenuType[ContextMenuType["MAX_VALUE"] = 36] = "MAX_VALUE";
    ContextMenuType[ContextMenuType["kUnspecified"] = 0] = "kUnspecified";
    ContextMenuType[ContextMenuType["kReload"] = 1] = "kReload";
    ContextMenuType[ContextMenuType["kSplitTabsAction"] = 2] = "kSplitTabsAction";
    ContextMenuType[ContextMenuType["kSplitTabsContext"] = 3] = "kSplitTabsContext";
    ContextMenuType[ContextMenuType["kBack"] = 4] = "kBack";
    ContextMenuType[ContextMenuType["kForward"] = 5] = "kForward";
    ContextMenuType[ContextMenuType["kHome"] = 6] = "kHome";
    ContextMenuType[ContextMenuType["kBatterySaver"] = 7] = "kBatterySaver";
    ContextMenuType[ContextMenuType["kPinnedActionNewIncognitoWindow"] = 8] = "kPinnedActionNewIncognitoWindow";
    ContextMenuType[ContextMenuType["kPinnedActionShowPasswordsBubbleOrPage"] = 9] = "kPinnedActionShowPasswordsBubbleOrPage";
    ContextMenuType[ContextMenuType["kPinnedActionShowPaymentsBubbleOrPage"] = 10] = "kPinnedActionShowPaymentsBubbleOrPage";
    ContextMenuType[ContextMenuType["kPinnedActionShowAddressesBubbleOrPage"] = 11] = "kPinnedActionShowAddressesBubbleOrPage";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowBookmarks"] = 12] = "kPinnedActionSidePanelShowBookmarks";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowReadingList"] = 13] = "kPinnedActionSidePanelShowReadingList";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowHistoryCluster"] = 14] = "kPinnedActionSidePanelShowHistoryCluster";
    ContextMenuType[ContextMenuType["kPinnedActionShowDownloads"] = 15] = "kPinnedActionShowDownloads";
    ContextMenuType[ContextMenuType["kPinnedActionClearBrowsingData"] = 16] = "kPinnedActionClearBrowsingData";
    ContextMenuType[ContextMenuType["kPinnedActionPrint"] = 17] = "kPinnedActionPrint";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowLensOverlayResults"] = 18] = "kPinnedActionSidePanelShowLensOverlayResults";
    ContextMenuType[ContextMenuType["kPinnedActionShowTranslate"] = 19] = "kPinnedActionShowTranslate";
    ContextMenuType[ContextMenuType["kPinnedActionQrCodeGenerator"] = 20] = "kPinnedActionQrCodeGenerator";
    ContextMenuType[ContextMenuType["kPinnedActionRouteMedia"] = 21] = "kPinnedActionRouteMedia";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowReadAnything"] = 22] = "kPinnedActionSidePanelShowReadAnything";
    ContextMenuType[ContextMenuType["kPinnedActionCopyUrl"] = 23] = "kPinnedActionCopyUrl";
    ContextMenuType[ContextMenuType["kPinnedActionSendTabToSelf"] = 24] = "kPinnedActionSendTabToSelf";
    ContextMenuType[ContextMenuType["kPinnedActionTaskManager"] = 25] = "kPinnedActionTaskManager";
    ContextMenuType[ContextMenuType["kPinnedActionDevTools"] = 26] = "kPinnedActionDevTools";
    ContextMenuType[ContextMenuType["kPinnedActionTabSearch"] = 27] = "kPinnedActionTabSearch";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowContextualTasks"] = 28] = "kPinnedActionSidePanelShowContextualTasks";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowLens"] = 29] = "kPinnedActionSidePanelShowLens";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowAboutThisSite"] = 30] = "kPinnedActionSidePanelShowAboutThisSite";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowCustomizeChrome"] = 31] = "kPinnedActionSidePanelShowCustomizeChrome";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowShoppingInsights"] = 32] = "kPinnedActionSidePanelShowShoppingInsights";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowMerchantTrust"] = 33] = "kPinnedActionSidePanelShowMerchantTrust";
    ContextMenuType[ContextMenuType["kPinnedActionSendSharedTabGroupFeedback"] = 34] = "kPinnedActionSendSharedTabGroupFeedback";
    ContextMenuType[ContextMenuType["kPinnedActionSidePanelShowComments"] = 35] = "kPinnedActionSidePanelShowComments";
    ContextMenuType[ContextMenuType["kAppMenu"] = 36] = "kAppMenu";
})(ContextMenuType || (ContextMenuType = {}));
export const SplitTabActiveLocationSpec = { $: mojo.internal.Enum() };
export var SplitTabActiveLocation;
(function (SplitTabActiveLocation) {
    SplitTabActiveLocation[SplitTabActiveLocation["MIN_VALUE"] = 0] = "MIN_VALUE";
    SplitTabActiveLocation[SplitTabActiveLocation["MAX_VALUE"] = 4] = "MAX_VALUE";
    SplitTabActiveLocation[SplitTabActiveLocation["kUnspecified"] = 0] = "kUnspecified";
    SplitTabActiveLocation[SplitTabActiveLocation["kStart"] = 1] = "kStart";
    SplitTabActiveLocation[SplitTabActiveLocation["kEnd"] = 2] = "kEnd";
    SplitTabActiveLocation[SplitTabActiveLocation["kTop"] = 3] = "kTop";
    SplitTabActiveLocation[SplitTabActiveLocation["kBottom"] = 4] = "kBottom";
})(SplitTabActiveLocation || (SplitTabActiveLocation = {}));
export const ToolbarButtonTypeSpec = { $: mojo.internal.Enum() };
export var ToolbarButtonType;
(function (ToolbarButtonType) {
    ToolbarButtonType[ToolbarButtonType["MIN_VALUE"] = 0] = "MIN_VALUE";
    ToolbarButtonType[ToolbarButtonType["MAX_VALUE"] = 2] = "MAX_VALUE";
    ToolbarButtonType[ToolbarButtonType["kUnspecified"] = 0] = "kUnspecified";
    ToolbarButtonType[ToolbarButtonType["kSplitTabs"] = 1] = "kSplitTabs";
    ToolbarButtonType[ToolbarButtonType["kHome"] = 2] = "kHome";
})(ToolbarButtonType || (ToolbarButtonType = {}));
export const AppMenuIconTypeSpec = { $: mojo.internal.Enum() };
export var AppMenuIconType;
(function (AppMenuIconType) {
    AppMenuIconType[AppMenuIconType["MIN_VALUE"] = 0] = "MIN_VALUE";
    AppMenuIconType[AppMenuIconType["MAX_VALUE"] = 2] = "MAX_VALUE";
    AppMenuIconType[AppMenuIconType["kNone"] = 0] = "kNone";
    AppMenuIconType[AppMenuIconType["kUpgradeNotification"] = 1] = "kUpgradeNotification";
    AppMenuIconType[AppMenuIconType["kGlobalError"] = 2] = "kGlobalError";
})(AppMenuIconType || (AppMenuIconType = {}));
export const AppMenuSeveritySpec = { $: mojo.internal.Enum() };
export var AppMenuSeverity;
(function (AppMenuSeverity) {
    AppMenuSeverity[AppMenuSeverity["MIN_VALUE"] = 0] = "MIN_VALUE";
    AppMenuSeverity[AppMenuSeverity["MAX_VALUE"] = 3] = "MAX_VALUE";
    AppMenuSeverity[AppMenuSeverity["kNone"] = 0] = "kNone";
    AppMenuSeverity[AppMenuSeverity["kLow"] = 1] = "kLow";
    AppMenuSeverity[AppMenuSeverity["kMedium"] = 2] = "kMedium";
    AppMenuSeverity[AppMenuSeverity["kHigh"] = 3] = "kHigh";
})(AppMenuSeverity || (AppMenuSeverity = {}));
export const AvatarToolbarButtonStateSpec = { $: mojo.internal.Enum() };
export var AvatarToolbarButtonState;
(function (AvatarToolbarButtonState) {
    AvatarToolbarButtonState[AvatarToolbarButtonState["MIN_VALUE"] = 0] = "MIN_VALUE";
    AvatarToolbarButtonState[AvatarToolbarButtonState["MAX_VALUE"] = 14] = "MAX_VALUE";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kGuestSession"] = 0] = "kGuestSession";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kIncognitoProfile"] = 1] = "kIncognitoProfile";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kExplicitTextShowing"] = 2] = "kExplicitTextShowing";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kOnSignin"] = 3] = "kOnSignin";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kShowIdentityName"] = 4] = "kShowIdentityName";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kSigninPending"] = 5] = "kSigninPending";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kSyncPaused"] = 6] = "kSyncPaused";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kUpgradeClientError"] = 7] = "kUpgradeClientError";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kPassphraseError"] = 8] = "kPassphraseError";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kBookmarksLimitExceeded"] = 9] = "kBookmarksLimitExceeded";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kSyncError"] = 10] = "kSyncError";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kPasskeysLockedError"] = 11] = "kPasskeysLockedError";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kPromo"] = 12] = "kPromo";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kManagement"] = 13] = "kManagement";
    AvatarToolbarButtonState[AvatarToolbarButtonState["kNormal"] = 14] = "kNormal";
})(AvatarToolbarButtonState || (AvatarToolbarButtonState = {}));
export const ContentSettingImageTypeSpec = { $: mojo.internal.Enum() };
export var ContentSettingImageType;
(function (ContentSettingImageType) {
    ContentSettingImageType[ContentSettingImageType["MIN_VALUE"] = 0] = "MIN_VALUE";
    ContentSettingImageType[ContentSettingImageType["MAX_VALUE"] = 21] = "MAX_VALUE";
    ContentSettingImageType[ContentSettingImageType["kCookies"] = 0] = "kCookies";
    ContentSettingImageType[ContentSettingImageType["kImages"] = 1] = "kImages";
    ContentSettingImageType[ContentSettingImageType["kJavaScript"] = 2] = "kJavaScript";
    ContentSettingImageType[ContentSettingImageType["kPopups"] = 5] = "kPopups";
    ContentSettingImageType[ContentSettingImageType["kGeolocation"] = 6] = "kGeolocation";
    ContentSettingImageType[ContentSettingImageType["kMixedScript"] = 7] = "kMixedScript";
    ContentSettingImageType[ContentSettingImageType["kProtocolHandlers"] = 8] = "kProtocolHandlers";
    ContentSettingImageType[ContentSettingImageType["kMediaStream"] = 9] = "kMediaStream";
    ContentSettingImageType[ContentSettingImageType["kAds"] = 10] = "kAds";
    ContentSettingImageType[ContentSettingImageType["kAutomaticDownloads"] = 11] = "kAutomaticDownloads";
    ContentSettingImageType[ContentSettingImageType["kMidiSysex"] = 12] = "kMidiSysex";
    ContentSettingImageType[ContentSettingImageType["kSound"] = 13] = "kSound";
    ContentSettingImageType[ContentSettingImageType["kFramebust"] = 14] = "kFramebust";
    ContentSettingImageType[ContentSettingImageType["kSensors"] = 16] = "kSensors";
    ContentSettingImageType[ContentSettingImageType["kClipboardReadWrite"] = 18] = "kClipboardReadWrite";
    ContentSettingImageType[ContentSettingImageType["kStorageAccess"] = 19] = "kStorageAccess";
    ContentSettingImageType[ContentSettingImageType["kNotifications"] = 21] = "kNotifications";
})(ContentSettingImageType || (ContentSettingImageType = {}));
export const PageActionIdSpec = { $: mojo.internal.Enum() };
export var PageActionId;
(function (PageActionId) {
    PageActionId[PageActionId["MIN_VALUE"] = 0] = "MIN_VALUE";
    PageActionId[PageActionId["MAX_VALUE"] = 32] = "MAX_VALUE";
    PageActionId[PageActionId["kActionAiMode"] = 0] = "kActionAiMode";
    PageActionId[PageActionId["kActionIndigo"] = 1] = "kActionIndigo";
    PageActionId[PageActionId["kActionMultistepFilter"] = 2] = "kActionMultistepFilter";
    PageActionId[PageActionId["kActionSidePanelShowLensOverlayResults"] = 3] = "kActionSidePanelShowLensOverlayResults";
    PageActionId[PageActionId["kActionLensOverlayHomework"] = 4] = "kActionLensOverlayHomework";
    PageActionId[PageActionId["kActionShowTranslate"] = 5] = "kActionShowTranslate";
    PageActionId[PageActionId["kActionShowMemorySaverChip"] = 6] = "kActionShowMemorySaverChip";
    PageActionId[PageActionId["kActionShowJsOptimizationsIcon"] = 7] = "kActionShowJsOptimizationsIcon";
    PageActionId[PageActionId["kActionRecordReplay"] = 8] = "kActionRecordReplay";
    PageActionId[PageActionId["kActionShowIntentPicker"] = 9] = "kActionShowIntentPicker";
    PageActionId[PageActionId["kActionZoomNormal"] = 10] = "kActionZoomNormal";
    PageActionId[PageActionId["kActionSidePanelShowReadAnything"] = 11] = "kActionSidePanelShowReadAnything";
    PageActionId[PageActionId["kActionOffersAndRewardsForPage"] = 12] = "kActionOffersAndRewardsForPage";
    PageActionId[PageActionId["kActionShowFileSystemAccess"] = 13] = "kActionShowFileSystemAccess";
    PageActionId[PageActionId["kActionInstallPwa"] = 14] = "kActionInstallPwa";
    PageActionId[PageActionId["kActionCommercePriceInsights"] = 15] = "kActionCommercePriceInsights";
    PageActionId[PageActionId["kActionCommerceDiscounts"] = 16] = "kActionCommerceDiscounts";
    PageActionId[PageActionId["kActionShowPasswordsBubbleOrPage"] = 17] = "kActionShowPasswordsBubbleOrPage";
    PageActionId[PageActionId["kActionShowCollaborationRecentActivity"] = 18] = "kActionShowCollaborationRecentActivity";
    PageActionId[PageActionId["kActionAutofillMandatoryReauth"] = 19] = "kActionAutofillMandatoryReauth";
    PageActionId[PageActionId["kActionFind"] = 20] = "kActionFind";
    PageActionId[PageActionId["kActionShowCookieControls"] = 21] = "kActionShowCookieControls";
    PageActionId[PageActionId["kActionShowAddressesBubbleOrPage"] = 22] = "kActionShowAddressesBubbleOrPage";
    PageActionId[PageActionId["kActionVirtualCardEnroll"] = 23] = "kActionVirtualCardEnroll";
    PageActionId[PageActionId["kActionFilledCardInformation"] = 24] = "kActionFilledCardInformation";
    PageActionId[PageActionId["kActionShowPaymentsBubbleOrPage"] = 25] = "kActionShowPaymentsBubbleOrPage";
    PageActionId[PageActionId["kActionSidePanelShowContextualTasks"] = 26] = "kActionSidePanelShowContextualTasks";
    PageActionId[PageActionId["kActionBookmarkThisTab"] = 27] = "kActionBookmarkThisTab";
    PageActionId[PageActionId["kActionFederation"] = 28] = "kActionFederation";
    PageActionId[PageActionId["kActionGlicContextualCueing"] = 29] = "kActionGlicContextualCueing";
    PageActionId[PageActionId["kActionAnchoredContextualCue"] = 30] = "kActionAnchoredContextualCue";
    PageActionId[PageActionId["kActionWebAuthnAmbientSignin"] = 31] = "kActionWebAuthnAmbientSignin";
    PageActionId[PageActionId["kActionAutofillPayment"] = 32] = "kActionAutofillPayment";
})(PageActionId || (PageActionId = {}));
export const PageActionTriggerSpec = { $: mojo.internal.Enum() };
export var PageActionTrigger;
(function (PageActionTrigger) {
    PageActionTrigger[PageActionTrigger["MIN_VALUE"] = 0] = "MIN_VALUE";
    PageActionTrigger[PageActionTrigger["MAX_VALUE"] = 2] = "MAX_VALUE";
    PageActionTrigger[PageActionTrigger["kMouse"] = 0] = "kMouse";
    PageActionTrigger[PageActionTrigger["kKeyboard"] = 1] = "kKeyboard";
    PageActionTrigger[PageActionTrigger["kGesture"] = 2] = "kGesture";
})(PageActionTrigger || (PageActionTrigger = {}));
export const OmniboxTextColorSpec = { $: mojo.internal.Enum() };
export var OmniboxTextColor;
(function (OmniboxTextColor) {
    OmniboxTextColor[OmniboxTextColor["MIN_VALUE"] = 0] = "MIN_VALUE";
    OmniboxTextColor[OmniboxTextColor["MAX_VALUE"] = 4] = "MAX_VALUE";
    OmniboxTextColor[OmniboxTextColor["kUnspecified"] = 0] = "kUnspecified";
    OmniboxTextColor[OmniboxTextColor["kOmniboxText"] = 1] = "kOmniboxText";
    OmniboxTextColor[OmniboxTextColor["kOmniboxTextDimmed"] = 2] = "kOmniboxTextDimmed";
    OmniboxTextColor[OmniboxTextColor["kOmniboxForegroundDisabled"] = 3] = "kOmniboxForegroundDisabled";
    OmniboxTextColor[OmniboxTextColor["kOmniboxSecurityChipDangerous"] = 4] = "kOmniboxSecurityChipDangerous";
})(OmniboxTextColor || (OmniboxTextColor = {}));
export const PinnedToolbarActionSpec = { $: mojo.internal.Enum() };
export var PinnedToolbarAction;
(function (PinnedToolbarAction) {
    PinnedToolbarAction[PinnedToolbarAction["MIN_VALUE"] = 0] = "MIN_VALUE";
    PinnedToolbarAction[PinnedToolbarAction["MAX_VALUE"] = 29] = "MAX_VALUE";
    PinnedToolbarAction[PinnedToolbarAction["kUnspecified"] = 0] = "kUnspecified";
    PinnedToolbarAction[PinnedToolbarAction["kNewIncognitoWindow"] = 1] = "kNewIncognitoWindow";
    PinnedToolbarAction[PinnedToolbarAction["kShowPasswordsBubbleOrPage"] = 2] = "kShowPasswordsBubbleOrPage";
    PinnedToolbarAction[PinnedToolbarAction["kShowPaymentsBubbleOrPage"] = 3] = "kShowPaymentsBubbleOrPage";
    PinnedToolbarAction[PinnedToolbarAction["kShowAddressesBubbleOrPage"] = 4] = "kShowAddressesBubbleOrPage";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowBookmarks"] = 5] = "kSidePanelShowBookmarks";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowReadingList"] = 6] = "kSidePanelShowReadingList";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowHistoryCluster"] = 7] = "kSidePanelShowHistoryCluster";
    PinnedToolbarAction[PinnedToolbarAction["kShowDownloads"] = 8] = "kShowDownloads";
    PinnedToolbarAction[PinnedToolbarAction["kClearBrowsingData"] = 9] = "kClearBrowsingData";
    PinnedToolbarAction[PinnedToolbarAction["kPrint"] = 10] = "kPrint";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowLensOverlayResults"] = 11] = "kSidePanelShowLensOverlayResults";
    PinnedToolbarAction[PinnedToolbarAction["kShowTranslate"] = 12] = "kShowTranslate";
    PinnedToolbarAction[PinnedToolbarAction["kQrCodeGenerator"] = 13] = "kQrCodeGenerator";
    PinnedToolbarAction[PinnedToolbarAction["kRouteMedia"] = 14] = "kRouteMedia";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowReadAnything"] = 15] = "kSidePanelShowReadAnything";
    PinnedToolbarAction[PinnedToolbarAction["kCopyUrl"] = 16] = "kCopyUrl";
    PinnedToolbarAction[PinnedToolbarAction["kSendTabToSelf"] = 17] = "kSendTabToSelf";
    PinnedToolbarAction[PinnedToolbarAction["kTaskManager"] = 18] = "kTaskManager";
    PinnedToolbarAction[PinnedToolbarAction["kDevTools"] = 19] = "kDevTools";
    PinnedToolbarAction[PinnedToolbarAction["kTabSearch"] = 20] = "kTabSearch";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowContextualTasks"] = 21] = "kSidePanelShowContextualTasks";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowLens"] = 22] = "kSidePanelShowLens";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowAboutThisSite"] = 23] = "kSidePanelShowAboutThisSite";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowCustomizeChrome"] = 24] = "kSidePanelShowCustomizeChrome";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowShoppingInsights"] = 25] = "kSidePanelShowShoppingInsights";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowMerchantTrust"] = 26] = "kSidePanelShowMerchantTrust";
    PinnedToolbarAction[PinnedToolbarAction["kSendSharedTabGroupFeedback"] = 27] = "kSendSharedTabGroupFeedback";
    PinnedToolbarAction[PinnedToolbarAction["kSidePanelShowComments"] = 28] = "kSidePanelShowComments";
    PinnedToolbarAction[PinnedToolbarAction["kDivider"] = 29] = "kDivider";
})(PinnedToolbarAction || (PinnedToolbarAction = {}));
export const LhsChipIdentifierSpec = { $: mojo.internal.Enum() };
export var LhsChipIdentifier;
(function (LhsChipIdentifier) {
    LhsChipIdentifier[LhsChipIdentifier["MIN_VALUE"] = 0] = "MIN_VALUE";
    LhsChipIdentifier[LhsChipIdentifier["MAX_VALUE"] = 3] = "MAX_VALUE";
    LhsChipIdentifier[LhsChipIdentifier["kUnspecified"] = 0] = "kUnspecified";
    LhsChipIdentifier[LhsChipIdentifier["kLocationIcon"] = 1] = "kLocationIcon";
    LhsChipIdentifier[LhsChipIdentifier["kPermissionIndicator"] = 2] = "kPermissionIndicator";
    LhsChipIdentifier[LhsChipIdentifier["kPermissionRequest"] = 3] = "kPermissionRequest";
})(LhsChipIdentifier || (LhsChipIdentifier = {}));
export const PermissionChipThemeSpec = { $: mojo.internal.Enum() };
export var PermissionChipTheme;
(function (PermissionChipTheme) {
    PermissionChipTheme[PermissionChipTheme["MIN_VALUE"] = 0] = "MIN_VALUE";
    PermissionChipTheme[PermissionChipTheme["MAX_VALUE"] = 6] = "MAX_VALUE";
    PermissionChipTheme[PermissionChipTheme["kUnspecified"] = 0] = "kUnspecified";
    PermissionChipTheme[PermissionChipTheme["kNormalVisibility"] = 1] = "kNormalVisibility";
    PermissionChipTheme[PermissionChipTheme["kLowVisibility"] = 2] = "kLowVisibility";
    PermissionChipTheme[PermissionChipTheme["kActivityIndicator"] = 3] = "kActivityIndicator";
    PermissionChipTheme[PermissionChipTheme["kInUseActivityIndicator"] = 4] = "kInUseActivityIndicator";
    PermissionChipTheme[PermissionChipTheme["kBlockedActivityIndicator"] = 5] = "kBlockedActivityIndicator";
    PermissionChipTheme[PermissionChipTheme["kOnSystemBlockedActivityIndicator"] = 6] = "kOnSystemBlockedActivityIndicator";
})(PermissionChipTheme || (PermissionChipTheme = {}));
export const PermissionPromptStyleSpec = { $: mojo.internal.Enum() };
export var PermissionPromptStyle;
(function (PermissionPromptStyle) {
    PermissionPromptStyle[PermissionPromptStyle["MIN_VALUE"] = 0] = "MIN_VALUE";
    PermissionPromptStyle[PermissionPromptStyle["MAX_VALUE"] = 4] = "MAX_VALUE";
    PermissionPromptStyle[PermissionPromptStyle["kUnspecified"] = 0] = "kUnspecified";
    PermissionPromptStyle[PermissionPromptStyle["kBubbleOnly"] = 1] = "kBubbleOnly";
    PermissionPromptStyle[PermissionPromptStyle["kChip"] = 2] = "kChip";
    PermissionPromptStyle[PermissionPromptStyle["kLocationBarRightIcon"] = 3] = "kLocationBarRightIcon";
    PermissionPromptStyle[PermissionPromptStyle["kQuietChip"] = 4] = "kQuietChip";
})(PermissionPromptStyle || (PermissionPromptStyle = {}));
export const PermissionActionSpec = { $: mojo.internal.Enum() };
export var PermissionAction;
(function (PermissionAction) {
    PermissionAction[PermissionAction["MIN_VALUE"] = 0] = "MIN_VALUE";
    PermissionAction[PermissionAction["MAX_VALUE"] = 6] = "MAX_VALUE";
    PermissionAction[PermissionAction["kUnspecified"] = 0] = "kUnspecified";
    PermissionAction[PermissionAction["kGranted"] = 1] = "kGranted";
    PermissionAction[PermissionAction["kDenied"] = 2] = "kDenied";
    PermissionAction[PermissionAction["kDismissed"] = 3] = "kDismissed";
    PermissionAction[PermissionAction["kIgnored"] = 4] = "kIgnored";
    PermissionAction[PermissionAction["kRevoked"] = 5] = "kRevoked";
    PermissionAction[PermissionAction["kGrantedOnce"] = 6] = "kGrantedOnce";
})(PermissionAction || (PermissionAction = {}));
export const SecurityLevelSpec = { $: mojo.internal.Enum() };
export var SecurityLevel;
(function (SecurityLevel) {
    SecurityLevel[SecurityLevel["MIN_VALUE"] = 0] = "MIN_VALUE";
    SecurityLevel[SecurityLevel["MAX_VALUE"] = 4] = "MAX_VALUE";
    SecurityLevel[SecurityLevel["kUnspecified"] = 0] = "kUnspecified";
    SecurityLevel[SecurityLevel["kNone"] = 1] = "kNone";
    SecurityLevel[SecurityLevel["kSecure"] = 2] = "kSecure";
    SecurityLevel[SecurityLevel["kDangerous"] = 3] = "kDangerous";
    SecurityLevel[SecurityLevel["kWarning"] = 4] = "kWarning";
})(SecurityLevel || (SecurityLevel = {}));
export const FocusRequestTargetSpec = { $: mojo.internal.Enum() };
export var FocusRequestTarget;
(function (FocusRequestTarget) {
    FocusRequestTarget[FocusRequestTarget["MIN_VALUE"] = 0] = "MIN_VALUE";
    FocusRequestTarget[FocusRequestTarget["MAX_VALUE"] = 4] = "MAX_VALUE";
    FocusRequestTarget[FocusRequestTarget["kUnspecified"] = 0] = "kUnspecified";
    FocusRequestTarget[FocusRequestTarget["kLocationBar"] = 1] = "kLocationBar";
    FocusRequestTarget[FocusRequestTarget["kLocationBarUserInitiated"] = 2] = "kLocationBarUserInitiated";
    FocusRequestTarget[FocusRequestTarget["kSearch"] = 3] = "kSearch";
    FocusRequestTarget[FocusRequestTarget["kAppMenu"] = 4] = "kAppMenu";
})(FocusRequestTarget || (FocusRequestTarget = {}));
export const BackForwardButtonStateSpec = { $: {} };
export const OmniboxActionFocusChangeSpec = { $: {} };
export const OmniboxActionTextInputSpec = { $: {} };
export const OmniboxActionKeySpec = { $: {} };
export const OmniboxActionMouseSpec = { $: {} };
export const ReloadControlStateSpec = { $: {} };
export const SplitTabsControlStateSpec = { $: {} };
export const BackForwardControlStateSpec = { $: {} };
export const HomeControlStateSpec = { $: {} };
export const AppMenuControlStateSpec = { $: {} };
export const AvatarControlStateSpec = { $: {} };
export const ContentSettingImageStateSpec = { $: {} };
export const PageActionStateSpec = { $: {} };
export const OmniboxTextPortionSpec = { $: {} };
export const OmniboxViewStateSpec = { $: {} };
export const LocationBarFlagsSpec = { $: {} };
export const SelectedKeywordStateSpec = { $: {} };
export const PinnedToolbarActionStateSpec = { $: {} };
export const LocationBarStateSpec = { $: {} };
export const PermissionChipStateSpec = { $: {} };
export const PermissionDashboardStateSpec = { $: {} };
export const SecurityChipAccessibilityStateSpec = { $: {} };
export const SecurityChipStateSpec = { $: {} };
export const LhsChipsStateSpec = { $: {} };
export const NavigationControlsStateSpec = { $: {} };
export const OmniboxActionSpec = { $: {} };
mojo.internal.Struct(BackForwardButtonStateSpec.$, 'BackForwardButtonState', [
    mojo.internal.StructField('enabled', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('shouldBeShown', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isContextMenuVisible', 0, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(OmniboxActionFocusChangeSpec.$, 'OmniboxActionFocusChange', [
    mojo.internal.StructField('hasFocus', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('requestClearKeyword', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('activateDefaultSearch', 0, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('startZeroSuggest', 0, 3, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('selection', 8, 0, gfx_mojom_RangeSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(OmniboxActionTextInputSpec.$, 'OmniboxActionTextInput', [
    mojo.internal.StructField('text', 0, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('inlineAutocompletion', 8, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('browserVersion', 16, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('uiVersion', 20, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('selection', 24, 0, gfx_mojom_RangeSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(OmniboxActionKeySpec.$, 'OmniboxActionKey', [
    mojo.internal.StructField('isKeyDown', 0, 0, mojo.internal.Bool, true, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('key', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('selection', 16, 0, gfx_mojom_RangeSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('modifiers', 24, 0, mojo.internal.Array(browserControlsApi_mojom_EventDispositionFlagSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(OmniboxActionMouseSpec.$, 'OmniboxActionMouse', [
    mojo.internal.StructField('isMouseDown', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('startZeroSuggest', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(ReloadControlStateSpec.$, 'ReloadControlState', [
    mojo.internal.StructField('doubleClickInterval', 0, 0, mojoBase_mojom_TimeDeltaSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('canShowMenu', 8, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isNavigationLoading', 8, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isContextMenuVisible', 8, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('stateToken', 12, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(SplitTabsControlStateSpec.$, 'SplitTabsControlState', [
    mojo.internal.StructField('isCurrentTabSplit', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('location', 4, 0, SplitTabActiveLocationSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isPinned', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isContextMenuVisible', 0, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(BackForwardControlStateSpec.$, 'BackForwardControlState', [
    mojo.internal.StructField('backButtonState', 0, 0, BackForwardButtonStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('forwardButtonState', 8, 0, BackForwardButtonStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('backButtonLeadingMargin', 16, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(HomeControlStateSpec.$, 'HomeControlState', [
    mojo.internal.StructField('shouldBeShown', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isContextMenuVisible', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(AppMenuControlStateSpec.$, 'AppMenuControlState', [
    mojo.internal.StructField('iconType', 0, 0, AppMenuIconTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('severity', 4, 0, AppMenuSeveritySpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('labelText', 8, 0, mojoBase_mojom_String16Spec.$, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibilityText', 16, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tooltip', 24, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isContextMenuVisible', 32, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('trailingMargin', 36, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 48],]);
mojo.internal.Struct(AvatarControlStateSpec.$, 'AvatarControlState', [
    mojo.internal.StructField('state', 0, 0, AvatarToolbarButtonStateSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('icon', 8, 0, toolbarUiApi_mojom_IconHandleSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('text', 16, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tooltip', 24, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibilityName', 32, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibilityDescription', 40, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('enabled', 4, 0, mojo.internal.Bool, true, false /* nullable */, 0, undefined, undefined),
], [[0, 56],]);
mojo.internal.Struct(ContentSettingImageStateSpec.$, 'ContentSettingImageState', [
    mojo.internal.StructField('type', 0, 0, ContentSettingImageTypeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibilityString', 8, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tooltip', 16, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isBlocked', 4, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isBubbleVisible', 4, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('shouldRunAnimation', 4, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('explanatoryString', 24, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(PageActionStateSpec.$, 'PageActionState', [
    mojo.internal.StructField('pageActionId', 0, 0, PageActionIdSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibleName', 8, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tooltipText', 16, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(OmniboxTextPortionSpec.$, 'OmniboxTextPortion', [
    mojo.internal.StructField('text', 0, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('strikethrough', 8, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('color', 12, 0, OmniboxTextColorSpec.$, 0, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(OmniboxViewStateSpec.$, 'OmniboxViewState', [
    mojo.internal.StructField('uiVersion', 0, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('browserVersion', 4, 0, mojo.internal.Uint32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('formattedFullUrl', 8, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('textPieces', 16, 0, mojo.internal.Array(OmniboxTextPortionSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('inlineAutocompletion', 24, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('additionalText', 32, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('selection', 40, 0, gfx_mojom_RangeSpec.$, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('textIsUrl', 48, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('userInputInProgress', 48, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 64],]);
mojo.internal.Struct(LocationBarFlagsSpec.$, 'LocationBarFlags', [
    mojo.internal.StructField('userInputInProgress', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('popupOpen', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 16],]);
mojo.internal.Struct(SelectedKeywordStateSpec.$, 'SelectedKeywordState', [
    mojo.internal.StructField('shortName', 0, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('fullName', 8, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('icon', 16, 0, toolbarUiApi_mojom_IconHandleSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(PinnedToolbarActionStateSpec.$, 'PinnedToolbarActionState', [
    mojo.internal.StructField('action', 0, 0, PinnedToolbarActionSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('highlighted', 4, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('enabled', 4, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('activated', 4, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tooltip', 8, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibilityText', 16, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('elementId', 24, 0, mojo.internal.String, null, true /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('icon', 32, 0, toolbarUiApi_mojom_IconHandleSpec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 48],]);
mojo.internal.Struct(LocationBarStateSpec.$, 'LocationBarState', [
    mojo.internal.StructField('omniboxViewState', 0, 0, OmniboxViewStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('locationBarFlags', 8, 0, LocationBarFlagsSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('contentSettingImageStates', 16, 0, mojo.internal.Array(ContentSettingImageStateSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('pageActionStates', 24, 0, mojo.internal.Array(PageActionStateSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('lhsChipsState', 32, 0, LhsChipsStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('selectedKeyword', 40, 0, SelectedKeywordStateSpec.$, null, true /* nullable */, 0, undefined, undefined),
], [[0, 56],]);
mojo.internal.Struct(PermissionChipStateSpec.$, 'PermissionChipState', [
    mojo.internal.StructField('isVisible', 0, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('iconName', 8, 0, mojo.internal.String, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('message', 16, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('tooltip', 24, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('theme', 4, 0, PermissionChipThemeSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('userDecision', 32, 0, PermissionActionSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('shouldShowBlockedIcon', 0, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('promptStyle', 36, 0, PermissionPromptStyleSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isFullyCollapsed', 0, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibilityName', 40, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 56],]);
mojo.internal.Struct(PermissionDashboardStateSpec.$, 'PermissionDashboardState', [
    mojo.internal.StructField('indicatorChip', 0, 0, PermissionChipStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('requestChip', 8, 0, PermissionChipStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isDividerVisible', 16, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(SecurityChipAccessibilityStateSpec.$, 'SecurityChipAccessibilityState', [
    mojo.internal.StructField('label', 0, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('description', 8, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
], [[0, 24],]);
mojo.internal.Struct(SecurityChipStateSpec.$, 'SecurityChipState', [
    mojo.internal.StructField('icon', 0, 0, toolbarUiApi_mojom_IconHandleSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('securityLevel', 8, 0, SecurityLevelSpec.$, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('text', 16, 0, mojoBase_mojom_String16Spec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('accessibilityState', 24, 0, SecurityChipAccessibilityStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isClickable', 12, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isTextDangerous', 12, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('isVisible', 12, 2, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 40],]);
mojo.internal.Struct(LhsChipsStateSpec.$, 'LhsChipsState', [
    mojo.internal.StructField('securityChip', 0, 0, SecurityChipStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('activityIndicators', 8, 0, mojo.internal.Array(ContentSettingImageStateSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('permissionDashboard', 16, 0, PermissionDashboardStateSpec.$, null, true /* nullable */, 0, undefined, undefined),
], [[0, 32],]);
mojo.internal.Struct(NavigationControlsStateSpec.$, 'NavigationControlsState', [
    mojo.internal.StructField('reloadControlState', 0, 0, ReloadControlStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('splitTabsControlState', 8, 0, SplitTabsControlStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('backForwardControlState', 16, 0, BackForwardControlStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('homeControlState', 24, 0, HomeControlStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('appMenuControlState', 32, 0, AppMenuControlStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('avatarControlState', 40, 0, AvatarControlStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('batterySaverButtonVisible', 48, 0, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('locationBarState', 56, 0, LocationBarStateSpec.$, null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('extensionsState', 64, 0, mojo.internal.Array(extensionsBar_mojom_ExtensionActionInfoSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('pinnedToolbarActionsState', 72, 0, mojo.internal.Array(PinnedToolbarActionStateSpec.$, false), null, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('layoutConstantsVersion', 52, 0, mojo.internal.Int32, 0, false /* nullable */, 0, undefined, undefined),
    mojo.internal.StructField('touchUi', 48, 1, mojo.internal.Bool, false, false /* nullable */, 0, undefined, undefined),
], [[0, 88],]);
mojo.internal.Union(OmniboxActionSpec.$, 'OmniboxAction', {
    'focusChange': {
        'ordinal': 0,
        'type': OmniboxActionFocusChangeSpec.$,
    },
    'textInput': {
        'ordinal': 1,
        'type': OmniboxActionTextInputSpec.$,
    },
    'key': {
        'ordinal': 2,
        'type': OmniboxActionKeySpec.$,
    },
    'mouse': {
        'ordinal': 3,
        'type': OmniboxActionMouseSpec.$,
    },
});
export var OmniboxActionFieldTags;
(function (OmniboxActionFieldTags) {
    OmniboxActionFieldTags[OmniboxActionFieldTags["FOCUS_CHANGE"] = 0] = "FOCUS_CHANGE";
    OmniboxActionFieldTags[OmniboxActionFieldTags["TEXT_INPUT"] = 1] = "TEXT_INPUT";
    OmniboxActionFieldTags[OmniboxActionFieldTags["KEY"] = 2] = "KEY";
    OmniboxActionFieldTags[OmniboxActionFieldTags["MOUSE"] = 3] = "MOUSE";
})(OmniboxActionFieldTags || (OmniboxActionFieldTags = {}));
export function whichOmniboxAction(u) {
    if (u.focusChange !== null && u.focusChange !== undefined) {
        return OmniboxActionFieldTags.FOCUS_CHANGE;
    }
    if (u.textInput !== null && u.textInput !== undefined) {
        return OmniboxActionFieldTags.TEXT_INPUT;
    }
    if (u.key !== null && u.key !== undefined) {
        return OmniboxActionFieldTags.KEY;
    }
    if (u.mouse !== null && u.mouse !== undefined) {
        return OmniboxActionFieldTags.MOUSE;
    }
    throw new Error("no union field has been set, this is an illegal state");
}
