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

Unified Diff: remoting/client/x11_input_handler.cc

Issue 5068001: Move move classes to the remoting::protocol namespace. Minor cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes for windows Created 10 years, 1 month 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: remoting/client/x11_input_handler.cc
diff --git a/remoting/client/x11_input_handler.cc b/remoting/client/x11_input_handler.cc
index 4c3d1422951034242ecf075204a19d04feaf3f30..b7ee8df3483c8681f646f8df72c6a40d3f60033a 100644
--- a/remoting/client/x11_input_handler.cc
+++ b/remoting/client/x11_input_handler.cc
@@ -16,6 +16,9 @@
namespace remoting {
+using protocol::KeyEvent;
+using protocol::MouseEvent;
+
X11InputHandler::X11InputHandler(ClientContext* context,
protocol::ConnectionToHost* connection,
ChromotingView* view)
@@ -88,16 +91,16 @@ void X11InputHandler::HandleMouseMoveEvent(int x, int y) {
}
void X11InputHandler::HandleMouseButtonEvent(bool button_down, int xbutton_id) {
- MouseButton button = MouseButtonUndefined;
+ MouseEvent::MouseButton button = MouseEvent::BUTTON_UNDEFINED;
if (xbutton_id == 1) {
- button = MouseButtonLeft;
+ button = MouseEvent::BUTTON_LEFT;
} else if (xbutton_id == 2) {
- button = MouseButtonMiddle;
+ button = MouseEvent::BUTTON_MIDDLE;
} else if (xbutton_id == 3) {
- button = MouseButtonRight;
+ button = MouseEvent::BUTTON_RIGHT;
}
- if (button != MouseButtonUndefined) {
+ if (button != MouseEvent::BUTTON_UNDEFINED) {
SendMouseButtonEvent(button_down, button);
}
}

Powered by Google App Engine
This is Rietveld 408576698