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

Side by Side Diff: ui/events/ozone/evdev/event_converter_evdev.h

Issue 397063004: wip: not complete. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « ui/aura/window_tree_host_x11.cc ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('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 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_EVENT_CONVERTER_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 EventConverterEvdev(); 23 EventConverterEvdev();
24 explicit EventConverterEvdev(const EventDispatchCallback& callback); 24 explicit EventConverterEvdev(const EventDispatchCallback& callback);
25 virtual ~EventConverterEvdev(); 25 virtual ~EventConverterEvdev();
26 26
27 // Start converting events. 27 // Start converting events.
28 virtual void Start() = 0; 28 virtual void Start() = 0;
29 29
30 // Stop converting events. 30 // Stop converting events.
31 virtual void Stop() = 0; 31 virtual void Stop() = 0;
32 32
33 // What kind of device am I?
34 virtual bool HasIndirectTouch();
35 virtual bool HasRelXY();
36
33 protected: 37 protected:
34 // Dispatches an event using the dispatch-callback set using 38 // Dispatches an event using the dispatch-callback set using
35 // |SetDispatchCalback()|. 39 // |SetDispatchCalback()|.
36 virtual void DispatchEventToCallback(ui::Event* event); 40 virtual void DispatchEventToCallback(ui::Event* event);
37 41
38 private: 42 private:
39 EventDispatchCallback dispatch_callback_; 43 EventDispatchCallback dispatch_callback_;
40 44
41 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev); 45 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdev);
42 }; 46 };
43 47
44 } // namespace ui 48 } // namespace ui
45 49
46 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_ 50 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_x11.cc ('k') | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698