1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef UI_APP_LIST_APP_LIST_SWITCHES_H_
6#define UI_APP_LIST_APP_LIST_SWITCHES_H_
7
8#include "ui/app_list/app_list_export.h"
9
10namespace app_list {
11namespace switches {
12
13// Please keep these flags sorted.
14APP_LIST_EXPORT extern const char kDisableAppInfo[];
15APP_LIST_EXPORT extern const char kDisableDriveAppsInAppList[];
16APP_LIST_EXPORT extern const char kDisableSyncAppList[];
17APP_LIST_EXPORT extern const char kEnableCenteredAppList[];
18APP_LIST_EXPORT extern const char kEnableExperimentalAppList[];
19APP_LIST_EXPORT extern const char kEnableHotwordAlwaysOn[];
20APP_LIST_EXPORT extern const char kEnableSyncAppList[];
21
22bool APP_LIST_EXPORT IsAppListSyncEnabled();
23
24bool APP_LIST_EXPORT IsFolderUIEnabled();
25
26bool APP_LIST_EXPORT IsVoiceSearchEnabled();
27
28bool APP_LIST_EXPORT IsAppInfoEnabled();
29
30bool APP_LIST_EXPORT IsExperimentalAppListEnabled();
31
32// Determines whether either command-line switch was given for enabling the
33// centered app list position. Do not use this when positioning the app list;
34// instead use AppListViewDelegate::ShouldCenterWindow. It checks a superset of
35// the conditions that trigger the position.
36bool APP_LIST_EXPORT IsCenteredAppListEnabled();
37
38bool APP_LIST_EXPORT IsDriveAppsInAppListEnabled();
39
40}  // namespace switches
41}  // namespace app_list
42
43#endif  // UI_APP_LIST_APP_LIST_SWITCHES_H_
44