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

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

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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"
(...skipping 10 matching lines...) Expand all
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 explicit PepperInputHandler(pp::Instance* instance); 30 explicit PepperInputHandler(pp::Instance* instance);
31 virtual ~PepperInputHandler(); 31 ~PepperInputHandler() override;
32 32
33 void set_input_stub(protocol::InputStub* input_stub) { 33 void set_input_stub(protocol::InputStub* input_stub) {
34 input_stub_ = input_stub; 34 input_stub_ = input_stub;
35 } 35 }
36 36
37 bool HandleInputEvent(const pp::InputEvent& event); 37 bool HandleInputEvent(const pp::InputEvent& event);
38 38
39 // 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
40 // cursor. 40 // cursor.
41 void AllowMouseLock(); 41 void AllowMouseLock();
(...skipping 15 matching lines...) Expand all
57 private: 57 private:
58 enum MouseLockState { 58 enum MouseLockState {
59 MouseLockDisallowed, 59 MouseLockDisallowed,
60 MouseLockOff, 60 MouseLockOff,
61 MouseLockRequestPending, 61 MouseLockRequestPending,
62 MouseLockOn, 62 MouseLockOn,
63 MouseLockCancelling 63 MouseLockCancelling
64 }; 64 };
65 65
66 // pp::MouseLock interface. 66 // pp::MouseLock interface.
67 virtual void MouseLockLost() override; 67 void MouseLockLost() override;
68 68
69 // Requests the browser to lock the mouse and hides the cursor. 69 // Requests the browser to lock the mouse and hides the cursor.
70 void RequestMouseLock(); 70 void RequestMouseLock();
71 71
72 // Requests the browser to cancel mouse lock and restores the cursor once 72 // Requests the browser to cancel mouse lock and restores the cursor once
73 // the lock is gone. 73 // the lock is gone.
74 void CancelMouseLock(); 74 void CancelMouseLock();
75 75
76 // Applies |cursor_image_| as the custom pointer or uses the standard arrow 76 // Applies |cursor_image_| as the custom pointer or uses the standard arrow
77 // pointer if |cursor_image_| is not available. 77 // pointer if |cursor_image_| is not available.
(...skipping 29 matching lines...) Expand all
107 float wheel_delta_y_; 107 float wheel_delta_y_;
108 float wheel_ticks_x_; 108 float wheel_ticks_x_;
109 float wheel_ticks_y_; 109 float wheel_ticks_y_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler); 111 DISALLOW_COPY_AND_ASSIGN(PepperInputHandler);
112 }; 112 };
113 113
114 } // namespace remoting 114 } // namespace remoting
115 115
116 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_ 116 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_INPUT_HANDLER_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/pepper_entrypoints.cc ('k') | remoting/client/plugin/pepper_network_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698