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

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

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: rebased Created 4 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
« no previous file with comments | « no previous file | device/BUILD.gn » ('j') | device/generic_sensor/platform_sensor_provider_iio.cc » ('J')
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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 #endif // OS_CHROMEOS 2042 #endif // OS_CHROMEOS
2043 #if defined(OS_WIN) 2043 #if defined(OS_WIN)
2044 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME, 2044 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME,
2045 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin, 2045 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin,
2046 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)}, 2046 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)},
2047 #endif // OS_WIN 2047 #endif // OS_WIN
2048 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME, 2048 {"saveas-menu-text-experiment", IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_NAME,
2049 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop, 2049 IDS_FLAGS_SAVEAS_MENU_LABEL_EXPERIMENT_DESCRIPTION, kOsDesktop,
2050 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)}, 2050 SINGLE_VALUE_TYPE(switches::kEnableSaveAsMenuLabelExperiment)},
2051 {"enable-generic-sensor", IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME, 2051 {"enable-generic-sensor", IDS_FLAGS_ENABLE_GENERIC_SENSOR_NAME,
2052 IDS_FLAGS_ENABLE_GENERIC_SENSOR_DESCRIPTION, kOsAndroid | kOsMac, 2052 IDS_FLAGS_ENABLE_GENERIC_SENSOR_DESCRIPTION,
2053 kOsAndroid | kOsMac | kOsLinux | kOsCrOS,
2053 FEATURE_VALUE_TYPE(features::kGenericSensor)}, 2054 FEATURE_VALUE_TYPE(features::kGenericSensor)},
2054 {"expensive-background-timer-throttling", 2055 {"expensive-background-timer-throttling",
2055 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_NAME, 2056 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_NAME,
2056 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_DESCRIPTION, kOsAll, 2057 IDS_FLAGS_EXPENSIVE_BACKGROUND_TIMER_THROTTLING_DESCRIPTION, kOsAll,
2057 FEATURE_VALUE_TYPE(features::kExpensiveBackgroundTimerThrottling)}, 2058 FEATURE_VALUE_TYPE(features::kExpensiveBackgroundTimerThrottling)},
2058 {"security-chip", IDS_FLAGS_SECURITY_CHIP_NAME, 2059 {"security-chip", IDS_FLAGS_SECURITY_CHIP_NAME,
2059 IDS_FLAGS_SECURITY_CHIP_DESCRIPTION, kOsDesktop, 2060 IDS_FLAGS_SECURITY_CHIP_DESCRIPTION, kOsDesktop,
2060 MULTI_VALUE_TYPE(kSecurityChipChoices)}, 2061 MULTI_VALUE_TYPE(kSecurityChipChoices)},
2061 {"security-chip-animation", IDS_FLAGS_SECURITY_CHIP_ANIMATION_NAME, 2062 {"security-chip-animation", IDS_FLAGS_SECURITY_CHIP_ANIMATION_NAME,
2062 IDS_FLAGS_SECURITY_CHIP_ANIMATION_DESCRIPTION, kOsDesktop, 2063 IDS_FLAGS_SECURITY_CHIP_ANIMATION_DESCRIPTION, kOsDesktop,
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2278 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2279 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2279 2280
2280 const FeatureEntry* GetFeatureEntries(size_t* count) { 2281 const FeatureEntry* GetFeatureEntries(size_t* count) {
2281 *count = arraysize(kFeatureEntries); 2282 *count = arraysize(kFeatureEntries);
2282 return kFeatureEntries; 2283 return kFeatureEntries;
2283 } 2284 }
2284 2285
2285 } // namespace testing 2286 } // namespace testing
2286 2287
2287 } // namespace about_flags 2288 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | device/BUILD.gn » ('j') | device/generic_sensor/platform_sensor_provider_iio.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698