OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/android/touch_point.h" | 5 #include "content/browser/android/touch_point.h" |
6 | 6 |
7 #include "base/debug/debugger.h" | 7 #include "base/debug/debugger.h" |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
11 #include "jni/touch_point_jni.h" | 11 #include "jni/TouchPoint_jni.h" |
12 | 12 |
13 using WebKit::WebTouchEvent; | 13 using WebKit::WebTouchEvent; |
14 using WebKit::WebTouchPoint; | 14 using WebKit::WebTouchPoint; |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 void MaybeAddTouchPoint(JNIEnv* env, jobject pt, WebKit::WebTouchEvent& event) { | 18 void MaybeAddTouchPoint(JNIEnv* env, jobject pt, WebKit::WebTouchEvent& event) { |
19 WebTouchPoint::State state = static_cast<WebTouchPoint::State>( | 19 WebTouchPoint::State state = static_cast<WebTouchPoint::State>( |
20 Java_TouchPoint_getState(env, pt)); | 20 Java_TouchPoint_getState(env, pt)); |
21 if (state == WebTouchPoint::StateUndefined) | 21 if (state == WebTouchPoint::StateUndefined) |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 bool RegisterTouchPoint(JNIEnv* env) { | 99 bool RegisterTouchPoint(JNIEnv* env) { |
100 if (!RegisterNativesImpl(env)) | 100 if (!RegisterNativesImpl(env)) |
101 return false; | 101 return false; |
102 | 102 |
103 RegisterConstants(env); | 103 RegisterConstants(env); |
104 | 104 |
105 return true; | 105 return true; |
106 } | 106 } |
107 | 107 |
108 } // namespace content | 108 } // namespace content |
OLD | NEW |