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

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

Issue 2496593002: Adding an experimental flag to block autoplay with sound in cross-origin iframes (Closed)
Patch Set: nits Created 4 years 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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 } 642 }
643 643
644 void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled) { 644 void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled) {
645 m_settings->setSyncXHRInDocumentsEnabled(enabled); 645 m_settings->setSyncXHRInDocumentsEnabled(enabled);
646 } 646 }
647 647
648 void WebSettingsImpl::setCookieEnabled(bool enabled) { 648 void WebSettingsImpl::setCookieEnabled(bool enabled) {
649 m_settings->setCookieEnabled(enabled); 649 m_settings->setCookieEnabled(enabled);
650 } 650 }
651 651
652 void WebSettingsImpl::setCrossOriginMediaPlaybackRequiresUserGesture(
653 bool required) {
654 m_settings->setCrossOriginMediaPlaybackRequiresUserGesture(required);
655 }
656
652 void WebSettingsImpl::setNavigateOnDragDrop(bool enabled) { 657 void WebSettingsImpl::setNavigateOnDragDrop(bool enabled) {
653 m_settings->setNavigateOnDragDrop(enabled); 658 m_settings->setNavigateOnDragDrop(enabled);
654 } 659 }
655 660
656 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled) { 661 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled) {
657 m_settings->setAllowCustomScrollbarInMainFrame(enabled); 662 m_settings->setAllowCustomScrollbarInMainFrame(enabled);
658 } 663 }
659 664
660 void WebSettingsImpl::setSelectTrailingWhitespaceEnabled(bool enabled) { 665 void WebSettingsImpl::setSelectTrailingWhitespaceEnabled(bool enabled) {
661 m_settings->setSelectTrailingWhitespaceEnabled(enabled); 666 m_settings->setSelectTrailingWhitespaceEnabled(enabled);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget( 713 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget(
709 float maxBudget) { 714 float maxBudget) {
710 m_expensiveBackgroundThrottlingMaxBudget = maxBudget; 715 m_expensiveBackgroundThrottlingMaxBudget = maxBudget;
711 } 716 }
712 717
713 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) { 718 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) {
714 m_expensiveBackgroundThrottlingMaxDelay = maxDelay; 719 m_expensiveBackgroundThrottlingMaxDelay = maxDelay;
715 } 720 }
716 721
717 } // namespace blink 722 } // 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