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

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 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance) 2014 SINGLE_VALUE_TYPE(extensions::switches::kEnableRemoteAssistance)
2015 }, 2015 },
2016 { 2016 {
2017 "disable-new-zip-unpacker", 2017 "disable-new-zip-unpacker",
2018 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME, 2018 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_NAME,
2019 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION, 2019 IDS_FLAGS_DISABLE_NEW_ZIP_UNPACKER_DESCRIPTION,
2020 kOsCrOS, 2020 kOsCrOS,
2021 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) 2021 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker)
2022 } 2022 }
2023 #endif // defined(OS_CHROMEOS) 2023 #endif // defined(OS_CHROMEOS)
2024 {
2025 "enable-touch-hover",
2026 IDS_FLAGS_ENABLE_TOUCH_HOVER_NAME,
2027 IDS_FLAGS_ENABLE_TOUCH_HOVER_DESCRIPTION,
2028 kOsAndroid,
2029 SINGLE_VALUE_TYPE("enable-touch-hover")
2030 },
2024 // NOTE: Adding new command-line switches requires adding corresponding 2031 // NOTE: Adding new command-line switches requires adding corresponding
2025 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2032 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2026 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2033 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2027 }; 2034 };
2028 2035
2029 const Experiment* experiments = kExperiments; 2036 const Experiment* experiments = kExperiments;
2030 size_t num_experiments = arraysize(kExperiments); 2037 size_t num_experiments = arraysize(kExperiments);
2031 2038
2032 // Stores and encapsulates the little state that about:flags has. 2039 // Stores and encapsulates the little state that about:flags has.
2033 class FlagsState { 2040 class FlagsState {
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 } 2606 }
2600 2607
2601 const Experiment* GetExperiments(size_t* count) { 2608 const Experiment* GetExperiments(size_t* count) {
2602 *count = num_experiments; 2609 *count = num_experiments;
2603 return experiments; 2610 return experiments;
2604 } 2611 }
2605 2612
2606 } // namespace testing 2613 } // namespace testing
2607 2614
2608 } // namespace about_flags 2615 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698