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

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

Issue 2613133003: Disable MediaSession API for WebView (Closed)
Patch Set: rebased Created 3 years, 11 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 159 }
160 160
161 void WebRuntimeFeatures::enableMediaCapture(bool enable) { 161 void WebRuntimeFeatures::enableMediaCapture(bool enable) {
162 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable); 162 RuntimeEnabledFeatures::setMediaCaptureEnabled(enable);
163 } 163 }
164 164
165 void WebRuntimeFeatures::enableMediaDocumentDownloadButton(bool enable) { 165 void WebRuntimeFeatures::enableMediaDocumentDownloadButton(bool enable) {
166 RuntimeEnabledFeatures::setMediaDocumentDownloadButtonEnabled(enable); 166 RuntimeEnabledFeatures::setMediaDocumentDownloadButtonEnabled(enable);
167 } 167 }
168 168
169 void WebRuntimeFeatures::enableMediaSession(bool enable) {
170 RuntimeEnabledFeatures::setMediaSessionEnabled(enable);
171 }
172
169 void WebRuntimeFeatures::enableNotificationConstructor(bool enable) { 173 void WebRuntimeFeatures::enableNotificationConstructor(bool enable) {
170 RuntimeEnabledFeatures::setNotificationConstructorEnabled(enable); 174 RuntimeEnabledFeatures::setNotificationConstructorEnabled(enable);
171 } 175 }
172 176
173 void WebRuntimeFeatures::enableNotificationContentImage(bool enable) { 177 void WebRuntimeFeatures::enableNotificationContentImage(bool enable) {
174 RuntimeEnabledFeatures::setNotificationContentImageEnabled(enable); 178 RuntimeEnabledFeatures::setNotificationContentImageEnabled(enable);
175 } 179 }
176 180
177 void WebRuntimeFeatures::enableNotifications(bool enable) { 181 void WebRuntimeFeatures::enableNotifications(bool enable) {
178 RuntimeEnabledFeatures::setNotificationsEnabled(enable); 182 RuntimeEnabledFeatures::setNotificationsEnabled(enable);
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 370
367 void WebRuntimeFeatures::enableRemotePlaybackAPI(bool enable) { 371 void WebRuntimeFeatures::enableRemotePlaybackAPI(bool enable) {
368 RuntimeEnabledFeatures::setRemotePlaybackEnabled(enable); 372 RuntimeEnabledFeatures::setRemotePlaybackEnabled(enable);
369 } 373 }
370 374
371 void WebRuntimeFeatures::enableVideoFullscreenOrientationLock(bool enable) { 375 void WebRuntimeFeatures::enableVideoFullscreenOrientationLock(bool enable) {
372 RuntimeEnabledFeatures::setVideoFullscreenOrientationLockEnabled(enable); 376 RuntimeEnabledFeatures::setVideoFullscreenOrientationLockEnabled(enable);
373 } 377 }
374 378
375 } // namespace blink 379 } // namespace blink
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698