Fix search results being clipped in app list.
[chromium-blink-merge.git] / ui / events / gestures / gesture_recognizer_impl_mac.cc
blob5d77e840a0a766ca9f8e0bc26359f32e87915bce
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
3 // found in the LICENSE file.
5 #include "base/macros.h"
6 #include "ui/events/gestures/gesture_recognizer.h"
8 namespace ui {
10 namespace {
12 // Stub implementation of GestureRecognizer for Mac. Currently only serves to
13 // provide a no-op implementation of TransferEventsTo().
14 class GestureRecognizerImplMac : public GestureRecognizer {
15 public:
16 GestureRecognizerImplMac() {}
17 ~GestureRecognizerImplMac() override {}
19 private:
20 bool ProcessTouchEventPreDispatch(TouchEvent* event,
21 GestureConsumer* consumer) override {
22 return false;
25 Gestures* AckAsyncTouchEvent(ui::EventResult result,
26 GestureConsumer* consumer) override {
27 return NULL;
29 Gestures* AckSyncTouchEvent(const uint64 unique_event_id,
30 ui::EventResult result,
31 GestureConsumer* consumer) override {
32 return NULL;
34 bool CleanupStateForConsumer(GestureConsumer* consumer) override {
35 return false;
37 GestureConsumer* GetTouchLockedTarget(const TouchEvent& event) override {
38 return NULL;
40 GestureConsumer* GetTargetForGestureEvent(
41 const GestureEvent& event) override {
42 return NULL;
44 GestureConsumer* GetTargetForLocation(const gfx::PointF& location,
45 int source_device_id) override {
46 return NULL;
48 void CancelActiveTouchesExcept(GestureConsumer* not_cancelled) override {}
49 void TransferEventsTo(GestureConsumer* current_consumer,
50 GestureConsumer* new_consumer) override {}
51 bool GetLastTouchPointForTarget(GestureConsumer* consumer,
52 gfx::PointF* point) override {
53 return false;
55 bool CancelActiveTouches(GestureConsumer* consumer) override { return false; }
56 void AddGestureEventHelper(GestureEventHelper* helper) override {}
57 void RemoveGestureEventHelper(GestureEventHelper* helper) override {}
59 DISALLOW_COPY_AND_ASSIGN(GestureRecognizerImplMac);
62 } // namespace
64 // static
65 GestureRecognizer* GestureRecognizer::Get() {
66 CR_DEFINE_STATIC_LOCAL(GestureRecognizerImplMac, instance, ());
67 return &instance;
70 } // namespace ui