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

Unified Diff: ui/base/ozone/event_converter_ozone.cc

Issue 16466003: Event handling support for ozone. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase-ed for removal of DRT Created 7 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/base/ozone/event_converter_ozone.h ('k') | ui/base/ozone/event_factory_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ozone/event_converter_ozone.cc
diff --git a/ui/base/ozone/event_converter_ozone.cc b/ui/base/ozone/event_converter_ozone.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0be50362d207b61f296e711647e7f7bc674650bc
--- /dev/null
+++ b/ui/base/ozone/event_converter_ozone.cc
@@ -0,0 +1,33 @@
+// 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.
+
+#include "ui/base/ozone/event_converter_ozone.h"
+
+#include "base/bind.h"
+#include "base/message_loop.h"
+#include "base/message_pump_ozone.h"
+#include "ui/base/events/event.h"
+
+namespace {
+
+void DispatchEventHelper(scoped_ptr<ui::Event> key) {
+ base::MessagePumpOzone::Current()->Dispatch(key.get());
+}
+
+} // namespace
+
+namespace ui {
+
+EventConverterOzone::EventConverterOzone() {
+}
+
+EventConverterOzone::~EventConverterOzone() {
+}
+
+void EventConverterOzone::DispatchEvent(scoped_ptr<ui::Event> event) {
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&DispatchEventHelper, base::Passed(&event)));
+}
+
+} // namespace ui
« no previous file with comments | « ui/base/ozone/event_converter_ozone.h ('k') | ui/base/ozone/event_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698