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

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

Issue 3341005: Add mouse/keyboard event support to Chromoting client (Pepper and X11). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: review comments Created 10 years, 3 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
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 #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" 10 #include "third_party/ppapi/c/pp_event.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class PepperInputHandler : public InputHandler { 14 class PepperInputHandler : public InputHandler {
15 public: 15 public:
16 PepperInputHandler(ClientContext* context, 16 PepperInputHandler(ClientContext* context,
17 HostConnection* connection, 17 HostConnection* connection,
18 ChromotingView* view); 18 ChromotingView* view);
19 virtual ~PepperInputHandler(); 19 virtual ~PepperInputHandler();
20 20
21 void Initialize(); 21 void Initialize();
22 22
23 void HandleKeyEvent(bool keydown, const PP_Event_Key& event);
24 void HandleCharacterEvent(const PP_Event_Character& event);
25
23 void HandleMouseMoveEvent(const PP_Event_Mouse& event); 26 void HandleMouseMoveEvent(const PP_Event_Mouse& event);
24 void HandleMouseButtonEvent(bool button_down, 27 void HandleMouseButtonEvent(bool button_down,
25 const PP_Event_Mouse& event); 28 const PP_Event_Mouse& event);
26 29
27 private: 30 private:
28 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); 31 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler);
29 }; 32 };
30 33
31 } // namespace remoting 34 } // namespace remoting
32 35
33 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); 36 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler);
34 37
35 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ 38 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/pepper_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698