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: Fix tests. Created 6 years, 5 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
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 Gestures* ProcessTouchEventForGesture(
21 const TouchEvent& event, 21 const TouchEvent& event,
22 ui::EventResult result, 22 ui::EventResult result,
23 GestureConsumer* consumer) OVERRIDE { 23 GestureConsumer* consumer) OVERRIDE {
24 return NULL; 24 return NULL;
25 } 25 }
26 virtual ScopedVector<GestureEvent>* AckTouchEventForGesture(
27 ui::EventResult result,
28 GestureConsumer* target) OVERRIDE {
29 return NULL;
30 }
26 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) OVERRIDE { 31 virtual bool CleanupStateForConsumer(GestureConsumer* consumer) OVERRIDE {
27 return false; 32 return false;
28 } 33 }
29 virtual GestureConsumer* GetTouchLockedTarget( 34 virtual GestureConsumer* GetTouchLockedTarget(
30 const TouchEvent& event) OVERRIDE { 35 const TouchEvent& event) OVERRIDE {
31 return NULL; 36 return NULL;
32 } 37 }
33 virtual GestureConsumer* GetTargetForGestureEvent( 38 virtual GestureConsumer* GetTargetForGestureEvent(
34 const GestureEvent& event) OVERRIDE { 39 const GestureEvent& event) OVERRIDE {
35 return NULL; 40 return NULL;
(...skipping 19 matching lines...) Expand all
55 60
56 } // namespace 61 } // namespace
57 62
58 // static 63 // static
59 GestureRecognizer* GestureRecognizer::Get() { 64 GestureRecognizer* GestureRecognizer::Get() {
60 CR_DEFINE_STATIC_LOCAL(GestureRecognizerImplMac, instance, ()); 65 CR_DEFINE_STATIC_LOCAL(GestureRecognizerImplMac, instance, ());
61 return &instance; 66 return &instance;
62 } 67 }
63 68
64 } // namespace ui 69 } // namespace ui
OLDNEW
« ui/aura/window_event_dispatcher.cc ('K') | « 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