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

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

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have the flag influence automatic track selection Created 5 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 void WebSettingsImpl::setJavaScriptCanAccessClipboard(bool enabled) 368 void WebSettingsImpl::setJavaScriptCanAccessClipboard(bool enabled)
369 { 369 {
370 m_settings->setJavaScriptCanAccessClipboard(enabled); 370 m_settings->setJavaScriptCanAccessClipboard(enabled);
371 } 371 }
372 372
373 void WebSettingsImpl::setXSSAuditorEnabled(bool enabled) 373 void WebSettingsImpl::setXSSAuditorEnabled(bool enabled)
374 { 374 {
375 m_settings->setXSSAuditorEnabled(enabled); 375 m_settings->setXSSAuditorEnabled(enabled);
376 } 376 }
377 377
378 void WebSettingsImpl::setTextTracksEnabled(bool enabled)
379 {
380 m_settings->setTextTracksEnabled(enabled);
381 }
382
378 void WebSettingsImpl::setTextTrackBackgroundColor(const WebString& color) 383 void WebSettingsImpl::setTextTrackBackgroundColor(const WebString& color)
379 { 384 {
380 m_settings->setTextTrackBackgroundColor(color); 385 m_settings->setTextTrackBackgroundColor(color);
381 } 386 }
382 387
383 void WebSettingsImpl::setTextTrackFontFamily(const WebString& fontFamily) 388 void WebSettingsImpl::setTextTrackFontFamily(const WebString& fontFamily)
384 { 389 {
385 m_settings->setTextTrackFontFamily(fontFamily); 390 m_settings->setTextTrackFontFamily(fontFamily);
386 } 391 }
387 392
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 { 780 {
776 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 781 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
777 } 782 }
778 783
779 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled) 784 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled)
780 { 785 {
781 m_devToolsEmulator->setUseMobileViewportStyle(enabled); 786 m_devToolsEmulator->setUseMobileViewportStyle(enabled);
782 } 787 }
783 788
784 } // namespace blink 789 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698