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

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

Issue 2342773002: Removed experimental app list flags. Experimental is now the only way. (Closed)
Patch Set: Respond to nit. Created 4 years, 3 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[];
19 APP_LIST_EXPORT extern const char kEnableExperimentalAppList[];
20 APP_LIST_EXPORT extern const char kDisableExperimentalAppList[];
21 APP_LIST_EXPORT extern const char kEnableSyncAppList[]; 18 APP_LIST_EXPORT extern const char kEnableSyncAppList[];
22 APP_LIST_EXPORT extern const char kDisableSyncAppList[]; 19 APP_LIST_EXPORT extern const char kDisableSyncAppList[];
23 APP_LIST_EXPORT extern const char kEnableDriveSearchInChromeLauncher[]; 20 APP_LIST_EXPORT extern const char kEnableDriveSearchInChromeLauncher[];
24 APP_LIST_EXPORT extern const char kDisableDriveSearchInChromeLauncher[]; 21 APP_LIST_EXPORT extern const char kDisableDriveSearchInChromeLauncher[];
25 APP_LIST_EXPORT extern const char kResetAppListInstallState[]; 22 APP_LIST_EXPORT extern const char kResetAppListInstallState[];
26 23
27 bool APP_LIST_EXPORT IsAppListSyncEnabled(); 24 bool APP_LIST_EXPORT IsAppListSyncEnabled();
28 25
29 bool APP_LIST_EXPORT IsFolderUIEnabled(); 26 bool APP_LIST_EXPORT IsFolderUIEnabled();
30 27
31 bool APP_LIST_EXPORT IsVoiceSearchEnabled(); 28 bool APP_LIST_EXPORT IsVoiceSearchEnabled();
32 29
30 // Deprecated. These always return true.
31 // TODO(mgiuca): Remove (https://crbug.com/531059).
33 bool APP_LIST_EXPORT IsExperimentalAppListEnabled(); 32 bool APP_LIST_EXPORT IsExperimentalAppListEnabled();
34
35 // Determines whether either command-line switch was given for enabling the
36 // centered app list position. Do not use this when positioning the app list;
37 // instead use AppListViewDelegate::ShouldCenterWindow. It checks a superset of
38 // the conditions that trigger the position.
39 bool APP_LIST_EXPORT IsCenteredAppListEnabled(); 33 bool APP_LIST_EXPORT IsCenteredAppListEnabled();
40 34
41 // Determines whether the app list should not be dismissed on focus loss. 35 // Determines whether the app list should not be dismissed on focus loss.
42 bool APP_LIST_EXPORT ShouldNotDismissOnBlur(); 36 bool APP_LIST_EXPORT ShouldNotDismissOnBlur();
43 37
44 bool APP_LIST_EXPORT IsDriveAppsInAppListEnabled(); 38 bool APP_LIST_EXPORT IsDriveAppsInAppListEnabled();
45 39
46 bool APP_LIST_EXPORT IsDriveSearchInChromeLauncherEnabled(); 40 bool APP_LIST_EXPORT IsDriveSearchInChromeLauncherEnabled();
47 41
48 } // namespace switches 42 } // namespace switches
49 } // namespace app_list 43 } // namespace app_list
50 44
51 #endif // UI_APP_LIST_APP_LIST_SWITCHES_H_ 45 #endif // UI_APP_LIST_APP_LIST_SWITCHES_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/webstore/webstore_provider_browsertest.cc ('k') | ui/app_list/app_list_switches.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698