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

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

Issue 292103004: Enable keyboard filters in PNaCl client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/cpp/mouse_lock.h" 10 #include "ppapi/cpp/mouse_lock.h"
11 #include "ppapi/cpp/point.h" 11 #include "ppapi/cpp/point.h"
12 #include "ppapi/utility/completion_callback_factory.h" 12 #include "ppapi/utility/completion_callback_factory.h"
13 #include "remoting/protocol/input_stub.h" 13 #include "remoting/protocol/input_stub.h"
14 14
15 namespace pp { 15 namespace pp {
16 class ImageData; 16 class ImageData;
17 class InputEvent; 17 class InputEvent;
18 class Instance; 18 class Instance;
19 } // namespace pp 19 } // namespace pp
20 20
21 namespace remoting { 21 namespace remoting {
22 22
23 namespace protocol { 23 namespace protocol {
24 class InputStub; 24 class InputStub;
25 } // namespace protocol 25 } // namespace protocol
26 26
27 class PepperInputHandler : public pp::MouseLock { 27 class PepperInputHandler : public pp::MouseLock {
28 public: 28 public:
29 // |instance| must outlive |this|. 29 // |instance| must outlive |this|.
30 PepperInputHandler(pp::Instance* instance, protocol::InputStub* input_stub); 30 explicit PepperInputHandler(pp::Instance* instance);
31 virtual ~PepperInputHandler(); 31 virtual ~PepperInputHandler();
32 32
33 void set_input_stub(protocol::InputStub* input_stub) {
34 input_stub_ = input_stub;
35 }
36
33 bool HandleInputEvent(const pp::InputEvent& event); 37 bool HandleInputEvent(const pp::InputEvent& event);
34 38
35 // Enables locking the mouse when the host sets a completely transparent mouse 39 // Enables locking the mouse when the host sets a completely transparent mouse
36 // cursor. 40 // cursor.
37 void AllowMouseLock(); 41 void AllowMouseLock();
38 42
39 // Called when the plugin receives or loses focus. 43 // Called when the plugin receives or loses focus.
40 void DidChangeFocus(bool has_focus); 44 void DidChangeFocus(bool has_focus);
41 45
42 // Sets the mouse cursor image. Passing NULL image will lock the mouse if 46 // Sets the mouse cursor image. Passing NULL image will lock the mouse if
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 float wheel_delta_y_; 97 float wheel_delta_y_;
94 float wheel_ticks_x_; 98 float wheel_ticks_x_;
95 float wheel_ticks_y_; 99 float wheel_ticks_y_;
96 100
97 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); 101 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler);
98 }; 102 };
99 103
100 } // namespace remoting 104 } // namespace remoting
101 105
102 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ 106 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/normalizing_input_filter_mac_unittest.cc ('k') | remoting/client/plugin/pepper_input_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698