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

Unified Diff: views/touchui/gesture_manager.h

Issue 8568022: views: Move desktop and touchui directories to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/touchui/OWNERS ('k') | views/touchui/gesture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/touchui/gesture_manager.h
diff --git a/views/touchui/gesture_manager.h b/views/touchui/gesture_manager.h
deleted file mode 100644
index 12fee961b7a75d23104c9b784dc49ad6398627d2..0000000000000000000000000000000000000000
--- a/views/touchui/gesture_manager.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2011 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 VIEWS_TOUCHUI_GESTURE_MANAGER_H_
-#define VIEWS_TOUCHUI_GESTURE_MANAGER_H_
-#pragma once
-
-#include "base/memory/singleton.h"
-#include "views/view.h"
-
-namespace ui {
-enum TouchStatus;
-}
-
-namespace views {
-class TouchEvent;
-
-// A GestureManager singleton detects gestures occurring in the
-// incoming feed of touch events across all of the RootViews in
-// the system. In response to a given touch event, the GestureManager
-// updates its internal state and optionally dispatches synthetic
-// events to the invoking view.
-//
-class VIEWS_EXPORT GestureManager {
- public:
- virtual ~GestureManager();
-
- static GestureManager* GetInstance();
-
- // Invoked for each touch event that could contribute to the current gesture.
- // Takes the event and the View that originated it and which will also
- // be the target of any generated synthetic event. Finally, status
- // specifies if a touch sequence is in progress or not, so that the
- // GestureManager state can correctly reflect events that are handled
- // already.
- // Returns true if the event resulted in firing a synthetic event.
- virtual bool ProcessTouchEventForGesture(const TouchEvent& event,
- View* source,
- ui::TouchStatus status);
-
- // TODO(rjkroege): Write the remainder of this class.
- // It will appear in a subsequent CL.
-
- protected:
- GestureManager();
-
- private:
- friend struct DefaultSingletonTraits<GestureManager>;
-
- DISALLOW_COPY_AND_ASSIGN(GestureManager);
-};
-
-
-} // namespace views
-
-#endif // VIEWS_TOUCHUI_GESTURE_MANAGER_H_
« no previous file with comments | « views/touchui/OWNERS ('k') | views/touchui/gesture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698