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

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

Issue 2676633006: media: Add a web preference to enable encrypted media (Closed)
Patch Set: use a new pref 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 void WebSettingsImpl::setProgressBarCompletion( 271 void WebSettingsImpl::setProgressBarCompletion(
272 ProgressBarCompletion progressBarCompletion) { 272 ProgressBarCompletion progressBarCompletion) {
273 m_settings->setProgressBarCompletion( 273 m_settings->setProgressBarCompletion(
274 static_cast<blink::ProgressBarCompletion>(progressBarCompletion)); 274 static_cast<blink::ProgressBarCompletion>(progressBarCompletion));
275 } 275 }
276 276
277 void WebSettingsImpl::setPluginsEnabled(bool enabled) { 277 void WebSettingsImpl::setPluginsEnabled(bool enabled) {
278 m_devToolsEmulator->setPluginsEnabled(enabled); 278 m_devToolsEmulator->setPluginsEnabled(enabled);
279 } 279 }
280 280
281 void WebSettingsImpl::setEncryptedMediaEnabled(bool enabled) {
282 m_settings->setEncryptedMediaEnabled(enabled);
283 }
284
281 void WebSettingsImpl::setAvailablePointerTypes(int pointers) { 285 void WebSettingsImpl::setAvailablePointerTypes(int pointers) {
282 m_devToolsEmulator->setAvailablePointerTypes(pointers); 286 m_devToolsEmulator->setAvailablePointerTypes(pointers);
283 } 287 }
284 288
285 void WebSettingsImpl::setPrimaryPointerType(PointerType pointer) { 289 void WebSettingsImpl::setPrimaryPointerType(PointerType pointer) {
286 m_devToolsEmulator->setPrimaryPointerType( 290 m_devToolsEmulator->setPrimaryPointerType(
287 static_cast<blink::PointerType>(pointer)); 291 static_cast<blink::PointerType>(pointer));
288 } 292 }
289 293
290 void WebSettingsImpl::setAvailableHoverTypes(int types) { 294 void WebSettingsImpl::setAvailableHoverTypes(int types) {
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget( 713 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget(
710 float maxBudget) { 714 float maxBudget) {
711 m_expensiveBackgroundThrottlingMaxBudget = maxBudget; 715 m_expensiveBackgroundThrottlingMaxBudget = maxBudget;
712 } 716 }
713 717
714 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) { 718 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) {
715 m_expensiveBackgroundThrottlingMaxDelay = maxDelay; 719 m_expensiveBackgroundThrottlingMaxDelay = maxDelay;
716 } 720 }
717 721
718 } // 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