| 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 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ |
| 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ |
| 7 | 7 |
| 8 #include "remoting/client/input_handler.h" | 8 #include "remoting/client/input_handler.h" |
| 9 | 9 |
| 10 struct PP_InputEvent_Character; | 10 namespace pp { |
| 11 struct PP_InputEvent_Key; | 11 class KeyboardInputEvent; |
| 12 struct PP_InputEvent_Mouse; | 12 class MouseInputEvent; |
| 13 class WheelInputEvent; |
| 14 } |
| 13 | 15 |
| 14 namespace remoting { | 16 namespace remoting { |
| 15 | 17 |
| 16 class PepperInputHandler : public InputHandler { | 18 class PepperInputHandler : public InputHandler { |
| 17 public: | 19 public: |
| 18 PepperInputHandler(ClientContext* context, | 20 PepperInputHandler(ClientContext* context, |
| 19 protocol::ConnectionToHost* connection, | 21 protocol::ConnectionToHost* connection, |
| 20 ChromotingView* view); | 22 ChromotingView* view); |
| 21 virtual ~PepperInputHandler(); | 23 virtual ~PepperInputHandler(); |
| 22 | 24 |
| 23 virtual void Initialize(); | 25 virtual void Initialize(); |
| 24 | 26 |
| 25 void HandleKeyEvent(bool keydown, const PP_InputEvent_Key& event); | 27 void HandleKeyEvent(bool keydown, const pp::KeyboardInputEvent& event); |
| 26 void HandleCharacterEvent(const PP_InputEvent_Character& event); | 28 void HandleCharacterEvent(const pp::KeyboardInputEvent& event); |
| 27 | 29 |
| 28 void HandleMouseMoveEvent(const PP_InputEvent_Mouse& event); | 30 void HandleMouseMoveEvent(const pp::MouseInputEvent& event); |
| 29 void HandleMouseButtonEvent(bool button_down, | 31 void HandleMouseButtonEvent(bool button_down, |
| 30 const PP_InputEvent_Mouse& event); | 32 const pp::MouseInputEvent& event); |
| 31 | 33 |
| 32 private: | 34 private: |
| 33 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); | 35 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 } // namespace remoting | 38 } // namespace remoting |
| 37 | 39 |
| 38 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); | 40 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); |
| 39 | 41 |
| 40 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ | 42 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ |
| OLD | NEW |