| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 pp { | 16 namespace pp { |
| 15 class KeyboardInputEvent; | 17 class KeyboardInputEvent; |
| 16 class MouseInputEvent; | 18 class MouseInputEvent; |
| 17 } // namespace pp | 19 } // namespace pp |
| 18 | 20 |
| 19 namespace remoting { | 21 namespace remoting { |
| 20 | 22 |
| 23 class PepperViewProxy; |
| 24 |
| 21 class PepperInputHandler : public InputHandler { | 25 class PepperInputHandler : public InputHandler { |
| 22 public: | 26 public: |
| 23 PepperInputHandler(ClientContext* context, | 27 PepperInputHandler(ClientContext* context, |
| 24 protocol::ConnectionToHost* connection, | 28 protocol::ConnectionToHost* connection, |
| 25 ChromotingView* view); | 29 PepperViewProxy* view); |
| 26 virtual ~PepperInputHandler(); | 30 virtual ~PepperInputHandler(); |
| 27 | 31 |
| 28 virtual void Initialize(); | 32 virtual void Initialize(); |
| 29 | 33 |
| 30 void HandleKeyEvent(bool keydown, const pp::KeyboardInputEvent& event); | 34 void HandleKeyEvent(bool keydown, const pp::KeyboardInputEvent& event); |
| 31 void HandleCharacterEvent(const pp::KeyboardInputEvent& event); | 35 void HandleCharacterEvent(const pp::KeyboardInputEvent& event); |
| 32 | 36 |
| 33 void HandleMouseMoveEvent(const pp::MouseInputEvent& event); | 37 void HandleMouseMoveEvent(const pp::MouseInputEvent& event); |
| 34 void HandleMouseButtonEvent(bool button_down, | 38 void HandleMouseButtonEvent(bool button_down, |
| 35 const pp::MouseInputEvent& event); | 39 const pp::MouseInputEvent& event); |
| 36 | 40 |
| 37 private: | 41 private: |
| 42 PepperViewProxy* pepper_view_; |
| 43 |
| 38 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); | 44 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); |
| 39 }; | 45 }; |
| 40 | 46 |
| 41 } // namespace remoting | 47 } // namespace remoting |
| 42 | 48 |
| 43 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); | 49 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); |
| 44 | 50 |
| 45 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ | 51 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ |
| OLD | NEW |