OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 { | 175 { |
176 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled); | 176 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled); |
177 } | 177 } |
178 | 178 |
179 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat
e& es) | 179 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionStat
e& es) |
180 { | 180 { |
181 InternalSettingsGuardForSettings(); | 181 InternalSettingsGuardForSettings(); |
182 settings()->setTouchEventEmulationEnabled(enabled); | 182 settings()->setTouchEventEmulationEnabled(enabled); |
183 } | 183 } |
184 | 184 |
| 185 void InternalSettings::setViewportEnabled(bool enabled, ExceptionState& es) |
| 186 { |
| 187 InternalSettingsGuardForSettings(); |
| 188 settings()->setViewportEnabled(enabled); |
| 189 } |
| 190 |
185 // FIXME: This is a temporary flag and should be removed once accelerated | 191 // FIXME: This is a temporary flag and should be removed once accelerated |
186 // overflow scroll is ready (crbug.com/254111). | 192 // overflow scroll is ready (crbug.com/254111). |
187 void InternalSettings::setCompositorDrivenAcceleratedScrollingEnabled(bool enabl
ed, ExceptionState& es) | 193 void InternalSettings::setCompositorDrivenAcceleratedScrollingEnabled(bool enabl
ed, ExceptionState& es) |
188 { | 194 { |
189 InternalSettingsGuardForSettings(); | 195 InternalSettingsGuardForSettings(); |
190 settings()->setCompositorDrivenAcceleratedScrollingEnabled(enabled); | 196 settings()->setCompositorDrivenAcceleratedScrollingEnabled(enabled); |
191 } | 197 } |
192 | 198 |
193 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode
); | 199 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode
); |
194 static void setFontFamily(Settings* settings, const String& family, const String
& script, SetFontFamilyFunction setter) | 200 static void setFontFamily(Settings* settings, const String& family, const String
& script, SetFontFamilyFunction setter) |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 settings()->setImagesEnabled(enabled); | 306 settings()->setImagesEnabled(enabled); |
301 } | 307 } |
302 | 308 |
303 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat
e& es) | 309 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionStat
e& es) |
304 { | 310 { |
305 InternalSettingsGuardForSettings(); | 311 InternalSettingsGuardForSettings(); |
306 settings()->setDefaultVideoPosterURL(url); | 312 settings()->setDefaultVideoPosterURL(url); |
307 } | 313 } |
308 | 314 |
309 } | 315 } |
OLD | NEW |