blob: 89f99d8e565c636adadc313ca46edc3db14be8fa [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* The number of apps displayed in app list in the main view before expanding.
* @const {number}
*/
const NUMBER_OF_APPS_DISPLAYED_DEFAULT = 4;
/**
* The maximum number of apps' titles previewed in notification sublabel.
* @const {number}
*/
const APP_LIST_PREVIEW_APP_TITLES = 3;
/**
* Enumeration of the different subpage types within the app management page.
* @enum {number}
* @const
*/
const PageType = {
MAIN: 0,
DETAIL: 1,
NOTIFICATIONS: 2,
};
/**
* A number representation of a Bool. Permission values should be of this type
* for permissions with value type PermissionValueType.kBool.
* @enum {number}
* @const
*/
const Bool = {
kFalse: 0,
kTrue: 1,
};
const PwaPermissionType = appManagement.mojom.PwaPermissionType;
const ArcPermissionType = appManagement.mojom.ArcPermissionType;
const AppType = apps.mojom.AppType;
const PermissionValueType = apps.mojom.PermissionValueType;
const TriState = apps.mojom.TriState;
const OptionalBool = apps.mojom.OptionalBool;