Chromium Code Reviews| Index: ui/aura/gestures/gesture_recognizer_grail.h |
| =================================================================== |
| --- ui/aura/gestures/gesture_recognizer_grail.h (revision 0) |
| +++ ui/aura/gestures/gesture_recognizer_grail.h (revision 0) |
| @@ -0,0 +1,57 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_AURA_GESTURES_GESTURE_RECOGNIZER_GRAIL_H_ |
| +#define UI_AURA_GESTURES_GESTURE_RECOGNIZER_GRAIL_H_ |
| +#pragma once |
| + |
| +#include <map> |
| +#include <queue> |
| +#include <vector> |
| + |
| +#include "base/compiler_specific.h" |
| +#include "base/memory/linked_ptr.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "ui/aura/aura_export.h" |
| +#include "ui/aura/gestures/gesture_recognizer.h" |
| +#include "ui/base/events.h" |
| + |
| +namespace aura { |
| +class GestureEvent; |
| +class TouchEvent; |
| +class Window; |
| + |
| +// A GestureRecognizer is an abstract base class for |
| +// conversion of touch events into gestures. |
| +class AURA_EXPORT GestureRecognizerGrail : public GestureRecognizer { |
| + public: |
| + explicit GestureRecognizerGrail(RootWindow* window = NULL); |
|
sadrul
2012/04/03 19:52:01
Avoid default args
|
| + |
| + // Invoked for each touch event that could contribute to |
| + // the current gesture. |
| + // Returns list of zero or more GestureEvents identified after processing |
| + // TouchEvent. |
| + // Caller would be responsible for freeing up Gestures. |
| + virtual GestureRecognizer::Gestures* |
| + ProcessTouchEventForGesture(const TouchEvent& event, |
| + ui::TouchStatus status) OVERRIDE; |
| + |
| + void QueueTouchEventForGesture(Window* window, |
| + const TouchEvent& event) OVERRIDE; |
| + |
| + void FlushTouchQueue(Window* window) OVERRIDE; |
| + |
| + Gestures* AdvanceTouchQueue(Window* window, bool processed) OVERRIDE; |
| + |
| + private: |
| + struct Private; |
| + scoped_ptr<Private> d_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GestureRecognizerGrail); |
| +}; |
| + |
| +} // namespace aura |
| + |
| +#endif // UI_AURA_GESTURES_GESTURE_RECOGNIZER_GRAIL_H_ |
| + |
| Property changes on: ui/aura/gestures/gesture_recognizer_grail.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |