Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Side by Side Diff: content/browser/android/content_view_core_impl.cc

Issue 660663002: Clear pending events upon main frame navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 GetRenderWidgetHostViewAndroid()->MoveCaret( 1090 GetRenderWidgetHostViewAndroid()->MoveCaret(
1091 gfx::Point(x / dpi_scale_, y / dpi_scale_)); 1091 gfx::Point(x / dpi_scale_, y / dpi_scale_));
1092 } 1092 }
1093 } 1093 }
1094 1094
1095 void ContentViewCoreImpl::HideTextHandles(JNIEnv* env, jobject obj) { 1095 void ContentViewCoreImpl::HideTextHandles(JNIEnv* env, jobject obj) {
1096 if (GetRenderWidgetHostViewAndroid()) 1096 if (GetRenderWidgetHostViewAndroid())
1097 GetRenderWidgetHostViewAndroid()->HideTextHandles(); 1097 GetRenderWidgetHostViewAndroid()->HideTextHandles();
1098 } 1098 }
1099 1099
1100 void ContentViewCoreImpl::ResetGestureDetection(JNIEnv* env, jobject obj) { 1100 void ContentViewCoreImpl::CancelActiveTouchSequence(JNIEnv* env, jobject obj) {
1101 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 1101 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1102 if (rwhv) 1102 if (rwhv)
1103 rwhv->ResetGestureDetection(); 1103 rwhv->CancelActiveTouchSequence();
1104 }
1105
1106 void ContentViewCoreImpl::ResetPendingInput(JNIEnv* env, jobject obj) {
1107 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1108 if (rwhv)
1109 rwhv->ResetPendingInput();
1104 } 1110 }
1105 1111
1106 void ContentViewCoreImpl::SetDoubleTapSupportEnabled(JNIEnv* env, 1112 void ContentViewCoreImpl::SetDoubleTapSupportEnabled(JNIEnv* env,
1107 jobject obj, 1113 jobject obj,
1108 jboolean enabled) { 1114 jboolean enabled) {
1109 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 1115 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1110 if (rwhv) 1116 if (rwhv)
1111 rwhv->SetDoubleTapSupportEnabled(enabled); 1117 rwhv->SetDoubleTapSupportEnabled(enabled);
1112 } 1118 }
1113 1119
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 reinterpret_cast<ui::WindowAndroid*>(window_android), 1331 reinterpret_cast<ui::WindowAndroid*>(window_android),
1326 retained_objects_set); 1332 retained_objects_set);
1327 return reinterpret_cast<intptr_t>(view); 1333 return reinterpret_cast<intptr_t>(view);
1328 } 1334 }
1329 1335
1330 bool RegisterContentViewCore(JNIEnv* env) { 1336 bool RegisterContentViewCore(JNIEnv* env) {
1331 return RegisterNativesImpl(env); 1337 return RegisterNativesImpl(env);
1332 } 1338 }
1333 1339
1334 } // namespace content 1340 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/input/input_ack_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698