OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/renderer_host/input/synthetic_pointer_action.h" | 5 #include "content/browser/renderer_host/input/synthetic_pointer_action.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "third_party/WebKit/public/web/WebInputEvent.h" | 8 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
9 #include "ui/events/latency_info.h" | 9 #include "ui/events/latency_info.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 | 12 |
13 SyntheticPointerAction::SyntheticPointerAction( | 13 SyntheticPointerAction::SyntheticPointerAction( |
14 const SyntheticPointerActionParams& params) | 14 const SyntheticPointerActionParams& params) |
15 : params_(params) {} | 15 : params_(params) {} |
16 | 16 |
17 SyntheticPointerAction::SyntheticPointerAction( | 17 SyntheticPointerAction::SyntheticPointerAction( |
18 std::unique_ptr<std::vector<SyntheticPointerActionParams>> param_list, | 18 std::unique_ptr<std::vector<SyntheticPointerActionParams>> param_list, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 if (params.pointer_action_type() == | 87 if (params.pointer_action_type() == |
88 SyntheticPointerActionParams::PointerActionType::RELEASE && | 88 SyntheticPointerActionParams::PointerActionType::RELEASE && |
89 GetPointIndex(params.index()) < 0) { | 89 GetPointIndex(params.index()) < 0) { |
90 return false; | 90 return false; |
91 } | 91 } |
92 return true; | 92 return true; |
93 } | 93 } |
94 | 94 |
95 } // namespace content | 95 } // namespace content |
OLD | NEW |