diff options
author | tdresser@chromium.org <tdresser@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-22 21:17:16 +0000 |
---|---|---|
committer | tdresser@chromium.org <tdresser@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-22 21:17:16 +0000 |
commit | 5fd860aba4fb327e73ce1824a037c83bdb5db1ce (patch) | |
tree | c03cef62fc46cdc855a4a651434136dca85a4959 /ui/aura/root_window.h | |
parent | 536ef134a10d7bddf616f7aec49c7e49a0232abf (diff) | |
download | chromium_src-5fd860aba4fb327e73ce1824a037c83bdb5db1ce.zip chromium_src-5fd860aba4fb327e73ce1824a037c83bdb5db1ce.tar.gz chromium_src-5fd860aba4fb327e73ce1824a037c83bdb5db1ce.tar.bz2 |
Add show press gesture and remove tap down deferral
The show press gesture fires a set time after a tap down event occurs, if
nothing has happened to cancel the tap gesture. This change also makes views
menus listen to show press, instead of tap down, avoiding menu items flashing
active on scroll.
Tap down gestures are temporarily disabled by the GEF, a later patch will enable them once
they're handled correctly in Blink. Their functionality has been replaced by the show press gesture.
See crbug.com/302752#c1 for more details on cleanup work required after this patch.
BUG=302752
TEST=GestureRecognizerTest.GestureEventShowPress, GestureRecognizerTest.GestureEventShowPressCancelledByScroll, GestureRecognizerTest.GestureEventShowPressSentOnTap
Review URL: https://codereview.chromium.org/26419004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230206 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window.h')
-rw-r--r-- | ui/aura/root_window.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h index 7c84fa7..bbbc9b0 100644 --- a/ui/aura/root_window.h +++ b/ui/aura/root_window.h @@ -312,7 +312,7 @@ class AURA_EXPORT RootWindow : public Window, // Overridden from ui::GestureEventHelper. virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; - virtual void DispatchLongPressGestureEvent(ui::GestureEvent* event) OVERRIDE; + virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE; virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; // Overridden from ui::LayerAnimationObserver: |