OLD | NEW |
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual 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 Loading... |
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_ |
OLD | NEW |