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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 162753002: Center and change the aspect ratio for the experimental app list. [Win] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/app_list/app_list_positioner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 }, 1975 },
1976 #if defined(OS_ANDROID) 1976 #if defined(OS_ANDROID)
1977 { 1977 {
1978 "app-banners", 1978 "app-banners",
1979 IDS_FLAGS_DISABLE_APP_BANNERS_NAME, 1979 IDS_FLAGS_DISABLE_APP_BANNERS_NAME,
1980 IDS_FLAGS_DISABLE_APP_BANNERS_DESCRIPTION, 1980 IDS_FLAGS_DISABLE_APP_BANNERS_DESCRIPTION,
1981 kOsAndroid, 1981 kOsAndroid,
1982 SINGLE_VALUE_TYPE(switches::kDisableAppBanners) 1982 SINGLE_VALUE_TYPE(switches::kDisableAppBanners)
1983 }, 1983 },
1984 #endif 1984 #endif
1985 {
1986 "enable-experimental-app-list",
1987 IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_NAME,
1988 IDS_FLAGS_ENABLE_EXPERIMENTAL_APP_LIST_DESCRIPTION,
1989 kOsCrOS | kOsWin,
benwells 2014/02/14 03:03:12 Can we have it on Linux too? Mac should come soon
calamity 2014/02/17 00:13:06 Done. Will implement the actual centering in anoth
1990 SINGLE_VALUE_TYPE(app_list::switches::kEnableExperimentalAppList)
1991 },
1985 }; 1992 };
1986 1993
1987 const Experiment* experiments = kExperiments; 1994 const Experiment* experiments = kExperiments;
1988 size_t num_experiments = arraysize(kExperiments); 1995 size_t num_experiments = arraysize(kExperiments);
1989 1996
1990 // Stores and encapsulates the little state that about:flags has. 1997 // Stores and encapsulates the little state that about:flags has.
1991 class FlagsState { 1998 class FlagsState {
1992 public: 1999 public:
1993 FlagsState() : needs_restart_(false) {} 2000 FlagsState() : needs_restart_(false) {}
1994 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 2001 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2486 } 2493 }
2487 2494
2488 const Experiment* GetExperiments(size_t* count) { 2495 const Experiment* GetExperiments(size_t* count) {
2489 *count = num_experiments; 2496 *count = num_experiments;
2490 return experiments; 2497 return experiments;
2491 } 2498 }
2492 2499
2493 } // namespace testing 2500 } // namespace testing
2494 2501
2495 } // namespace about_flags 2502 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/app_list/app_list_positioner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698