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

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

Issue 285303004: ozone: Remove the explicit call to start listening for events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: ui/ozone/platform/caca/caca_event_factory.cc
diff --git a/ui/ozone/platform/caca/caca_event_factory.cc b/ui/ozone/platform/caca/caca_event_factory.cc
index dd8bfc25610001c24d67033bf242314050efacf4..c17e5a4f9657b0138b1a1267e65bda609246c413 100644
--- a/ui/ozone/platform/caca/caca_event_factory.cc
+++ b/ui/ozone/platform/caca/caca_event_factory.cc
@@ -146,15 +146,15 @@ CacaEventFactory::CacaEventFactory(CacaConnection* connection)
CacaEventFactory::~CacaEventFactory() {
}
-void CacaEventFactory::StartProcessingEvents() {
- ScheduleEventProcessing();
-}
-
void CacaEventFactory::WarpCursorTo(gfx::AcceleratedWidget widget,
const gfx::PointF& location) {
NOTIMPLEMENTED();
}
+void CacaEventFactory::OnDispatcherListChanged() {
+ ScheduleEventProcessing();
+}
+
void CacaEventFactory::ScheduleEventProcessing() {
// Caca uses a poll based event retrieval. Since we don't want to block we'd
// either need to spin up a new thread or just poll. For simplicity just poll
« ui/events/ozone/evdev/event_factory_evdev.cc ('K') | « ui/ozone/platform/caca/caca_event_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698