| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #include "printing/features/features.h" | 90 #include "printing/features/features.h" |
| 91 #include "services/device/public/cpp/device_features.h" | 91 #include "services/device/public/cpp/device_features.h" |
| 92 #include "ui/base/ui_base_switches.h" | 92 #include "ui/base/ui_base_switches.h" |
| 93 #include "ui/compositor/compositor_switches.h" | 93 #include "ui/compositor/compositor_switches.h" |
| 94 #include "ui/display/display_switches.h" | 94 #include "ui/display/display_switches.h" |
| 95 #include "ui/events/event_switches.h" | 95 #include "ui/events/event_switches.h" |
| 96 #include "ui/gfx/switches.h" | 96 #include "ui/gfx/switches.h" |
| 97 #include "ui/gl/gl_features.h" | 97 #include "ui/gl/gl_features.h" |
| 98 #include "ui/gl/gl_switches.h" | 98 #include "ui/gl/gl_switches.h" |
| 99 #include "ui/keyboard/keyboard_switches.h" | 99 #include "ui/keyboard/keyboard_switches.h" |
| 100 #include "ui/native_theme/native_theme_switches.h" | 100 #include "ui/native_theme/native_theme_features.h" |
| 101 #include "ui/views/views_switches.h" | 101 #include "ui/views/views_switches.h" |
| 102 | 102 |
| 103 #if defined(OS_ANDROID) | 103 #if defined(OS_ANDROID) |
| 104 #include "chrome/browser/android/chrome_feature_list.h" | 104 #include "chrome/browser/android/chrome_feature_list.h" |
| 105 #include "components/feature_engagement_tracker/public/feature_constants.h" | 105 #include "components/feature_engagement_tracker/public/feature_constants.h" |
| 106 #else // OS_ANDROID | 106 #else // OS_ANDROID |
| 107 #include "ui/message_center/message_center_switches.h" | 107 #include "ui/message_center/message_center_switches.h" |
| 108 #endif // OS_ANDROID | 108 #endif // OS_ANDROID |
| 109 | 109 |
| 110 #if defined(OS_CHROMEOS) | 110 #if defined(OS_CHROMEOS) |
| (...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 flag_descriptions::kSmoothScrollingDescription, | 1051 flag_descriptions::kSmoothScrollingDescription, |
| 1052 // Mac has a separate implementation with its own setting to disable. | 1052 // Mac has a separate implementation with its own setting to disable. |
| 1053 kOsLinux | kOsCrOS | kOsWin | kOsAndroid, | 1053 kOsLinux | kOsCrOS | kOsWin | kOsAndroid, |
| 1054 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSmoothScrolling, | 1054 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableSmoothScrolling, |
| 1055 switches::kDisableSmoothScrolling)}, | 1055 switches::kDisableSmoothScrolling)}, |
| 1056 #if defined(USE_AURA) | 1056 #if defined(USE_AURA) |
| 1057 {"overlay-scrollbars", flag_descriptions::kOverlayScrollbarsName, | 1057 {"overlay-scrollbars", flag_descriptions::kOverlayScrollbarsName, |
| 1058 flag_descriptions::kOverlayScrollbarsDescription, | 1058 flag_descriptions::kOverlayScrollbarsDescription, |
| 1059 // Uses the system preference on Mac (a different implementation). | 1059 // Uses the system preference on Mac (a different implementation). |
| 1060 // On Android, this is always enabled. | 1060 // On Android, this is always enabled. |
| 1061 kOsAura, | 1061 kOsAura, FEATURE_VALUE_TYPE(features::kOverlayScrollbar)}, |
| 1062 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableOverlayScrollbar, | |
| 1063 switches::kDisableOverlayScrollbar)}, | |
| 1064 #endif // USE_AURA | 1062 #endif // USE_AURA |
| 1065 { // See http://crbug.com/120416 for how to remove this flag. | 1063 { // See http://crbug.com/120416 for how to remove this flag. |
| 1066 "save-page-as-mhtml", flag_descriptions::kSavePageAsMhtmlName, | 1064 "save-page-as-mhtml", flag_descriptions::kSavePageAsMhtmlName, |
| 1067 flag_descriptions::kSavePageAsMhtmlDescription, kOsMac | kOsWin | kOsLinux, | 1065 flag_descriptions::kSavePageAsMhtmlDescription, kOsMac | kOsWin | kOsLinux, |
| 1068 SINGLE_VALUE_TYPE(switches::kSavePageAsMHTML)}, | 1066 SINGLE_VALUE_TYPE(switches::kSavePageAsMHTML)}, |
| 1069 {"mhtml-generator-option", flag_descriptions::kMhtmlGeneratorOptionName, | 1067 {"mhtml-generator-option", flag_descriptions::kMhtmlGeneratorOptionName, |
| 1070 flag_descriptions::kMhtmlGeneratorOptionDescription, | 1068 flag_descriptions::kMhtmlGeneratorOptionDescription, |
| 1071 kOsMac | kOsWin | kOsLinux, | 1069 kOsMac | kOsWin | kOsLinux, |
| 1072 MULTI_VALUE_TYPE(kMHTMLGeneratorOptionChoices)}, | 1070 MULTI_VALUE_TYPE(kMHTMLGeneratorOptionChoices)}, |
| 1073 {"enable-quic", flag_descriptions::kQuicName, | 1071 {"enable-quic", flag_descriptions::kQuicName, |
| (...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2927 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2925 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2928 | 2926 |
| 2929 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2927 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2930 *count = arraysize(kFeatureEntries); | 2928 *count = arraysize(kFeatureEntries); |
| 2931 return kFeatureEntries; | 2929 return kFeatureEntries; |
| 2932 } | 2930 } |
| 2933 | 2931 |
| 2934 } // namespace testing | 2932 } // namespace testing |
| 2935 | 2933 |
| 2936 } // namespace about_flags | 2934 } // namespace about_flags |
| OLD | NEW |