Performance histograms for extension content verification
[chromium-blink-merge.git] / ui / app_list / app_list_switches.h
blobcb39ad6a9191dc445c9d9bc5a4be014b66b216d8
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 "ui/app_list/app_list_export.h"
10 namespace app_list {
11 namespace switches {
13 // Please keep these flags sorted.
14 APP_LIST_EXPORT extern const char kDisableAppInfo[];
15 APP_LIST_EXPORT extern const char kDisableSyncAppList[];
16 APP_LIST_EXPORT extern const char kDisableVoiceSearch[];
17 APP_LIST_EXPORT extern const char kEnableCenteredAppList[];
18 APP_LIST_EXPORT extern const char kEnableDriveAppsInAppList[];
19 APP_LIST_EXPORT extern const char kEnableExperimentalAppList[];
20 APP_LIST_EXPORT extern const char kEnableHotwordAlwaysOn[];
21 APP_LIST_EXPORT extern const char kEnableSyncAppList[];
23 bool APP_LIST_EXPORT IsAppListSyncEnabled();
25 bool APP_LIST_EXPORT IsFolderUIEnabled();
27 bool APP_LIST_EXPORT IsVoiceSearchEnabled();
29 bool APP_LIST_EXPORT IsAppInfoEnabled();
31 bool APP_LIST_EXPORT IsExperimentalAppListEnabled();
33 // Determines whether either command-line switch was given for enabling the
34 // centered app list position. Do not use this when positioning the app list;
35 // instead use AppListViewDelegate::ShouldCenterWindow. It checks a superset of
36 // the conditions that trigger the position.
37 bool APP_LIST_EXPORT IsCenteredAppListEnabled();
39 bool APP_LIST_EXPORT IsDriveAppsInAppListEnabled();
41 } // namespace switches
42 } // namespace app_list
44 #endif // UI_APP_LIST_APP_LIST_SWITCHES_H_