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

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: Removed window color API as per Philip's suggestion 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::setTextTrackBackgroundColor(const WebString& color)
380 {
381 m_settings->setTextTrackBackgroundColor((String)color);
382 }
383
384 void WebSettingsImpl::setTextTrackFontFamily(const WebString& fontFamily)
385 {
386 m_settings->setTextTrackFontFamily((String)fontFamily);
387 }
388
389 void WebSettingsImpl::setTextTrackFontStyle(const WebString& fontStyle)
390 {
391 m_settings->setTextTrackFontStyle((String)fontStyle);
392 }
393
394 void WebSettingsImpl::setTextTrackFontVariant(const WebString& fontVariant)
395 {
396 m_settings->setTextTrackFontVariant((String)fontVariant);
397 }
398
399 void WebSettingsImpl::setTextTrackTextColor(const WebString& color)
400 {
401 m_settings->setTextTrackTextColor((String)color);
402 }
403
404 void WebSettingsImpl::setTextTrackTextShadow(const WebString& shadow)
405 {
406 m_settings->setTextTrackTextShadow((String)shadow);
407 }
408
409 void WebSettingsImpl::setTextTrackTextSize(const WebString& size)
410 {
411 m_settings->setTextTrackTextSize((String)size);
412 }
413
379 void WebSettingsImpl::setUnsafePluginPastingEnabled(bool enabled) 414 void WebSettingsImpl::setUnsafePluginPastingEnabled(bool enabled)
380 { 415 {
381 m_settings->setUnsafePluginPastingEnabled(enabled); 416 m_settings->setUnsafePluginPastingEnabled(enabled);
382 } 417 }
383 418
384 void WebSettingsImpl::setDNSPrefetchingEnabled(bool enabled) 419 void WebSettingsImpl::setDNSPrefetchingEnabled(bool enabled)
385 { 420 {
386 m_settings->setDNSPrefetchingEnabled(enabled); 421 m_settings->setDNSPrefetchingEnabled(enabled);
387 } 422 }
388 423
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 { 776 {
742 m_mainFrameResizesAreOrientationChanges = enabled; 777 m_mainFrameResizesAreOrientationChanges = enabled;
743 } 778 }
744 779
745 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options) 780 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options)
746 { 781 {
747 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 782 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
748 } 783 }
749 784
750 } // namespace blink 785 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698