OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "remoting/client/plugin/pepper_mouse_locker.h" | 5 #include "remoting/client/plugin/pepper_mouse_locker.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "remoting/client/plugin/empty_cursor_filter.h" | 8 #include "remoting/client/empty_cursor_filter.h" |
9 #include "remoting/proto/control.pb.h" | 9 #include "remoting/proto/control.pb.h" |
10 | 10 |
11 namespace remoting { | 11 namespace remoting { |
12 | 12 |
13 PepperMouseLocker::PepperMouseLocker( | 13 PepperMouseLocker::PepperMouseLocker( |
14 pp::Instance* instance, | 14 pp::Instance* instance, |
15 const base::Callback<void(bool)>& enable_mouse_deltas, | 15 const base::Callback<void(bool)>& enable_mouse_deltas, |
16 protocol::CursorShapeStub* cursor_stub) | 16 protocol::CursorShapeStub* cursor_stub) |
17 : pp::MouseLock(instance), | 17 : pp::MouseLock(instance), |
18 enable_mouse_deltas_(enable_mouse_deltas), | 18 enable_mouse_deltas_(enable_mouse_deltas), |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // locked events until MouseLockLost() is called back. | 119 // locked events until MouseLockLost() is called back. |
120 mouse_lock_state_ = MouseLockCancelling; | 120 mouse_lock_state_ = MouseLockCancelling; |
121 break; | 121 break; |
122 | 122 |
123 default: | 123 default: |
124 NOTREACHED(); | 124 NOTREACHED(); |
125 } | 125 } |
126 } | 126 } |
127 | 127 |
128 } // namespace remoting | 128 } // namespace remoting |
OLD | NEW |