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

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

Issue 687323002: Experiment with emulating mouse hover with touch hover capable devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 #endif 1992 #endif
1993 #if defined(OS_CHROMEOS) 1993 #if defined(OS_CHROMEOS)
1994 { 1994 {
1995 "enable-remote-assistance", 1995 "enable-remote-assistance",
1996 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_NAME, 1996 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_NAME,
1997 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_DESCRIPTION, 1997 IDS_FLAGS_ENABLE_REMOTE_ASSISTANCE_DESCRIPTION,
1998 kOsCrOS, 1998 kOsCrOS,
1999 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance) 1999 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance)
2000 }, 2000 },
2001 #endif // defined(OS_CHROMEOS) 2001 #endif // defined(OS_CHROMEOS)
2002 {
2003 "enable-support-for-hover-capable-touchscreens",
tdresser 2014/10/30 13:00:05 This is more verbose than necessary. What about -
2004 IDS_FLAGS_ENABLE_SUPPORT_HOVER_CAPABLE_TOUCHSCREENS_NAME,
tdresser 2014/10/30 13:00:05 This could probably also be made more concise. EN
2005 IDS_FLAGS_ENABLE_SUPPORT_HOVER_CAPABLE_TOUCHSCREENS_DESCRIPTION,
2006 kOsAndroid,
2007 SINGLE_VALUE_TYPE("enable-support-for-hover-capable-touchscreens")
2008 },
2009
2002 // NOTE: Adding new command-line switches requires adding corresponding 2010 // NOTE: Adding new command-line switches requires adding corresponding
2003 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2011 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2004 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2012 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2005 }; 2013 };
2006 2014
2007 const Experiment* experiments = kExperiments; 2015 const Experiment* experiments = kExperiments;
2008 size_t num_experiments = arraysize(kExperiments); 2016 size_t num_experiments = arraysize(kExperiments);
2009 2017
2010 // Stores and encapsulates the little state that about:flags has. 2018 // Stores and encapsulates the little state that about:flags has.
2011 class FlagsState { 2019 class FlagsState {
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 } 2601 }
2594 2602
2595 const Experiment* GetExperiments(size_t* count) { 2603 const Experiment* GetExperiments(size_t* count) {
2596 *count = num_experiments; 2604 *count = num_experiments;
2597 return experiments; 2605 return experiments;
2598 } 2606 }
2599 2607
2600 } // namespace testing 2608 } // namespace testing
2601 2609
2602 } // namespace about_flags 2610 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698