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

Unified Diff: remoting/client/input_handler.cc

Issue 6697024: client-side wheel mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: acculumate subticks Created 9 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
Index: remoting/client/input_handler.cc
diff --git a/remoting/client/input_handler.cc b/remoting/client/input_handler.cc
index 7b48d89d94f6162ca995f5c4251b76c4acf01f6e..48beddedd523414cad69cfb65da912424c3d306d 100644
--- a/remoting/client/input_handler.cc
+++ b/remoting/client/input_handler.cc
@@ -62,6 +62,16 @@ void InputHandler::SendMouseButtonEvent(bool button_down,
}
}
+void InputHandler::SendMouseWheelEvent(int dx, int dy) {
+ protocol::InputStub* stub = connection_->input_stub();
+ if (stub) {
+ MouseEvent event;
+ event.set_wheel_offset_x(dx);
+ event.set_wheel_offset_y(dy);
+ stub->InjectMouseEvent(event);
+ }
+}
+
void InputHandler::ReleaseAllKeys() {
std::set<int> pressed_keys_copy = pressed_keys_;
std::set<int>::iterator i;

Powered by Google App Engine
This is Rietveld 408576698