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

Side by Side Diff: Source/core/testing/InternalSettings.cpp

Issue 14296003: Remove TOUCH_EVENTS and TOUCH_EVENT_TRACKING compile-time flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase. Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/style/StyleRareInheritedData.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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)
222 InternalSettingsGuardForSettings(); 221 InternalSettingsGuardForSettings();
223 settings()->setTouchEventEmulationEnabled(enabled); 222 settings()->setTouchEventEmulationEnabled(enabled);
224 #else
225 UNUSED_PARAM(enabled);
226 UNUSED_PARAM(ec);
227 #endif
228 } 223 }
229 224
230 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode ); 225 typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode );
231 static void setFontFamily(Settings* settings, const String& family, const String & script, SetFontFamilyFunction setter) 226 static void setFontFamily(Settings* settings, const String& family, const String & script, SetFontFamilyFunction setter)
232 { 227 {
233 UScriptCode code = scriptNameToCode(script); 228 UScriptCode code = scriptNameToCode(script);
234 if (code != USCRIPT_INVALID_CODE) 229 if (code != USCRIPT_INVALID_CODE)
235 (settings->*setter)(family, code); 230 (settings->*setter)(family, code);
236 } 231 }
237 232
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 settings()->setMinDOMTimerInterval(intervalInSeconds); 406 settings()->setMinDOMTimerInterval(intervalInSeconds);
412 } 407 }
413 408
414 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode & ec) 409 void InternalSettings::setDefaultVideoPosterURL(const String& url, ExceptionCode & ec)
415 { 410 {
416 InternalSettingsGuardForSettings(); 411 InternalSettingsGuardForSettings();
417 settings()->setDefaultVideoPosterURL(url); 412 settings()->setDefaultVideoPosterURL(url);
418 } 413 }
419 414
420 } 415 }
OLDNEW
« no previous file with comments | « Source/core/rendering/style/StyleRareInheritedData.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698