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

Unified Diff: ui/ozone/platform/caca/caca_event_factory.h

Issue 387953004: ozone: caca: Convert to PlatformWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/caca/caca_connection.cc ('k') | ui/ozone/platform/caca/caca_event_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/caca_event_factory.h
diff --git a/ui/ozone/platform/caca/caca_event_factory.h b/ui/ozone/platform/caca/caca_event_factory.h
index f732f00865f2f276701c26a71fc0be20b8959db6..9db633b1e865b5ad1a4d7afec4ac7d513f6db173 100644
--- a/ui/ozone/platform/caca/caca_event_factory.h
+++ b/ui/ozone/platform/caca/caca_event_factory.h
@@ -5,41 +5,37 @@
#ifndef UI_OZONE_PLATFORM_CACA_CACA_EVENT_FACTORY_H_
#define UI_OZONE_PLATFORM_CACA_CACA_EVENT_FACTORY_H_
+#include <caca.h>
+
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
#include "ui/events/platform/platform_event_source.h"
+#include "ui/events/platform/scoped_event_dispatcher.h"
#include "ui/gfx/geometry/point_f.h"
#include "ui/ozone/public/event_factory_ozone.h"
namespace ui {
-class CacaConnection;
+class CacaWindow;
class CacaEventFactory : public EventFactoryOzone,
public PlatformEventSource {
public:
- CacaEventFactory(CacaConnection* connection);
+ CacaEventFactory();
virtual ~CacaEventFactory();
// ui::EventFactoryOzone:
virtual void WarpCursorTo(gfx::AcceleratedWidget widget,
const gfx::PointF& location) OVERRIDE;
- private:
- // PlatformEventSource:
- virtual void OnDispatcherListChanged() OVERRIDE;
-
- void ScheduleEventProcessing();
-
- void TryProcessingEvent();
+ // Poll for an event on a particular window. Input events will be
+ // dispatched on the given dispatcher.
+ void TryProcessingEvent(CacaWindow* window);
- CacaConnection* connection_; // Not owned.
-
- base::WeakPtrFactory<CacaEventFactory> weak_ptr_factory_;
-
- // Delay between event polls.
- base::TimeDelta delay_;
+ // Process an input event on a particular window.
+ void OnInputEvent(caca_event_t* event, CacaWindow* window);
+ private:
// Keep track of last cursor position to dispatch correct mouse push/release
// events.
gfx::PointF last_cursor_location_;
« no previous file with comments | « ui/ozone/platform/caca/caca_connection.cc ('k') | ui/ozone/platform/caca/caca_event_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698