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

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

Issue 393953012: Eager Gesture Recognition on Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/events/gestures/gesture_recognizer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
11 11
12 // Stub implementation of GestureRecognizer for Mac. Currently only serves to 12 // Stub implementation of GestureRecognizer for Mac. Currently only serves to
13 // provide a no-op implementation of TransferEventsTo(). 13 // provide a no-op implementation of TransferEventsTo().
14 class GestureRecognizerImplMac : public GestureRecognizer { 14 class GestureRecognizerImplMac : public GestureRecognizer {
15 public: 15 public:
16 GestureRecognizerImplMac() {} 16 GestureRecognizerImplMac() {}
17 virtual ~GestureRecognizerImplMac() {} 17 virtual ~GestureRecognizerImplMac() {}
18 18
19 private: 19 private:
20 virtual Gestures* ProcessTouchEventForGesture( 20 virtual bool ProcessTouchEventPreDispatch(
21 const TouchEvent& event,
22 GestureConsumer* consumer) OVERRIDE {
23 return false;
24 }
25
26 virtual Gestures* ProcessTouchEventPostDispatch(
21 const TouchEvent& event, 27 const TouchEvent& event,
22 ui::EventResult result, 28 ui::EventResult result,
23 GestureConsumer* consumer) OVERRIDE { 29 GestureConsumer* consumer) OVERRIDE {
24 return NULL; 30 return NULL;
25 } 31 }
32 virtual Gestures* ProcessTouchEventOnAsyncAck(
33 const TouchEvent& event,
34 ui::EventResult result,
35 GestureConsumer* consumer) OVERRIDE {
36 return NULL;
37 };
26 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) OVERRIDE { 38 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) OVERRIDE {
27 return false; 39 return false;
28 } 40 }
29 virtual GestureConsumer* GetTouchLockedTarget( 41 virtual GestureConsumer* GetTouchLockedTarget(
30 const TouchEvent& event) OVERRIDE { 42 const TouchEvent& event) OVERRIDE {
31 return NULL; 43 return NULL;
32 } 44 }
33 virtual GestureConsumer* GetTargetForGestureEvent( 45 virtual GestureConsumer* GetTargetForGestureEvent(
34 const GestureEvent& event) OVERRIDE { 46 const GestureEvent& event) OVERRIDE {
35 return NULL; 47 return NULL;
(...skipping 19 matching lines...) Expand all
55 67
56 } // namespace 68 } // namespace
57 69
58 // static 70 // static
59 GestureRecognizer* GestureRecognizer::Get() { 71 GestureRecognizer* GestureRecognizer::Get() {
60 CR_DEFINE_STATIC_LOCAL(GestureRecognizerImplMac, instance, ()); 72 CR_DEFINE_STATIC_LOCAL(GestureRecognizerImplMac, instance, ());
61 return &instance; 73 return &instance;
62 } 74 }
63 75
64 } // namespace ui 76 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/gestures/gesture_recognizer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698