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

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

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added ForwardGestureEvents()in RootView and incorporated comments 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 unified diff | Download patch | Annotate | Revision Log
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/touchui/gesture_recognizer.h"
10 #include "views/view.h" 11 #include "views/view.h"
11 12
12 namespace ui { 13 namespace ui {
13 enum TouchStatus; 14 enum TouchStatus;
14 } 15 }
15 16
16 namespace views { 17 namespace views {
17 class TouchEvent; 18 class TouchEvent;
18 19
19 // A GestureManager singleton detects gestures occurring in the 20 // A GestureManager singleton detects gestures occurring in the
(...skipping 21 matching lines...) Expand all
41 42
42 // TODO(rjkroege): Write the remainder of this class. 43 // TODO(rjkroege): Write the remainder of this class.
43 // It will appear in a subsequent CL. 44 // It will appear in a subsequent CL.
44 45
45 protected: 46 protected:
46 GestureManager(); 47 GestureManager();
47 48
48 private: 49 private:
49 friend struct DefaultSingletonTraits<GestureManager>; 50 friend struct DefaultSingletonTraits<GestureManager>;
50 51
52 // Source view's RootView, This instance is not owned by GestureManager.
53 // See ProcessTouchEventForGesture() for source definition.
54 // Note: Simultaneous Gestures happening across two different RootViews are
rjkroege 2011/10/27 23:10:07 in touchui, there is only one root view. This wou
Gajen 2011/10/31 13:34:30 Discarded completely as GR is now derived from GM
55 // Not Recognized. Exception to this is TYPE_CHILD widget which still could
56 // be NativeWidgetGtk.
57 RootView* root_view_;
58
59 // GestureRecognizer instance.
60 GestureRecognizer gesture_recognizer_;
61
51 DISALLOW_COPY_AND_ASSIGN(GestureManager); 62 DISALLOW_COPY_AND_ASSIGN(GestureManager);
52 }; 63 };
53 64
54 65
55 } // namespace views 66 } // namespace views
56 67
57 #endif // VIEWS_TOUCHUI_GESTURE_MANAGER_H_ 68 #endif // VIEWS_TOUCHUI_GESTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698