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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(isEnabled); | 211 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(isEnabled); |
212 } | 212 } |
213 | 213 |
214 void InternalSettings::setStyleScopedEnabled(bool enabled) | 214 void InternalSettings::setStyleScopedEnabled(bool enabled) |
215 { | 215 { |
216 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled); | 216 RuntimeEnabledFeatures::setStyleScopedEnabled(enabled); |
217 } | 217 } |
218 | 218 |
219 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionCode
& ec) | 219 void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionCode
& ec) |
220 { | 220 { |
| 221 #if ENABLE(TOUCH_EVENTS) |
221 InternalSettingsGuardForSettings(); | 222 InternalSettingsGuardForSettings(); |
222 settings()->setTouchEventEmulationEnabled(enabled); | 223 settings()->setTouchEventEmulationEnabled(enabled); |
| 224 #else |
| 225 UNUSED_PARAM(enabled); |
| 226 UNUSED_PARAM(ec); |
| 227 #endif |
223 } | 228 } |
224 | 229 |
225 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode
); | 230 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode
); |
226 static void setFontFamily(Settings* settings, const String& family, const String
& script, SetFontFamilyFunction setter) | 231 static void setFontFamily(Settings* settings, const String& family, const String
& script, SetFontFamilyFunction setter) |
227 { | 232 { |
228 UScriptCode code = scriptNameToCode(script); | 233 UScriptCode code = scriptNameToCode(script); |
229 if (code != USCRIPT_INVALID_CODE) | 234 if (code != USCRIPT_INVALID_CODE) |
230 (settings->*setter)(family, code); | 235 (settings->*setter)(family, code); |
231 } | 236 } |
232 | 237 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 settings()->setMinDOMTimerInterval(intervalInSeconds); | 411 settings()->setMinDOMTimerInterval(intervalInSeconds); |
407 } | 412 } |
408 | 413 |
409 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) | 414 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode
& ec) |
410 { | 415 { |
411 InternalSettingsGuardForSettings(); | 416 InternalSettingsGuardForSettings(); |
412 settings()->setDefaultVideoPosterURL(url); | 417 settings()->setDefaultVideoPosterURL(url); |
413 } | 418 } |
414 | 419 |
415 } | 420 } |
OLD | NEW |