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

Side by Side Diff: ui/events/ozone/event_factory_ozone.h

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 years, 6 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
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
6 #define UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
7
8 #include <map>
9
10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_pump_libevent.h"
12 #include "ui/events/ozone/events_ozone_export.h"
13 #include "ui/gfx/native_widget_types.h"
14
15 namespace gfx {
16 class PointF;
17 }
18
19 namespace ui {
20
21 class Event;
22
23 // Creates and dispatches |ui.Event|'s. Ozone assumes that events arrive on file
24 // descriptors with one |EventConverterOzone| instance for each descriptor.
25 // Ozone presumes that the set of file descriptors can vary at runtime so this
26 // class supports dynamically adding and removing |EventConverterOzone|
27 // instances as necessary.
28 class EVENTS_OZONE_EXPORT EventFactoryOzone {
29 public:
30 EventFactoryOzone();
31 virtual ~EventFactoryOzone();
32
33 // Warp the cursor to a location within an AccelerateWidget.
34 // If the cursor actually moves, the implementation must dispatch a mouse
35 // move event with the new location.
36 virtual void WarpCursorTo(gfx::AcceleratedWidget widget,
37 const gfx::PointF& location);
38
39 // Returns the singleton instance.
40 static EventFactoryOzone* GetInstance();
41
42 private:
43 static EventFactoryOzone* impl_; // not owned
44
45 DISALLOW_COPY_AND_ASSIGN(EventFactoryOzone);
46 };
47
48 } // namespace ui
49
50 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/evdev/touch_event_converter_evdev.cc ('k') | ui/events/ozone/event_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698