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

Side by Side Diff: content/public/common/content_switches.cc

Issue 1965493002: Add runtime setting to force passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_switches.h" 6 #include "content/public/common/content_switches.h"
7 7
8 namespace switches { 8 namespace switches {
9 9
10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to 10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 // Set the value to '1' to enable the behavior where pages slide in and out in 658 // Set the value to '1' to enable the behavior where pages slide in and out in
659 // response to the horizontal overscroll gesture and a screenshot of the target 659 // response to the horizontal overscroll gesture and a screenshot of the target
660 // page is shown. 660 // page is shown.
661 // Set the value to '2' to enable the simplified overscroll UI where a 661 // Set the value to '2' to enable the simplified overscroll UI where a
662 // navigation arrow slides in from the side of the screen in response to the 662 // navigation arrow slides in from the side of the screen in response to the
663 // horizontal overscroll gesture. 663 // horizontal overscroll gesture.
664 // Defaults to '1'. 664 // Defaults to '1'.
665 const char kOverscrollHistoryNavigation[] = 665 const char kOverscrollHistoryNavigation[] =
666 "overscroll-history-navigation"; 666 "overscroll-history-navigation";
667 667
668 // Default for passive listeners being added. Values are defined as:
669 // 'documentonlytrue' to set the default be true only for document level nodes.
670 // 'true' to set the default to be true on all nodes (when not specified).
671 // 'forcealltrue' to force the value on all nodes.
672 const char kPassiveListenersDefault[] = "passive-listeners-default";
673
668 // Argument to the process type that indicates a PPAPI broker process type. 674 // Argument to the process type that indicates a PPAPI broker process type.
669 const char kPpapiBrokerProcess[] = "ppapi-broker"; 675 const char kPpapiBrokerProcess[] = "ppapi-broker";
670 676
671 // "Command-line" arguments for the PPAPI Flash; used for debugging options. 677 // "Command-line" arguments for the PPAPI Flash; used for debugging options.
672 const char kPpapiFlashArgs[] = "ppapi-flash-args"; 678 const char kPpapiFlashArgs[] = "ppapi-flash-args";
673 679
674 // Runs PPAPI (Pepper) plugins in-process. 680 // Runs PPAPI (Pepper) plugins in-process.
675 const char kPpapiInProcess[] = "ppapi-in-process"; 681 const char kPpapiInProcess[] = "ppapi-in-process";
676 682
677 // Specifies a command that should be used to launch the ppapi plugin process. 683 // Specifies a command that should be used to launch the ppapi plugin process.
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; 1027 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb";
1022 1028
1023 // Enables the exporting of the tracing events to ETW. This is only supported on 1029 // Enables the exporting of the tracing events to ETW. This is only supported on
1024 // Windows Vista and later. 1030 // Windows Vista and later.
1025 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; 1031 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw";
1026 #endif 1032 #endif
1027 1033
1028 // Don't dump stuff here, follow the same order as the header. 1034 // Don't dump stuff here, follow the same order as the header.
1029 1035
1030 } // namespace switches 1036 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698