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

Unified Diff: remoting/client/plugin/pepper_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/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);
}
}

Powered by Google App Engine
This is Rietveld 408576698