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

Unified Diff: remoting/client/plugin/pepper_input_handler.h

Issue 8985007: Refactoring of the client-side input pipeline and scaling dimension management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include SkTypes.h before SkSize.h to fix win build. Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/plugin/pepper_input_handler.h
diff --git a/remoting/client/plugin/pepper_input_handler.h b/remoting/client/plugin/pepper_input_handler.h
index 759e5f23061abedc8c97b02685959766f5831774..9c9423e43b8a191647d48c30f4fce8abcbdfaa9f 100644
--- a/remoting/client/plugin/pepper_input_handler.h
+++ b/remoting/client/plugin/pepper_input_handler.h
@@ -6,37 +6,27 @@
#define REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_
#include "base/compiler_specific.h"
-#include "remoting/client/input_handler.h"
+#include "remoting/protocol/input_stub.h"
namespace pp {
-class KeyboardInputEvent;
-class MouseInputEvent;
-class WheelInputEvent;
-}
+class InputEvent;
+} // namespace pp
namespace remoting {
-class PepperViewProxy;
+namespace protocol {
+class InputStub;
+} // namespace protocol
-class PepperInputHandler : public InputHandler {
+class PepperInputHandler {
public:
- PepperInputHandler(ClientContext* context,
- protocol::ConnectionToHost* connection,
- PepperViewProxy* view);
+ PepperInputHandler(protocol::InputStub* input_stub);
virtual ~PepperInputHandler();
- virtual void Initialize() OVERRIDE;
-
- void HandleKeyEvent(bool keydown, const pp::KeyboardInputEvent& event);
- void HandleCharacterEvent(const pp::KeyboardInputEvent& event);
-
- void HandleMouseMoveEvent(const pp::MouseInputEvent& event);
- void HandleMouseButtonEvent(bool button_down,
- const pp::MouseInputEvent& event);
- void HandleMouseWheelEvent(const pp::WheelInputEvent& event);
+ bool HandleInputEvent(const pp::InputEvent& event);
private:
- PepperViewProxy* pepper_view_;
+ protocol::InputStub* input_stub_;
float wheel_ticks_x_;
float wheel_ticks_y_;
« no previous file with comments | « remoting/client/plugin/chromoting_scriptable_object.cc ('k') | remoting/client/plugin/pepper_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698