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

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h

Issue 661353006: ozone: evdev: Dispatch events in task (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_
6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_ 6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS _H_
7 7
8 #include <gestures/gestures.h> 8 #include <gestures/gestures.h>
9 #include <libevdev/libevdev.h> 9 #include <libevdev/libevdev.h>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void OnGestureButtonsChange(const Gesture* gesture, 61 void OnGestureButtonsChange(const Gesture* gesture,
62 const GestureButtonsChange* move); 62 const GestureButtonsChange* move);
63 void OnGestureContactInitiated(const Gesture* gesture); 63 void OnGestureContactInitiated(const Gesture* gesture);
64 void OnGestureFling(const Gesture* gesture, const GestureFling* fling); 64 void OnGestureFling(const Gesture* gesture, const GestureFling* fling);
65 void OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe); 65 void OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe);
66 void OnGestureSwipeLift(const Gesture* gesture, 66 void OnGestureSwipeLift(const Gesture* gesture,
67 const GestureSwipeLift* swipelift); 67 const GestureSwipeLift* swipelift);
68 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch); 68 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch);
69 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics); 69 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics);
70 70
71 void Dispatch(Event* event); 71 void Dispatch(scoped_ptr<Event> event);
72 void DispatchMouseButton(unsigned int modifier, bool down); 72 void DispatchMouseButton(unsigned int modifier, bool down);
73 void DispatchChangedKeys(Evdev* evdev, const timeval& time); 73 void DispatchChangedKeys(Evdev* evdev, const timeval& time);
74 74
75 // Shared modifier state. 75 // Shared modifier state.
76 EventModifiersEvdev* modifiers_; 76 EventModifiersEvdev* modifiers_;
77 77
78 // Shared cursor state. 78 // Shared cursor state.
79 CursorDelegateEvdev* cursor_; 79 CursorDelegateEvdev* cursor_;
80 80
81 // Shared keyboard state. 81 // Shared keyboard state.
82 KeyboardEvdev* keyboard_; 82 KeyboardEvdev* keyboard_;
83 83
84 // Callback for dispatching events. 84 // Callback for dispatching events.
85 EventDispatchCallback dispatch_callback_; 85 EventDispatchCallback dispatch_callback_;
86 86
87 // Gestures interpretation state. 87 // Gestures interpretation state.
88 gestures::GestureInterpreter* interpreter_; 88 gestures::GestureInterpreter* interpreter_;
89 89
90 // Last key state from libevdev. 90 // Last key state from libevdev.
91 unsigned long prev_key_state_[EVDEV_BITS_TO_LONGS(KEY_CNT)]; 91 unsigned long prev_key_state_[EVDEV_BITS_TO_LONGS(KEY_CNT)];
92 92
93 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); 93 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros);
94 }; 94 };
95 95
96 } // namspace ui 96 } // namspace ui
97 97
98 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C ROS_H_ 98 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C ROS_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/keyboard_evdev.cc ('k') | ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698