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

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

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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 void WebSettingsImpl::setStrictPowerfulFeatureRestrictions(bool enabled) 620 void WebSettingsImpl::setStrictPowerfulFeatureRestrictions(bool enabled)
621 { 621 {
622 m_settings->setStrictPowerfulFeatureRestrictions(enabled); 622 m_settings->setStrictPowerfulFeatureRestrictions(enabled);
623 } 623 }
624 624
625 void WebSettingsImpl::setStrictlyBlockBlockableMixedContent(bool enabled) 625 void WebSettingsImpl::setStrictlyBlockBlockableMixedContent(bool enabled)
626 { 626 {
627 m_settings->setStrictlyBlockBlockableMixedContent(enabled); 627 m_settings->setStrictlyBlockBlockableMixedContent(enabled);
628 } 628 }
629 629
630 void WebSettingsImpl::setPassiveEventListenerDefault(PassiveEventListenerDefault defaultValue)
631 {
632 m_settings->setPassiveListenerDefault(static_cast<PassiveListenerDefault>(de faultValue));
633 }
634
630 void WebSettingsImpl::setPasswordEchoEnabled(bool flag) 635 void WebSettingsImpl::setPasswordEchoEnabled(bool flag)
631 { 636 {
632 m_settings->setPasswordEchoEnabled(flag); 637 m_settings->setPasswordEchoEnabled(flag);
633 } 638 }
634 639
635 void WebSettingsImpl::setPasswordEchoDurationInSeconds(double durationInSeconds) 640 void WebSettingsImpl::setPasswordEchoDurationInSeconds(double durationInSeconds)
636 { 641 {
637 m_settings->setPasswordEchoDurationInSeconds(durationInSeconds); 642 m_settings->setPasswordEchoDurationInSeconds(durationInSeconds);
638 } 643 }
639 644
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 { 807 {
803 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies)); 808 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies));
804 } 809 }
805 810
806 void WebSettingsImpl::setViewportStyle(WebViewportStyle style) 811 void WebSettingsImpl::setViewportStyle(WebViewportStyle style)
807 { 812 {
808 m_devToolsEmulator->setViewportStyle(style); 813 m_devToolsEmulator->setViewportStyle(style);
809 } 814 }
810 815
811 } // namespace blink 816 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698