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

Side by Side Diff: remoting/client/plugin/pepper_input_handler.cc

Issue 6697024: client-side wheel mouse support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/client/plugin/pepper_input_handler.h" 5 #include "remoting/client/plugin/pepper_input_handler.h"
6 6
7 #include "ppapi/c/pp_input_event.h" 7 #include "ppapi/c/pp_input_event.h"
8 8
9 namespace remoting { 9 namespace remoting {
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 button = MouseEvent::BUTTON_MIDDLE; 49 button = MouseEvent::BUTTON_MIDDLE;
50 } else if (event.button == PP_INPUTEVENT_MOUSEBUTTON_RIGHT) { 50 } else if (event.button == PP_INPUTEVENT_MOUSEBUTTON_RIGHT) {
51 button = MouseEvent::BUTTON_RIGHT; 51 button = MouseEvent::BUTTON_RIGHT;
52 } 52 }
53 53
54 if (button != MouseEvent::BUTTON_UNDEFINED) { 54 if (button != MouseEvent::BUTTON_UNDEFINED) {
55 SendMouseButtonEvent(button_down, button); 55 SendMouseButtonEvent(button_down, button);
56 } 56 }
57 } 57 }
58 58
59 void PepperInputHandler::HandleMouseWheelEvent(
60 const PP_InputEvent_Wheel& event) {
61 SendMouseWheelEvent(event.delta_x, event.delta_y,
62 event.wheel_ticks_x, event.wheel_ticks_y,
63 event.scroll_by_page);
64 }
65
59 } // namespace remoting 66 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698