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

Side by Side Diff: ui/events/gestures/gesture_recognizer_impl_mac.cc

Issue 503883004: Don't pass touches to gesture recognizer for async acks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac build. Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/macros.h" 5 #include "base/macros.h"
6 #include "ui/events/gestures/gesture_recognizer.h" 6 #include "ui/events/gestures/gesture_recognizer.h"
7 7
8 namespace ui { 8 namespace ui {
9 9
10 namespace { 10 namespace {
(...skipping 12 matching lines...) Expand all
23 return false; 23 return false;
24 } 24 }
25 25
26 virtual Gestures* ProcessTouchEventPostDispatch( 26 virtual Gestures* ProcessTouchEventPostDispatch(
27 const TouchEvent& event, 27 const TouchEvent& event,
28 ui::EventResult result, 28 ui::EventResult result,
29 GestureConsumer* consumer) OVERRIDE { 29 GestureConsumer* consumer) OVERRIDE {
30 return NULL; 30 return NULL;
31 } 31 }
32 virtual Gestures* ProcessTouchEventOnAsyncAck( 32 virtual Gestures* ProcessTouchEventOnAsyncAck(
33 const TouchEvent& event,
34 ui::EventResult result, 33 ui::EventResult result,
35 GestureConsumer* consumer) OVERRIDE { 34 GestureConsumer* consumer) OVERRIDE {
36 return NULL; 35 return NULL;
37 }; 36 };
38 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) OVERRIDE { 37 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) OVERRIDE {
39 return false; 38 return false;
40 } 39 }
41 virtual GestureConsumer* GetTouchLockedTarget( 40 virtual GestureConsumer* GetTouchLockedTarget(
42 const TouchEvent& event) OVERRIDE { 41 const TouchEvent& event) OVERRIDE {
43 return NULL; 42 return NULL;
(...skipping 23 matching lines...) Expand all
67 66
68 } // namespace 67 } // namespace
69 68
70 // static 69 // static
71 GestureRecognizer* GestureRecognizer::Get() { 70 GestureRecognizer* GestureRecognizer::Get() {
72 CR_DEFINE_STATIC_LOCAL(GestureRecognizerImplMac, instance, ()); 71 CR_DEFINE_STATIC_LOCAL(GestureRecognizerImplMac, instance, ());
73 return &instance; 72 return &instance;
74 } 73 }
75 74
76 } // namespace ui 75 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698