From a42eb814214ad923bd10776caa4f2eac26e83594 Mon Sep 17 00:00:00 2001 From: Oleg Romashin Date: Tue, 11 Mar 2014 08:24:12 -0700 Subject: [PATCH] Bug 982118 - Move ui.click_hold_context_menus.delay to gfxPrefs. r=kgupta --- gfx/layers/ipc/GestureEventListener.cpp | 2 +- gfx/thebes/gfxPrefs.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/layers/ipc/GestureEventListener.cpp b/gfx/layers/ipc/GestureEventListener.cpp index 2a0659db526d..82f62350fed1 100644 --- a/gfx/layers/ipc/GestureEventListener.cpp +++ b/gfx/layers/ipc/GestureEventListener.cpp @@ -85,7 +85,7 @@ nsEventStatus GestureEventListener::HandleInputEvent(const MultiTouchInput& aEve mAsyncPanZoomController->PostDelayedTask( mLongTapTimeoutTask, - Preferences::GetInt("ui.click_hold_context_menus.delay", 500)); + gfxPrefs::UiClickHoldContextMenusDelay()); } } else if (length == 2) { // Another finger has been added; it can't be a tap anymore. diff --git a/gfx/thebes/gfxPrefs.h b/gfx/thebes/gfxPrefs.h index e2d7bbe29368..caf62df8567b 100644 --- a/gfx/thebes/gfxPrefs.h +++ b/gfx/thebes/gfxPrefs.h @@ -176,6 +176,7 @@ private: DECL_GFX_PREF(Once, "layout.frame_rate", LayoutFrameRate, int32_t, -1); DECL_GFX_PREF(Live, "nglayout.debug.widget_update_flashing", WidgetUpdateFlashing, bool, false); + DECL_GFX_PREF(Live, "ui.click_hold_context_menus.delay", UiClickHoldContextMenusDelay, int32_t, 500); DECL_GFX_PREF(Once, "webgl.force-layers-readback", WebGLForceLayersReadback, bool, false);