Chromium Code Reviews| 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 <android/input.h> | 5 #include <android/input.h> |
| 6 | 6 |
| 7 #include <cmath> | |
|
Mark Mentovai
2015/04/09 15:42:15
Neither does this file.
| |
| 8 | |
| 7 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 8 #include "base/float_util.h" | |
| 9 #include "content/browser/renderer_host/input/motion_event_android.h" | 10 #include "content/browser/renderer_host/input/motion_event_android.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/events/event_constants.h" | 12 #include "ui/events/event_constants.h" |
| 12 #include "ui/events/test/motion_event_test_utils.h" | 13 #include "ui/events/test/motion_event_test_utils.h" |
| 13 | 14 |
| 14 using ui::MotionEvent; | 15 using ui::MotionEvent; |
| 15 | 16 |
| 16 namespace content { | 17 namespace content { |
| 17 namespace { | 18 namespace { |
| 18 const float kPixToDip = 0.5f; | 19 const float kPixToDip = 0.5f; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 214 0, | 215 0, |
| 215 0, | 216 0, |
| 216 p0, | 217 p0, |
| 217 p1); | 218 p1); |
| 218 | 219 |
| 219 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction()); | 220 EXPECT_EQ(MotionEvent::ACTION_POINTER_DOWN, event.GetAction()); |
| 220 EXPECT_EQ(action_index, event.GetActionIndex()); | 221 EXPECT_EQ(action_index, event.GetActionIndex()); |
| 221 } | 222 } |
| 222 | 223 |
| 223 } // namespace content | 224 } // namespace content |
| OLD | NEW |