OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 #include "components/tracing/common/tracing_switches.h" | 67 #include "components/tracing/common/tracing_switches.h" |
68 #include "components/translate/core/browser/translate_manager.h" | 68 #include "components/translate/core/browser/translate_manager.h" |
69 #include "components/translate/core/browser/translate_prefs.h" | 69 #include "components/translate/core/browser/translate_prefs.h" |
70 #include "components/version_info/version_info.h" | 70 #include "components/version_info/version_info.h" |
71 #include "content/public/browser/user_metrics.h" | 71 #include "content/public/browser/user_metrics.h" |
72 #include "content/public/common/content_features.h" | 72 #include "content/public/common/content_features.h" |
73 #include "content/public/common/content_switches.h" | 73 #include "content/public/common/content_switches.h" |
74 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" | 74 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
75 #include "content/public/common/features.h" | 75 #include "content/public/common/features.h" |
76 #include "device/base/features.h" | 76 #include "device/base/features.h" |
| 77 #include "device/vr/features.h" |
77 #include "extensions/features/features.h" | 78 #include "extensions/features/features.h" |
78 #include "gin/public/gin_features.h" | 79 #include "gin/public/gin_features.h" |
79 #include "gpu/config/gpu_switches.h" | 80 #include "gpu/config/gpu_switches.h" |
80 #include "media/audio/audio_features.h" | 81 #include "media/audio/audio_features.h" |
81 #include "media/base/media_switches.h" | 82 #include "media/base/media_switches.h" |
82 #include "media/media_features.h" | 83 #include "media/media_features.h" |
83 #include "media/midi/midi_switches.h" | 84 #include "media/midi/midi_switches.h" |
84 #include "net/cert/cert_verify_proc_android.h" | 85 #include "net/cert/cert_verify_proc_android.h" |
85 #include "ppapi/features/features.h" | 86 #include "ppapi/features/features.h" |
86 #include "printing/features/features.h" | 87 #include "printing/features/features.h" |
(...skipping 1562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1649 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_DESCRIPTION, kOsMac, | 1650 IDS_FLAGS_MAC_VIEWS_NATIVE_APP_WINDOWS_DESCRIPTION, kOsMac, |
1650 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows, | 1651 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMacViewsNativeAppWindows, |
1651 switches::kDisableMacViewsNativeAppWindows)}, | 1652 switches::kDisableMacViewsNativeAppWindows)}, |
1652 {"app-window-cycling", IDS_FLAGS_APP_WINDOW_CYCLING_NAME, | 1653 {"app-window-cycling", IDS_FLAGS_APP_WINDOW_CYCLING_NAME, |
1653 IDS_FLAGS_APP_WINDOW_CYCLING_DESCRIPTION, kOsMac, | 1654 IDS_FLAGS_APP_WINDOW_CYCLING_DESCRIPTION, kOsMac, |
1654 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppWindowCycling, | 1655 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableAppWindowCycling, |
1655 switches::kDisableAppWindowCycling)}, | 1656 switches::kDisableAppWindowCycling)}, |
1656 #endif // OS_MACOSX | 1657 #endif // OS_MACOSX |
1657 {"enable-webvr", IDS_FLAGS_WEBVR_NAME, IDS_FLAGS_WEBVR_DESCRIPTION, kOsAll, | 1658 {"enable-webvr", IDS_FLAGS_WEBVR_NAME, IDS_FLAGS_WEBVR_DESCRIPTION, kOsAll, |
1658 SINGLE_VALUE_TYPE(switches::kEnableWebVR)}, | 1659 SINGLE_VALUE_TYPE(switches::kEnableWebVR)}, |
1659 #if defined(ENABLE_WEBVR) | 1660 #if BUILDFLAG(ENABLE_WEBVR) |
1660 {"enable-webvr-experimental-rendering", | 1661 {"enable-webvr-experimental-rendering", |
1661 IDS_FLAGS_WEBVR_EXPERIMENTAL_RENDERING_NAME, | 1662 IDS_FLAGS_WEBVR_EXPERIMENTAL_RENDERING_NAME, |
1662 IDS_FLAGS_WEBVR_EXPERIMENTAL_RENDERING_DESCRIPTION, kOsAndroid, | 1663 IDS_FLAGS_WEBVR_EXPERIMENTAL_RENDERING_DESCRIPTION, kOsAndroid, |
1663 FEATURE_VALUE_TYPE(features::kWebVRExperimentalRendering)}, | 1664 FEATURE_VALUE_TYPE(features::kWebVRExperimentalRendering)}, |
1664 {"enable-vr-shell", IDS_FLAGS_ENABLE_VR_SHELL_NAME, | 1665 {"enable-vr-shell", IDS_FLAGS_ENABLE_VR_SHELL_NAME, |
1665 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid, | 1666 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid, |
1666 FEATURE_VALUE_TYPE(features::kVrShell)}, | 1667 FEATURE_VALUE_TYPE(features::kVrShell)}, |
1667 #endif | 1668 #endif |
1668 #if defined(OS_CHROMEOS) | 1669 #if defined(OS_CHROMEOS) |
1669 {"disable-accelerated-mjpeg-decode", | 1670 {"disable-accelerated-mjpeg-decode", |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2556 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2557 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2557 | 2558 |
2558 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2559 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2559 *count = arraysize(kFeatureEntries); | 2560 *count = arraysize(kFeatureEntries); |
2560 return kFeatureEntries; | 2561 return kFeatureEntries; |
2561 } | 2562 } |
2562 | 2563 |
2563 } // namespace testing | 2564 } // namespace testing |
2564 | 2565 |
2565 } // namespace about_flags | 2566 } // namespace about_flags |
OLD | NEW |