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

Side by Side Diff: ui/events/ozone/evdev/event_factory_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
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_FACTORY_EVDEV_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 EventFactoryEvdev(CursorDelegateEvdev* cursor, 30 EventFactoryEvdev(CursorDelegateEvdev* cursor,
31 DeviceManager* device_manager); 31 DeviceManager* device_manager);
32 virtual ~EventFactoryEvdev(); 32 virtual ~EventFactoryEvdev();
33 33
34 void DispatchUiEvent(Event* event); 34 void DispatchUiEvent(Event* event);
35 35
36 // EventFactoryOzone: 36 // EventFactoryOzone:
37 virtual void WarpCursorTo(gfx::AcceleratedWidget widget, 37 virtual void WarpCursorTo(gfx::AcceleratedWidget widget,
38 const gfx::PointF& location) OVERRIDE; 38 const gfx::PointF& location) OVERRIDE;
39 virtual bool HasIndirectTouch() OVERRIDE;
40 virtual bool HasRelXY() OVERRIDE;
39 41
40 private: 42 private:
41 // Open device at path & starting processing events (on UI thread). 43 // Open device at path & starting processing events (on UI thread).
42 void AttachInputDevice(const base::FilePath& file_path, 44 void AttachInputDevice(const base::FilePath& file_path,
43 scoped_ptr<EventConverterEvdev> converter); 45 scoped_ptr<EventConverterEvdev> converter);
44 46
45 // Close device at path (on UI thread). 47 // Close device at path (on UI thread).
46 void DetachInputDevice(const base::FilePath& file_path); 48 void DetachInputDevice(const base::FilePath& file_path);
47 49
48 // DeviceEventObserver overrides: 50 // DeviceEventObserver overrides:
(...skipping 24 matching lines...) Expand all
73 75
74 // Support weak pointers for attach & detach callbacks. 76 // Support weak pointers for attach & detach callbacks.
75 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_; 77 base::WeakPtrFactory<EventFactoryEvdev> weak_ptr_factory_;
76 78
77 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev); 79 DISALLOW_COPY_AND_ASSIGN(EventFactoryEvdev);
78 }; 80 };
79 81
80 } // namespace ui 82 } // namespace ui
81 83
82 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_ 84 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_FACTORY_EVDEV_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698