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

Unified Diff: Source/core/testing/InternalSettings.cpp

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/style/StyleRareInheritedData.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/InternalSettings.cpp
diff --git a/Source/core/testing/InternalSettings.cpp b/Source/core/testing/InternalSettings.cpp
index 8797c6169da024ad4bb7f805d0e30edb3ec11d75..bf1b54c9edb1cd82c76e1ac37f558771cefd6ab1 100644
--- a/Source/core/testing/InternalSettings.cpp
+++ b/Source/core/testing/InternalSettings.cpp
@@ -218,8 +218,13 @@ void InternalSettings::setStyleScopedEnabled(bool enabled)
void InternalSettings::setTouchEventEmulationEnabled(bool enabled, ExceptionCode& ec)
{
+#if ENABLE(TOUCH_EVENTS)
InternalSettingsGuardForSettings();
settings()->setTouchEventEmulationEnabled(enabled);
+#else
+ UNUSED_PARAM(enabled);
+ UNUSED_PARAM(ec);
+#endif
}
typedef void (Settings::*SetFontFamilyFunction)(const AtomicString&, UScriptCode);
« 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