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

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

Issue 2344353003: Force preload=none and disable autoplay on lowend Android devices. (Closed)
Patch Set: Fix enum namespace. Created 4 years, 2 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 if (m_settings->genericFontFamilySettings().updateStandard(font, script)) 66 if (m_settings->genericFontFamilySettings().updateStandard(font, script))
67 m_settings->notifyGenericFontFamilyChange(); 67 m_settings->notifyGenericFontFamilyChange();
68 } 68 }
69 69
70 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri pt) 70 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri pt)
71 { 71 {
72 if (m_settings->genericFontFamilySettings().updateFixed(font, script)) 72 if (m_settings->genericFontFamilySettings().updateFixed(font, script))
73 m_settings->notifyGenericFontFamilyChange(); 73 m_settings->notifyGenericFontFamilyChange();
74 } 74 }
75 75
76 void WebSettingsImpl::setForcePreloadNoneForMediaElements(bool enabled)
77 {
78 m_settings->setForcePreloadNoneForMediaElements(enabled);
79 }
80
76 void WebSettingsImpl::setForceZeroLayoutHeight(bool enabled) 81 void WebSettingsImpl::setForceZeroLayoutHeight(bool enabled)
77 { 82 {
78 m_settings->setForceZeroLayoutHeight(enabled); 83 m_settings->setForceZeroLayoutHeight(enabled);
79 } 84 }
80 85
81 void WebSettingsImpl::setFullscreenSupported(bool enabled) 86 void WebSettingsImpl::setFullscreenSupported(bool enabled)
82 { 87 {
83 m_settings->setFullscreenSupported(enabled); 88 m_settings->setFullscreenSupported(enabled);
84 } 89 }
85 90
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 { 797 {
793 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies)); 798 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies));
794 } 799 }
795 800
796 void WebSettingsImpl::setViewportStyle(WebViewportStyle style) 801 void WebSettingsImpl::setViewportStyle(WebViewportStyle style)
797 { 802 {
798 m_devToolsEmulator->setViewportStyle(style); 803 m_devToolsEmulator->setViewportStyle(style);
799 } 804 }
800 805
801 } // namespace blink 806 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698