Roll src/third_party/WebKit fc49b4d:b780d1b (svn 189364:189376)
[chromium-blink-merge.git] / ui / app_list / app_list_switches.h
blob7585f60fa4bcc05d0f2dd5ef2f50ec778d156ef3
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"
11 namespace app_list {
12 namespace switches {
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[];
24 #if defined(OS_MACOSX)
25 APP_LIST_EXPORT extern const char kEnableMacViewsAppList[];
26 #endif
28 bool APP_LIST_EXPORT IsAppListSyncEnabled();
30 bool APP_LIST_EXPORT IsFolderUIEnabled();
32 bool APP_LIST_EXPORT IsVoiceSearchEnabled();
34 bool APP_LIST_EXPORT IsAppInfoEnabled();
36 bool APP_LIST_EXPORT IsExperimentalAppListEnabled();
38 // Determines whether either command-line switch was given for enabling the
39 // centered app list position. Do not use this when positioning the app list;
40 // instead use AppListViewDelegate::ShouldCenterWindow. It checks a superset of
41 // the conditions that trigger the position.
42 bool APP_LIST_EXPORT IsCenteredAppListEnabled();
44 // Determines whether the app list should not be dismissed on focus loss.
45 bool APP_LIST_EXPORT ShouldNotDismissOnBlur();
47 bool APP_LIST_EXPORT IsDriveAppsInAppListEnabled();
49 #if defined(OS_MACOSX)
50 bool APP_LIST_EXPORT IsMacViewsAppListListEnabled();
51 #endif
53 } // namespace switches
54 } // namespace app_list
56 #endif // UI_APP_LIST_APP_LIST_SWITCHES_H_