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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/event_factory_ozone.h
diff --git a/ui/events/ozone/event_factory_ozone.h b/ui/events/ozone/event_factory_ozone.h
deleted file mode 100644
index 882ebb184c332248ad751911c8598a22e7683126..0000000000000000000000000000000000000000
--- a/ui/events/ozone/event_factory_ozone.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
-#define UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
-
-#include <map>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_pump_libevent.h"
-#include "ui/events/ozone/events_ozone_export.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace gfx {
-class PointF;
-}
-
-namespace ui {
-
-class Event;
-
-// Creates and dispatches |ui.Event|'s. Ozone assumes that events arrive on file
-// descriptors with one |EventConverterOzone| instance for each descriptor.
-// Ozone presumes that the set of file descriptors can vary at runtime so this
-// class supports dynamically adding and removing |EventConverterOzone|
-// instances as necessary.
-class EVENTS_OZONE_EXPORT EventFactoryOzone {
- public:
- EventFactoryOzone();
- virtual ~EventFactoryOzone();
-
- // Warp the cursor to a location within an AccelerateWidget.
- // If the cursor actually moves, the implementation must dispatch a mouse
- // move event with the new location.
- virtual void WarpCursorTo(gfx::AcceleratedWidget widget,
- const gfx::PointF& location);
-
- // Returns the singleton instance.
- static EventFactoryOzone* GetInstance();
-
- private:
- static EventFactoryOzone* impl_; // not owned
-
- DISALLOW_COPY_AND_ASSIGN(EventFactoryOzone);
-};
-
-} // namespace ui
-
-#endif // UI_EVENTS_OZONE_EVENT_FACTORY_OZONE_H_
« 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