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

Side by Side Diff: third_party/WebKit/Source/web/WebRuntimeFeatures.cpp

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void WebRuntimeFeatures::enablePagePopup(bool enable) 193 void WebRuntimeFeatures::enablePagePopup(bool enable)
194 { 194 {
195 RuntimeEnabledFeatures::setPagePopupEnabled(enable); 195 RuntimeEnabledFeatures::setPagePopupEnabled(enable);
196 } 196 }
197 197
198 void WebRuntimeFeatures::enableParseHTMLOnMainThread(bool enable) 198 void WebRuntimeFeatures::enableParseHTMLOnMainThread(bool enable)
199 { 199 {
200 RuntimeEnabledFeatures::setParseHTMLOnMainThreadEnabled(enable); 200 RuntimeEnabledFeatures::setParseHTMLOnMainThreadEnabled(enable);
201 } 201 }
202 202
203 void WebRuntimeFeatures::enablePassiveDocumentEventListeners(bool enable)
204 {
205 RuntimeEnabledFeatures::setPassiveDocumentEventListenersEnabled(enable);
206 }
207
203 void WebRuntimeFeatures::enablePermissionsAPI(bool enable) 208 void WebRuntimeFeatures::enablePermissionsAPI(bool enable)
204 { 209 {
205 RuntimeEnabledFeatures::setPermissionsEnabled(enable); 210 RuntimeEnabledFeatures::setPermissionsEnabled(enable);
206 } 211 }
207 212
208 void WebRuntimeFeatures::enablePointerEvent(bool enable) 213 void WebRuntimeFeatures::enablePointerEvent(bool enable)
209 { 214 {
210 RuntimeEnabledFeatures::setPointerEventEnabled(enable); 215 RuntimeEnabledFeatures::setPointerEventEnabled(enable);
211 } 216 }
212 217
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 { 334 {
330 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable); 335 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable);
331 } 336 }
332 337
333 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) 338 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable)
334 { 339 {
335 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable); 340 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable);
336 } 341 }
337 342
338 } // namespace blink 343 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/AssertMatchingEnums.cpp ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698