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

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

Issue 2407303005: Let embedder provide select action mode (Closed)
Patch Set: fixing tests Created 4 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 jfloat anchor_x, 1143 jfloat anchor_x,
1144 jfloat anchor_y, 1144 jfloat anchor_y,
1145 jfloat delta) { 1145 jfloat delta) {
1146 WebGestureEvent event = MakeGestureEvent( 1146 WebGestureEvent event = MakeGestureEvent(
1147 WebInputEvent::GesturePinchUpdate, time_ms, anchor_x, anchor_y); 1147 WebInputEvent::GesturePinchUpdate, time_ms, anchor_x, anchor_y);
1148 event.data.pinchUpdate.scale = delta; 1148 event.data.pinchUpdate.scale = delta;
1149 1149
1150 SendGestureEvent(event); 1150 SendGestureEvent(event);
1151 } 1151 }
1152 1152
1153 void ContentViewCoreImpl::DismissTextHandles(JNIEnv* env,
1154 const JavaParamRef<jobject>& obj) {
1155 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1156 if (rwhv)
1157 rwhv->DismissTextHandles();
1158 }
1159
1160 void ContentViewCoreImpl::SetTextHandlesTemporarilyHidden( 1153 void ContentViewCoreImpl::SetTextHandlesTemporarilyHidden(
1161 JNIEnv* env, 1154 JNIEnv* env,
1162 const JavaParamRef<jobject>& obj, 1155 const JavaParamRef<jobject>& obj,
1163 jboolean hidden) { 1156 jboolean hidden) {
1164 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 1157 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1165 if (rwhv) 1158 if (rwhv)
1166 rwhv->SetTextHandlesTemporarilyHidden(hidden); 1159 rwhv->SetTextHandlesTemporarilyHidden(hidden);
1167 } 1160 }
1168 1161
1169 void ContentViewCoreImpl::ResetGestureDetection( 1162 void ContentViewCoreImpl::ResetGestureDetection(
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1567 return ScopedJavaLocalRef<jobject>(); 1560 return ScopedJavaLocalRef<jobject>();
1568 1561
1569 return view->GetJavaObject(); 1562 return view->GetJavaObject();
1570 } 1563 }
1571 1564
1572 bool RegisterContentViewCore(JNIEnv* env) { 1565 bool RegisterContentViewCore(JNIEnv* env) {
1573 return RegisterNativesImpl(env); 1566 return RegisterNativesImpl(env);
1574 } 1567 }
1575 1568
1576 } // namespace content 1569 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698