Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: ui/app_list/app_list_switches.h

Issue 1861233003: Prepare for building with enable_app_list=0 on Desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drop patchset dependency, rebase to master Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_APP_LIST_SWITCHES_H_ 5 #ifndef UI_APP_LIST_APP_LIST_SWITCHES_H_
6 #define UI_APP_LIST_APP_LIST_SWITCHES_H_ 6 #define UI_APP_LIST_APP_LIST_SWITCHES_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/app_list/app_list_export.h" 9 #include "ui/app_list/app_list_export.h"
10 10
11 namespace app_list { 11 namespace app_list {
12 namespace switches { 12 namespace switches {
13 13
14 // Please keep these flags sorted (but keep enable/disable pairs together). 14 // Please keep these flags sorted (but keep enable/disable pairs together).
15 APP_LIST_EXPORT extern const char kCustomLauncherPage[]; 15 APP_LIST_EXPORT extern const char kCustomLauncherPage[];
16 APP_LIST_EXPORT extern const char kDisableAppListDismissOnBlur[]; 16 APP_LIST_EXPORT extern const char kDisableAppListDismissOnBlur[];
17 APP_LIST_EXPORT extern const char kEnableAppList[]; 17 APP_LIST_EXPORT extern const char kEnableAppList[];
18 APP_LIST_EXPORT extern const char kEnableCenteredAppList[]; 18 APP_LIST_EXPORT extern const char kEnableCenteredAppList[];
19 APP_LIST_EXPORT extern const char kEnableExperimentalAppList[]; 19 APP_LIST_EXPORT extern const char kEnableExperimentalAppList[];
20 APP_LIST_EXPORT extern const char kDisableExperimentalAppList[]; 20 APP_LIST_EXPORT extern const char kDisableExperimentalAppList[];
21 APP_LIST_EXPORT extern const char kEnableNewAppListMixer[]; 21 APP_LIST_EXPORT extern const char kEnableNewAppListMixer[];
22 APP_LIST_EXPORT extern const char kDisableNewAppListMixer[]; 22 APP_LIST_EXPORT extern const char kDisableNewAppListMixer[];
23 APP_LIST_EXPORT extern const char kEnableSyncAppList[]; 23 APP_LIST_EXPORT extern const char kEnableSyncAppList[];
24 APP_LIST_EXPORT extern const char kDisableSyncAppList[]; 24 APP_LIST_EXPORT extern const char kDisableSyncAppList[];
25 APP_LIST_EXPORT extern const char kEnableDriveSearchInChromeLauncher[]; 25 APP_LIST_EXPORT extern const char kEnableDriveSearchInChromeLauncher[];
26 APP_LIST_EXPORT extern const char kDisableDriveSearchInChromeLauncher[]; 26 APP_LIST_EXPORT extern const char kDisableDriveSearchInChromeLauncher[];
27 APP_LIST_EXPORT extern const char kResetAppListInstallState[]; 27 APP_LIST_EXPORT extern const char kResetAppListInstallState[];
28 28
29 #if defined(OS_MACOSX)
30 APP_LIST_EXPORT extern const char kEnableMacViewsAppList[];
31 #endif
32
33 bool APP_LIST_EXPORT IsAppListSyncEnabled(); 29 bool APP_LIST_EXPORT IsAppListSyncEnabled();
34 30
35 bool APP_LIST_EXPORT IsFolderUIEnabled(); 31 bool APP_LIST_EXPORT IsFolderUIEnabled();
36 32
37 bool APP_LIST_EXPORT IsVoiceSearchEnabled(); 33 bool APP_LIST_EXPORT IsVoiceSearchEnabled();
38 34
39 bool APP_LIST_EXPORT IsExperimentalAppListEnabled(); 35 bool APP_LIST_EXPORT IsExperimentalAppListEnabled();
40 36
41 // Determines whether either command-line switch was given for enabling the 37 // Determines whether either command-line switch was given for enabling the
42 // centered app list position. Do not use this when positioning the app list; 38 // centered app list position. Do not use this when positioning the app list;
43 // instead use AppListViewDelegate::ShouldCenterWindow. It checks a superset of 39 // instead use AppListViewDelegate::ShouldCenterWindow. It checks a superset of
44 // the conditions that trigger the position. 40 // the conditions that trigger the position.
45 bool APP_LIST_EXPORT IsCenteredAppListEnabled(); 41 bool APP_LIST_EXPORT IsCenteredAppListEnabled();
46 42
47 // Determines whether the app list should not be dismissed on focus loss. 43 // Determines whether the app list should not be dismissed on focus loss.
48 bool APP_LIST_EXPORT ShouldNotDismissOnBlur(); 44 bool APP_LIST_EXPORT ShouldNotDismissOnBlur();
49 45
50 bool APP_LIST_EXPORT IsDriveAppsInAppListEnabled(); 46 bool APP_LIST_EXPORT IsDriveAppsInAppListEnabled();
51 47
52 bool APP_LIST_EXPORT IsDriveSearchInChromeLauncherEnabled(); 48 bool APP_LIST_EXPORT IsDriveSearchInChromeLauncherEnabled();
53 49
54 #if defined(OS_MACOSX)
55 bool APP_LIST_EXPORT IsMacViewsAppListEnabled();
56 #endif
57
58 } // namespace switches 50 } // namespace switches
59 } // namespace app_list 51 } // namespace app_list
60 52
61 #endif // UI_APP_LIST_APP_LIST_SWITCHES_H_ 53 #endif // UI_APP_LIST_APP_LIST_SWITCHES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698