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

Unified Diff: ui/events/ozone/evdev/key_event_converter.cc

Issue 28513004: Move evdev events support into EventFactoryDelegateEvdev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add evdev to filename_rules.gypi Created 7 years, 2 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/key_event_converter.h ('k') | ui/events/ozone/evdev/key_event_converter_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/key_event_converter.cc
diff --git a/ui/events/ozone/evdev/key_event_converter_ozone.cc b/ui/events/ozone/evdev/key_event_converter.cc
similarity index 96%
rename from ui/events/ozone/evdev/key_event_converter_ozone.cc
rename to ui/events/ozone/evdev/key_event_converter.cc
index dbb31650b2d6282ea47813190ec4077e2d817dae..177e4e7a6a1f411c0bbbc1636aadcb401925a390 100644
--- a/ui/events/ozone/evdev/key_event_converter_ozone.cc
+++ b/ui/events/ozone/evdev/key_event_converter.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/events/ozone/evdev/key_event_converter_ozone.h"
+#include "ui/events/ozone/evdev/key_event_converter.h"
#include <linux/input.h>
@@ -155,10 +155,10 @@ ui::KeyboardCode KeyboardCodeFromButton(unsigned int code) {
namespace ui {
// TODO(rjkroege): Stop leaking file descriptor.
-KeyEventConverterOzone::KeyEventConverterOzone() {}
-KeyEventConverterOzone::~KeyEventConverterOzone() {}
+KeyEventConverterEvdev::KeyEventConverterEvdev() {}
+KeyEventConverterEvdev::~KeyEventConverterEvdev() {}
-void KeyEventConverterOzone::OnFileCanReadWithoutBlocking(int fd) {
+void KeyEventConverterEvdev::OnFileCanReadWithoutBlocking(int fd) {
input_event inputs[4];
ssize_t read_size = read(fd, inputs, sizeof(inputs));
if (read_size <= 0)
@@ -180,7 +180,7 @@ void KeyEventConverterOzone::OnFileCanReadWithoutBlocking(int fd) {
}
}
-void KeyEventConverterOzone::OnFileCanWriteWithoutBlocking(int fd) {
+void KeyEventConverterEvdev::OnFileCanWriteWithoutBlocking(int fd) {
NOTREACHED();
}
« no previous file with comments | « ui/events/ozone/evdev/key_event_converter.h ('k') | ui/events/ozone/evdev/key_event_converter_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698