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

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

Issue 2640143002: Allow autoplay unmuted for WebAPK in the manifest scope (Closed)
Patch Set: fixed Android build and layout tests Created 3 years, 10 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 } 618 }
619 619
620 void WebSettingsImpl::setMediaControlsOverlayPlayButtonEnabled(bool enabled) { 620 void WebSettingsImpl::setMediaControlsOverlayPlayButtonEnabled(bool enabled) {
621 m_settings->setMediaControlsOverlayPlayButtonEnabled(enabled); 621 m_settings->setMediaControlsOverlayPlayButtonEnabled(enabled);
622 } 622 }
623 623
624 void WebSettingsImpl::setMediaPlaybackRequiresUserGesture(bool required) { 624 void WebSettingsImpl::setMediaPlaybackRequiresUserGesture(bool required) {
625 m_settings->setMediaPlaybackRequiresUserGesture(required); 625 m_settings->setMediaPlaybackRequiresUserGesture(required);
626 } 626 }
627 627
628 void WebSettingsImpl::setMediaPlaybackGestureWhitelistScope(
629 const WebString& scope) {
630 m_settings->setMediaPlaybackGestureWhitelistScope(scope);
631 }
632
628 void WebSettingsImpl::setPresentationRequiresUserGesture(bool required) { 633 void WebSettingsImpl::setPresentationRequiresUserGesture(bool required) {
629 m_settings->setPresentationRequiresUserGesture(required); 634 m_settings->setPresentationRequiresUserGesture(required);
630 } 635 }
631 636
632 void WebSettingsImpl::setViewportEnabled(bool enabled) { 637 void WebSettingsImpl::setViewportEnabled(bool enabled) {
633 m_settings->setViewportEnabled(enabled); 638 m_settings->setViewportEnabled(enabled);
634 } 639 }
635 640
636 void WebSettingsImpl::setViewportMetaEnabled(bool enabled) { 641 void WebSettingsImpl::setViewportMetaEnabled(bool enabled) {
637 m_settings->setViewportMetaEnabled(enabled); 642 m_settings->setViewportMetaEnabled(enabled);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget( 714 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget(
710 float maxBudget) { 715 float maxBudget) {
711 m_expensiveBackgroundThrottlingMaxBudget = maxBudget; 716 m_expensiveBackgroundThrottlingMaxBudget = maxBudget;
712 } 717 }
713 718
714 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) { 719 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) {
715 m_expensiveBackgroundThrottlingMaxDelay = maxDelay; 720 m_expensiveBackgroundThrottlingMaxDelay = maxDelay;
716 } 721 }
717 722
718 } // namespace blink 723 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698