| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ui/base/touch/touch_device.h" | 5 #include "ui/base/touch/touch_device.h" |
| 6 | 6 |
| 7 #include "base/android/context_utils.h" |
| 7 #include "base/logging.h" | 8 #include "base/logging.h" |
| 8 #include "jni/TouchDevice_jni.h" | 9 #include "jni/TouchDevice_jni.h" |
| 9 | 10 |
| 10 namespace ui { | 11 namespace ui { |
| 11 | 12 |
| 12 bool IsTouchDevicePresent() { | 13 bool IsTouchDevicePresent() { |
| 13 return true; | 14 return true; |
| 14 } | 15 } |
| 15 | 16 |
| 16 int MaxTouchPoints() { | 17 int MaxTouchPoints() { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 return HOVER_TYPE_HOVER; | 55 return HOVER_TYPE_HOVER; |
| 55 DCHECK_EQ(available_hover_types, HOVER_TYPE_NONE); | 56 DCHECK_EQ(available_hover_types, HOVER_TYPE_NONE); |
| 56 return HOVER_TYPE_NONE; | 57 return HOVER_TYPE_NONE; |
| 57 } | 58 } |
| 58 | 59 |
| 59 bool RegisterTouchDeviceAndroid(JNIEnv* env) { | 60 bool RegisterTouchDeviceAndroid(JNIEnv* env) { |
| 60 return RegisterNativesImpl(env); | 61 return RegisterNativesImpl(env); |
| 61 } | 62 } |
| 62 | 63 |
| 63 } // namespace ui | 64 } // namespace ui |
| OLD | NEW |