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

Side by Side Diff: views/touchui/gesture_manager.h

Issue 7550038: Rename VIEWS_API to VIEWS_EXPORT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | « views/painter.h ('k') | views/touchui/touch_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef VIEWS_TOUCHUI_GESTURE_MANAGER_H_ 5 #ifndef VIEWS_TOUCHUI_GESTURE_MANAGER_H_
6 #define VIEWS_TOUCHUI_GESTURE_MANAGER_H_ 6 #define VIEWS_TOUCHUI_GESTURE_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "views/view.h" 10 #include "views/view.h"
11 11
12 namespace ui { 12 namespace ui {
13 enum TouchStatus; 13 enum TouchStatus;
14 } 14 }
15 15
16 namespace views { 16 namespace views {
17 class TouchEvent; 17 class TouchEvent;
18 18
19 // A GestureManager singleton detects gestures occurring in the 19 // A GestureManager singleton detects gestures occurring in the
20 // incoming feed of touch events across all of the RootViews in 20 // incoming feed of touch events across all of the RootViews in
21 // the system. In response to a given touch event, the GestureManager 21 // the system. In response to a given touch event, the GestureManager
22 // updates its internal state and optionally dispatches synthetic 22 // updates its internal state and optionally dispatches synthetic
23 // events to the invoking view. 23 // events to the invoking view.
24 // 24 //
25 class VIEWS_API GestureManager { 25 class VIEWS_EXPORT GestureManager {
26 public: 26 public:
27 virtual ~GestureManager(); 27 virtual ~GestureManager();
28 28
29 static GestureManager* GetInstance(); 29 static GestureManager* GetInstance();
30 30
31 // Invoked for each touch event that could contribute to the current gesture. 31 // Invoked for each touch event that could contribute to the current gesture.
32 // Takes the event and the View that originated it and which will also 32 // Takes the event and the View that originated it and which will also
33 // be the target of any generated synthetic event. Finally, status 33 // be the target of any generated synthetic event. Finally, status
34 // specifies if a touch sequence is in progress or not, so that the 34 // specifies if a touch sequence is in progress or not, so that the
35 // GestureManager state can correctly reflect events that are handled 35 // GestureManager state can correctly reflect events that are handled
(...skipping 12 matching lines...) Expand all
48 private: 48 private:
49 friend struct DefaultSingletonTraits<GestureManager>; 49 friend struct DefaultSingletonTraits<GestureManager>;
50 50
51 DISALLOW_COPY_AND_ASSIGN(GestureManager); 51 DISALLOW_COPY_AND_ASSIGN(GestureManager);
52 }; 52 };
53 53
54 54
55 } // namespace views 55 } // namespace views
56 56
57 #endif // VIEWS_TOUCHUI_GESTURE_MANAGER_H_ 57 #endif // VIEWS_TOUCHUI_GESTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « views/painter.h ('k') | views/touchui/touch_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698