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

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

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: default handle visibility should be false Created 4 years, 4 months 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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 jfloat anchor_x, 1200 jfloat anchor_x,
1201 jfloat anchor_y, 1201 jfloat anchor_y,
1202 jfloat delta) { 1202 jfloat delta) {
1203 WebGestureEvent event = MakeGestureEvent( 1203 WebGestureEvent event = MakeGestureEvent(
1204 WebInputEvent::GesturePinchUpdate, time_ms, anchor_x, anchor_y); 1204 WebInputEvent::GesturePinchUpdate, time_ms, anchor_x, anchor_y);
1205 event.data.pinchUpdate.scale = delta; 1205 event.data.pinchUpdate.scale = delta;
1206 1206
1207 SendGestureEvent(event); 1207 SendGestureEvent(event);
1208 } 1208 }
1209 1209
1210 void ContentViewCoreImpl::SelectBetweenCoordinates(
1211 JNIEnv* env,
1212 const JavaParamRef<jobject>& obj,
1213 jfloat x1,
1214 jfloat y1,
1215 jfloat x2,
1216 jfloat y2) {
1217 SelectBetweenCoordinates(gfx::PointF(x1 / dpi_scale(), y1 / dpi_scale()),
1218 gfx::PointF(x2 / dpi_scale(), y2 / dpi_scale()));
1219 }
1220
1221 void ContentViewCoreImpl::DismissTextHandles(JNIEnv* env, 1210 void ContentViewCoreImpl::DismissTextHandles(JNIEnv* env,
1222 const JavaParamRef<jobject>& obj) { 1211 const JavaParamRef<jobject>& obj) {
1223 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 1212 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
1224 if (rwhv) 1213 if (rwhv)
1225 rwhv->DismissTextHandles(); 1214 rwhv->DismissTextHandles();
1226 } 1215 }
1227 1216
1228 void ContentViewCoreImpl::SetTextHandlesTemporarilyHidden( 1217 void ContentViewCoreImpl::SetTextHandlesTemporarilyHidden(
1229 JNIEnv* env, 1218 JNIEnv* env,
1230 const JavaParamRef<jobject>& obj, 1219 const JavaParamRef<jobject>& obj,
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 return ScopedJavaLocalRef<jobject>(); 1626 return ScopedJavaLocalRef<jobject>();
1638 1627
1639 return view->GetJavaObject(); 1628 return view->GetJavaObject();
1640 } 1629 }
1641 1630
1642 bool RegisterContentViewCore(JNIEnv* env) { 1631 bool RegisterContentViewCore(JNIEnv* env) {
1643 return RegisterNativesImpl(env) && JNI_DragEvent::RegisterNativesImpl(env); 1632 return RegisterNativesImpl(env) && JNI_DragEvent::RegisterNativesImpl(env);
1644 } 1633 }
1645 1634
1646 } // namespace content 1635 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698