OLD | NEW |
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 Loading... |
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 |
OLD | NEW |