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

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

Issue 2703643004: [TTS] Add an ACK message to SelectWordAroundCaret. (Closed)
Patch Set: Just removed an isOverlayVideoMode check. Created 3 years, 7 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 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 void ContentViewCoreImpl::OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip) { 1213 void ContentViewCoreImpl::OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip) {
1214 JNIEnv* env = AttachCurrentThread(); 1214 JNIEnv* env = AttachCurrentThread();
1215 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); 1215 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
1216 if (obj.is_null()) 1216 if (obj.is_null())
1217 return; 1217 return;
1218 Java_ContentViewCore_onShowUnhandledTapUIIfNeeded( 1218 Java_ContentViewCore_onShowUnhandledTapUIIfNeeded(
1219 env, obj, static_cast<jint>(x_dip * dpi_scale()), 1219 env, obj, static_cast<jint>(x_dip * dpi_scale()),
1220 static_cast<jint>(y_dip * dpi_scale())); 1220 static_cast<jint>(y_dip * dpi_scale()));
1221 } 1221 }
1222 1222
1223 void ContentViewCoreImpl::OnSelectWordAroundCaretAck(bool did_select,
1224 int start_adjust,
1225 int end_adjust) {
1226 JNIEnv* env = AttachCurrentThread();
1227 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
1228 if (obj.is_null())
1229 return;
1230 Java_ContentViewCore_onSelectWordAroundCaretAck(env, obj, did_select,
1231 start_adjust, end_adjust);
1232 }
1233
1223 void ContentViewCoreImpl::HidePopupsAndPreserveSelection() { 1234 void ContentViewCoreImpl::HidePopupsAndPreserveSelection() {
1224 JNIEnv* env = AttachCurrentThread(); 1235 JNIEnv* env = AttachCurrentThread();
1225 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); 1236 ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
1226 if (obj.is_null()) 1237 if (obj.is_null())
1227 return; 1238 return;
1228 1239
1229 Java_ContentViewCore_hidePopupsAndPreserveSelection(env, obj); 1240 Java_ContentViewCore_hidePopupsAndPreserveSelection(env, obj);
1230 } 1241 }
1231 1242
1232 void ContentViewCoreImpl::WebContentsDestroyed() { 1243 void ContentViewCoreImpl::WebContentsDestroyed() {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 return ScopedJavaLocalRef<jobject>(); 1286 return ScopedJavaLocalRef<jobject>();
1276 1287
1277 return view->GetJavaObject(); 1288 return view->GetJavaObject();
1278 } 1289 }
1279 1290
1280 bool RegisterContentViewCore(JNIEnv* env) { 1291 bool RegisterContentViewCore(JNIEnv* env) {
1281 return RegisterNativesImpl(env); 1292 return RegisterNativesImpl(env);
1282 } 1293 }
1283 1294
1284 } // namespace content 1295 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698