OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |