| 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 #include "third_party/ppapi/c/pp_event.h" |
| 11 |
| 10 namespace remoting { | 12 namespace remoting { |
| 11 | 13 |
| 12 class PepperInputHandler : public InputHandler { | 14 class PepperInputHandler : public InputHandler { |
| 13 public: | 15 public: |
| 14 PepperInputHandler(ClientContext* context, | 16 PepperInputHandler(ClientContext* context, |
| 15 HostConnection* connection, | 17 HostConnection* connection, |
| 16 ChromotingView* view); | 18 ChromotingView* view); |
| 17 virtual ~PepperInputHandler(); | 19 virtual ~PepperInputHandler(); |
| 18 | 20 |
| 19 void Initialize(); | 21 void Initialize(); |
| 20 | 22 |
| 23 void HandleMouseMoveEvent(const PP_Event_Mouse& event); |
| 24 void HandleMouseButtonEvent(bool button_down, |
| 25 const PP_Event_Mouse& event); |
| 26 |
| 21 private: | 27 private: |
| 22 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); | 28 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); |
| 23 }; | 29 }; |
| 24 | 30 |
| 25 } // namespace remoting | 31 } // namespace remoting |
| 26 | 32 |
| 27 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); | 33 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); |
| 28 | 34 |
| 29 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ | 35 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ |
| OLD | NEW |