Index: remoting/client/plugin/pepper_input_handler.cc |
diff --git a/remoting/client/plugin/pepper_input_handler.cc b/remoting/client/plugin/pepper_input_handler.cc |
index 3c4f00a892a4f05981ab9c1342bf61ea5d891e5b..81ace4e0d648fd2433d74b1a0209768c343d1320 100644 |
--- a/remoting/client/plugin/pepper_input_handler.cc |
+++ b/remoting/client/plugin/pepper_input_handler.cc |
@@ -8,6 +8,9 @@ |
namespace remoting { |
+using protocol::KeyEvent; |
+using protocol::MouseEvent; |
+ |
PepperInputHandler::PepperInputHandler(ClientContext* context, |
protocol::ConnectionToHost* connection, |
ChromotingView* view) |
@@ -38,16 +41,16 @@ void PepperInputHandler::HandleMouseMoveEvent(const PP_InputEvent_Mouse& event) |
void PepperInputHandler::HandleMouseButtonEvent( |
bool button_down, |
const PP_InputEvent_Mouse& event) { |
- MouseButton button = MouseButtonUndefined; |
+ MouseEvent::MouseButton button = MouseEvent::BUTTON_UNDEFINED; |
if (event.button == PP_INPUTEVENT_MOUSEBUTTON_LEFT) { |
- button = MouseButtonLeft; |
+ button = MouseEvent::BUTTON_LEFT; |
} else if (event.button == PP_INPUTEVENT_MOUSEBUTTON_MIDDLE) { |
- button = MouseButtonMiddle; |
+ button = MouseEvent::BUTTON_MIDDLE; |
} else if (event.button == PP_INPUTEVENT_MOUSEBUTTON_RIGHT) { |
- button = MouseButtonRight; |
+ button = MouseEvent::BUTTON_RIGHT; |
} |
- if (button != MouseButtonUndefined) { |
+ if (button != MouseEvent::BUTTON_UNDEFINED) { |
SendMouseButtonEvent(button_down, button); |
} |
} |