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

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

Issue 7471006: Revert 93223 - Reland http://codereview.chromium.org/7452002/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 struct PP_InputEvent_Character;
11 struct PP_InputEvent_Key; 11 struct PP_InputEvent_Key;
12 struct PP_InputEvent_Mouse; 12 struct PP_InputEvent_Mouse;
13 13
14 namespace pp {
15 class KeyboardInputEvent;
16 class MouseInputEvent;
17 } // namespace pp
18
19 namespace remoting { 14 namespace remoting {
20 15
21 class PepperInputHandler : public InputHandler { 16 class PepperInputHandler : public InputHandler {
22 public: 17 public:
23 PepperInputHandler(ClientContext* context, 18 PepperInputHandler(ClientContext* context,
24 protocol::ConnectionToHost* connection, 19 protocol::ConnectionToHost* connection,
25 ChromotingView* view); 20 ChromotingView* view);
26 virtual ~PepperInputHandler(); 21 virtual ~PepperInputHandler();
27 22
28 virtual void Initialize(); 23 virtual void Initialize();
29 24
30 void HandleKeyEvent(bool keydown, const pp::KeyboardInputEvent& event); 25 void HandleKeyEvent(bool keydown, const PP_InputEvent_Key& event);
31 void HandleCharacterEvent(const pp::KeyboardInputEvent& event); 26 void HandleCharacterEvent(const PP_InputEvent_Character& event);
32 27
33 void HandleMouseMoveEvent(const pp::MouseInputEvent& event); 28 void HandleMouseMoveEvent(const PP_InputEvent_Mouse& event);
34 void HandleMouseButtonEvent(bool button_down, 29 void HandleMouseButtonEvent(bool button_down,
35 const pp::MouseInputEvent& event); 30 const PP_InputEvent_Mouse& event);
36 31
37 private: 32 private:
38 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); 33 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler);
39 }; 34 };
40 35
41 } // namespace remoting 36 } // namespace remoting
42 37
43 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler); 38 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperInputHandler);
44 39
45 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ 40 #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