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

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

Issue 921833003: Expose APIs for text track settings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 void WebSettingsImpl::setJavaScriptCanAccessClipboard(bool enabled) 369 void WebSettingsImpl::setJavaScriptCanAccessClipboard(bool enabled)
370 { 370 {
371 m_settings->setJavaScriptCanAccessClipboard(enabled); 371 m_settings->setJavaScriptCanAccessClipboard(enabled);
372 } 372 }
373 373
374 void WebSettingsImpl::setXSSAuditorEnabled(bool enabled) 374 void WebSettingsImpl::setXSSAuditorEnabled(bool enabled)
375 { 375 {
376 m_settings->setXSSAuditorEnabled(enabled); 376 m_settings->setXSSAuditorEnabled(enabled);
377 } 377 }
378 378
379 void WebSettingsImpl::setTextTrackTextColor(const WebString& color)
380 {
381 m_settings->setTextTrackTextColor((String)color);
382 }
383
384 void WebSettingsImpl::setTextTrackBackgroundColor(const WebString& color)
385 {
386 m_settings->setTextTrackBackgroundColor((String)color);
387 }
388
389 void WebSettingsImpl::setTextTrackWindowColor(const WebString& color)
390 {
391 m_settings->setTextTrackWindowColor((String)color);
392 }
393
394 void WebSettingsImpl::setTextTrackTextShadow(const WebString& shadow)
395 {
396 m_settings->setTextTrackTextShadow((String)shadow);
397 }
398
399 void WebSettingsImpl::setTextTrackTextSize(const WebString& size)
400 {
401 m_settings->setTextTrackTextSize((String)size);
402 }
403
404 void WebSettingsImpl::setTextTrackFontFamily(const WebString& fontFamily)
405 {
406 m_settings->setTextTrackFontFamily((String)fontFamily);
407 }
408
409 void WebSettingsImpl::setTextTrackFontStyle(const WebString& fontStyle)
410 {
411 m_settings->setTextTrackFontStyle((String)fontStyle);
412 }
413
414 void WebSettingsImpl::setTextTrackFontVariant(const WebString& fontVariant)
415 {
416 m_settings->setTextTrackFontVariant((String)fontVariant);
417 }
418
379 void WebSettingsImpl::setUnsafePluginPastingEnabled(bool enabled) 419 void WebSettingsImpl::setUnsafePluginPastingEnabled(bool enabled)
380 { 420 {
381 m_settings->setUnsafePluginPastingEnabled(enabled); 421 m_settings->setUnsafePluginPastingEnabled(enabled);
382 } 422 }
383 423
384 void WebSettingsImpl::setDNSPrefetchingEnabled(bool enabled) 424 void WebSettingsImpl::setDNSPrefetchingEnabled(bool enabled)
385 { 425 {
386 m_settings->setDNSPrefetchingEnabled(enabled); 426 m_settings->setDNSPrefetchingEnabled(enabled);
387 } 427 }
388 428
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 { 781 {
742 m_mainFrameResizesAreOrientationChanges = enabled; 782 m_mainFrameResizesAreOrientationChanges = enabled;
743 } 783 }
744 784
745 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options) 785 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options)
746 { 786 {
747 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 787 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
748 } 788 }
749 789
750 } // namespace blink 790 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698