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

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

Issue 9465035: Move ClientSession's input logic into separate components. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 8 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
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "remoting/protocol/input_stub.h" 9 #include "remoting/protocol/input_stub.h"
10 10
11 namespace pp { 11 namespace pp {
12 class InputEvent; 12 class InputEvent;
13 } // namespace pp 13 } // namespace pp
14 14
15 namespace remoting { 15 namespace remoting {
16 16
17 namespace protocol { 17 namespace protocol {
18 class InputStub; 18 class InputStub;
19 } // namespace protocol 19 } // namespace protocol
20 20
21 class PepperInputHandler { 21 class PepperInputHandler {
22 public: 22 public:
23 PepperInputHandler(protocol::InputStub* input_stub); 23 explicit PepperInputHandler(protocol::InputStub* input_stub);
24 virtual ~PepperInputHandler(); 24 virtual ~PepperInputHandler();
25 25
26 bool HandleInputEvent(const pp::InputEvent& event); 26 bool HandleInputEvent(const pp::InputEvent& event);
27 27
28 private: 28 private:
29 protocol::InputStub* input_stub_; 29 protocol::InputStub* input_stub_;
30 30
31 float wheel_ticks_x_; 31 float wheel_ticks_x_;
32 float wheel_ticks_y_; 32 float wheel_ticks_y_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); 34 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler);
35 }; 35 };
36 36
37 } // namespace remoting 37 } // namespace remoting
38 38
39 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ 39 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698