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

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

Issue 2125683002: Add option to force document level passive event listeners as a runtime feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 months 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 | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // the PNaCl translator and secure shell is substituted elsewhere. 177 // the PNaCl translator and secure shell is substituted elsewhere.
178 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" }, 178 { IDS_NACL_DEBUG_MASK_CHOICE_EXCLUDE_UTILS_PNACL, "", "" },
179 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" }, 179 { IDS_NACL_DEBUG_MASK_CHOICE_DEBUG_ALL, switches::kNaClDebugMask, "*://*" },
180 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG, 180 { IDS_NACL_DEBUG_MASK_CHOICE_INCLUDE_DEBUG,
181 switches::kNaClDebugMask, "*://*/*debug.nmf" } 181 switches::kNaClDebugMask, "*://*/*debug.nmf" }
182 }; 182 };
183 #endif 183 #endif
184 184
185 const FeatureEntry::Choice kPassiveListenersChoices[] = { 185 const FeatureEntry::Choice kPassiveListenersChoices[] = {
186 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, 186 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
187 {IDS_FLAGS_PASSIVE_EVENT_LISTENER_DOCUMENT_TRUE,
188 switches::kPassiveListenersDefault, "documentonlytrue"},
189 {IDS_FLAGS_PASSIVE_EVENT_LISTENER_TRUE, switches::kPassiveListenersDefault, 187 {IDS_FLAGS_PASSIVE_EVENT_LISTENER_TRUE, switches::kPassiveListenersDefault,
190 "true"}, 188 "true"},
191 {IDS_FLAGS_PASSIVE_EVENT_LISTENER_FORCE_ALL_TRUE, 189 {IDS_FLAGS_PASSIVE_EVENT_LISTENER_FORCE_ALL_TRUE,
192 switches::kPassiveListenersDefault, "forcealltrue"}, 190 switches::kPassiveListenersDefault, "forcealltrue"},
193 }; 191 };
194 192
195 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = { 193 const FeatureEntry::Choice kMarkNonSecureAsChoices[] = {
196 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""}, 194 {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", ""},
197 {IDS_MARK_NON_SECURE_AS_NEUTRAL, security_state::switches::kMarkNonSecureAs, 195 {IDS_MARK_NON_SECURE_AS_NEUTRAL, security_state::switches::kMarkNonSecureAs,
198 security_state::switches::kMarkNonSecureAsNeutral}, 196 security_state::switches::kMarkNonSecureAsNeutral},
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 FEATURE_VALUE_TYPE(features::kAutoplayMutedVideos)}, 1921 FEATURE_VALUE_TYPE(features::kAutoplayMutedVideos)},
1924 #endif 1922 #endif
1925 {"enable-pointer-events", // FLAGS:RECORD_UMA 1923 {"enable-pointer-events", // FLAGS:RECORD_UMA
1926 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME, 1924 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_NAME,
1927 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll, 1925 IDS_FLAGS_EXPERIMENTAL_POINTER_EVENT_DESCRIPTION, kOsAll,
1928 FEATURE_VALUE_TYPE(features::kPointerEvents)}, 1926 FEATURE_VALUE_TYPE(features::kPointerEvents)},
1929 {"passive-listener-default", // FLAGS:RECORD_UMA 1927 {"passive-listener-default", // FLAGS:RECORD_UMA
1930 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME, 1928 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_NAME,
1931 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll, 1929 IDS_FLAGS_PASSIVE_EVENT_LISTENER_DEFAULT_DESCRIPTION, kOsAll,
1932 MULTI_VALUE_TYPE(kPassiveListenersChoices)}, 1930 MULTI_VALUE_TYPE(kPassiveListenersChoices)},
1931 {"document-passive-event-listeners", // FLAGS:RECORD_UMA
1932 IDS_FLAGS_PASSIVE_DOCUMENT_EVENT_LISTENERS_NAME,
1933 IDS_FLAGS_PASSIVE_DOCUMENT_EVENT_LISTENERS_DESCRIPTION, kOsAll,
1934 FEATURE_VALUE_TYPE(features::kPassiveDocumentEventListeners)},
1933 {"enable-loading-ipc-optimization-for-small-resources", 1935 {"enable-loading-ipc-optimization-for-small-resources",
1934 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME, 1936 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_NAME,
1935 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll, 1937 IDS_FLAGS_OPTIMIZE_LOADING_IPC_FOR_SMALL_RESOURCES_DESCRIPTION, kOsAll,
1936 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)}, 1938 FEATURE_VALUE_TYPE(features::kOptimizeLoadingIPCForSmallResources)},
1937 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME, 1939 {"enable-font-cache-scaling", IDS_FLAGS_FONT_CACHE_SCALING_NAME,
1938 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll, 1940 IDS_FLAGS_FONT_CACHE_SCALING_DESCRIPTION, kOsAll,
1939 FEATURE_VALUE_TYPE(features::kFontCacheScaling)}, 1941 FEATURE_VALUE_TYPE(features::kFontCacheScaling)},
1940 #if defined(OS_ANDROID) 1942 #if defined(OS_ANDROID)
1941 {"enable-vr-shell", IDS_FLAGS_ENABLE_VR_SHELL_NAME, 1943 {"enable-vr-shell", IDS_FLAGS_ENABLE_VR_SHELL_NAME,
1942 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid, 1944 IDS_FLAGS_ENABLE_VR_SHELL_DESCRIPTION, kOsAndroid,
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2160 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2159 2161
2160 const FeatureEntry* GetFeatureEntries(size_t* count) { 2162 const FeatureEntry* GetFeatureEntries(size_t* count) {
2161 *count = arraysize(kFeatureEntries); 2163 *count = arraysize(kFeatureEntries);
2162 return kFeatureEntries; 2164 return kFeatureEntries;
2163 } 2165 }
2164 2166
2165 } // namespace testing 2167 } // namespace testing
2166 2168
2167 } // namespace about_flags 2169 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/child/runtime_features.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698