| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/gesture_interpreter.h" | 5 #include "remoting/client/ui/gesture_interpreter.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 #include "remoting/client/direct_input_strategy.h" | 9 #include "remoting/client/ui/direct_input_strategy.h" |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 const float kOneFingerFlingTimeConstant = 325.f; | 13 const float kOneFingerFlingTimeConstant = 325.f; |
| 14 | 14 |
| 15 } // namespace | 15 } // namespace |
| 16 | 16 |
| 17 namespace remoting { | 17 namespace remoting { |
| 18 GestureInterpreter::GestureInterpreter( | 18 GestureInterpreter::GestureInterpreter( |
| 19 const DesktopViewport::TransformationCallback& on_transformation_changed, | 19 const DesktopViewport::TransformationCallback& on_transformation_changed, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 100 |
| 101 void GestureInterpreter::InjectMouseClick( | 101 void GestureInterpreter::InjectMouseClick( |
| 102 float x, | 102 float x, |
| 103 float y, | 103 float y, |
| 104 protocol::MouseEvent_MouseButton button) { | 104 protocol::MouseEvent_MouseButton button) { |
| 105 input_stub_->SendMouseEvent(x, y, button, true); | 105 input_stub_->SendMouseEvent(x, y, button, true); |
| 106 input_stub_->SendMouseEvent(x, y, button, false); | 106 input_stub_->SendMouseEvent(x, y, button, false); |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace remoting | 109 } // namespace remoting |
| OLD | NEW |