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

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: Fix comments 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
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.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 "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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 // Set the value to '1' to enable the behavior where pages slide in and out in 668 // Set the value to '1' to enable the behavior where pages slide in and out in
669 // response to the horizontal overscroll gesture and a screenshot of the target 669 // response to the horizontal overscroll gesture and a screenshot of the target
670 // page is shown. 670 // page is shown.
671 // Set the value to '2' to enable the simplified overscroll UI where a 671 // Set the value to '2' to enable the simplified overscroll UI where a
672 // navigation arrow slides in from the side of the screen in response to the 672 // navigation arrow slides in from the side of the screen in response to the
673 // horizontal overscroll gesture. 673 // horizontal overscroll gesture.
674 // Defaults to '1'. 674 // Defaults to '1'.
675 const char kOverscrollHistoryNavigation[] = 675 const char kOverscrollHistoryNavigation[] =
676 "overscroll-history-navigation"; 676 "overscroll-history-navigation";
677 677
678 // Override the default value for the 'passive' field in javascript
679 // addEventListener calls. Values are defined as:
680 // 'documentonlytrue' to set the default be true only for document level nodes.
681 // 'true' to set the default to be true on all nodes (when not specified).
682 // 'forcealltrue' to force the value on all nodes.
683 const char kPassiveListenersDefault[] = "passive-listeners-default";
684
678 // Argument to the process type that indicates a PPAPI broker process type. 685 // Argument to the process type that indicates a PPAPI broker process type.
679 const char kPpapiBrokerProcess[] = "ppapi-broker"; 686 const char kPpapiBrokerProcess[] = "ppapi-broker";
680 687
681 // "Command-line" arguments for the PPAPI Flash; used for debugging options. 688 // "Command-line" arguments for the PPAPI Flash; used for debugging options.
682 const char kPpapiFlashArgs[] = "ppapi-flash-args"; 689 const char kPpapiFlashArgs[] = "ppapi-flash-args";
683 690
684 // Runs PPAPI (Pepper) plugins in-process. 691 // Runs PPAPI (Pepper) plugins in-process.
685 const char kPpapiInProcess[] = "ppapi-in-process"; 692 const char kPpapiInProcess[] = "ppapi-in-process";
686 693
687 // Specifies a command that should be used to launch the ppapi plugin process. 694 // Specifies a command that should be used to launch the ppapi plugin process.
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; 1042 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb";
1036 1043
1037 // Enables the exporting of the tracing events to ETW. This is only supported on 1044 // Enables the exporting of the tracing events to ETW. This is only supported on
1038 // Windows Vista and later. 1045 // Windows Vista and later.
1039 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; 1046 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw";
1040 #endif 1047 #endif
1041 1048
1042 // Don't dump stuff here, follow the same order as the header. 1049 // Don't dump stuff here, follow the same order as the header.
1043 1050
1044 } // namespace switches 1051 } // namespace switches
OLDNEW
« no previous file with comments | « content/public/common/content_switches.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698