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

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

Issue 149503003: Remove common EventConverterOzone class & move to EventConverterEvdev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/DispatchEventHelper/DispatchEventTask/ Created 6 years, 11 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/event_converter_ozone.h ('k') | ui/events/ozone/event_factory_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/event_converter_ozone.cc
diff --git a/ui/events/ozone/event_converter_ozone.cc b/ui/events/ozone/event_converter_ozone.cc
deleted file mode 100644
index d624e25cf75c4cdc932a0e40fd39f96acd19e750..0000000000000000000000000000000000000000
--- a/ui/events/ozone/event_converter_ozone.cc
+++ /dev/null
@@ -1,35 +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.
-
-#include "ui/events/ozone/event_converter_ozone.h"
-
-#include "base/bind.h"
-#include "base/debug/trace_event.h"
-#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_pump_ozone.h"
-#include "ui/events/event.h"
-
-namespace {
-
-void DispatchEventHelper(scoped_ptr<ui::Event> key) {
- TRACE_EVENT1("ozone", "DispatchEventHelper", "type", key->type());
- 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/events/ozone/event_converter_ozone.h ('k') | ui/events/ozone/event_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698