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

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: 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 bc7f2be34af78095756862d17fd2d10d2d8c871d..e13788ea12d5c7f7bdb5e6710b374054822ec74a 100644
--- a/remoting/client/plugin/pepper_input_handler.h
+++ b/remoting/client/plugin/pepper_input_handler.h
@@ -5,37 +5,27 @@
#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_
#define REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_
-#include "remoting/client/input_handler.h"
+#include "remoting/protocol/input_stub.h"
namespace pp {
-class KeyboardInputEvent;
-class MouseInputEvent;
-class WheelInputEvent;
+class InputEvent;
}
Sergey Ulanov 2011/12/20 00:05:35 // namespace pp
Wez 2011/12/20 07:14:14 Done.
namespace remoting {
-class PepperViewProxy;
+namespace protocol {
+class InputStub;
+}
Sergey Ulanov 2011/12/20 00:05:35 // namepsace protocol
Wez 2011/12/20 07:14:14 Done.
-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_;

Powered by Google App Engine
This is Rietveld 408576698