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.
5 #ifndef UI_APP_LIST_APP_LIST_SWITCHES_H_
6 #define UI_APP_LIST_APP_LIST_SWITCHES_H_
8 #include "build/build_config.h"
9 #include "ui/app_list/app_list_export.h"
14 // Please keep these flags sorted.
15 APP_LIST_EXPORT
extern const char kCustomLauncherPage
[];
16 APP_LIST_EXPORT
extern const char kDisableAppListDismissOnBlur
[];
17 APP_LIST_EXPORT
extern const char kDisableDriveAppsInAppList
[];
18 APP_LIST_EXPORT
extern const char kDisableSyncAppList
[];
19 APP_LIST_EXPORT
extern const char kEnableCenteredAppList
[];
20 APP_LIST_EXPORT
extern const char kEnableExperimentalAppList
[];
21 APP_LIST_EXPORT
extern const char kDisableExperimentalAppList
[];
22 APP_LIST_EXPORT
extern const char kEnableSyncAppList
[];
23 APP_LIST_EXPORT
extern const char kEnableLauncherSearchProviderApi
[];
25 #if defined(OS_MACOSX)
26 APP_LIST_EXPORT
extern const char kEnableMacViewsAppList
[];
29 bool APP_LIST_EXPORT
IsAppListSyncEnabled();
31 bool APP_LIST_EXPORT
IsFolderUIEnabled();
33 bool APP_LIST_EXPORT
IsVoiceSearchEnabled();
35 bool APP_LIST_EXPORT
IsExperimentalAppListEnabled();
37 // Determines whether either command-line switch was given for enabling the
38 // centered app list position. Do not use this when positioning the app list;
39 // instead use AppListViewDelegate::ShouldCenterWindow. It checks a superset of
40 // the conditions that trigger the position.
41 bool APP_LIST_EXPORT
IsCenteredAppListEnabled();
43 // Determines whether the app list should not be dismissed on focus loss.
44 bool APP_LIST_EXPORT
ShouldNotDismissOnBlur();
46 bool APP_LIST_EXPORT
IsDriveAppsInAppListEnabled();
48 bool APP_LIST_EXPORT
IsLauncherSearchProviderApiEnabled();
50 #if defined(OS_MACOSX)
51 bool APP_LIST_EXPORT
IsMacViewsAppListListEnabled();
54 } // namespace switches
55 } // namespace app_list
57 #endif // UI_APP_LIST_APP_LIST_SWITCHES_H_