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

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 26491010: [Android] Don't hide text handles if they are being dragged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/input/InsertionHandleController.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 package org.chromium.content.browser; 5 package org.chromium.content.browser;
6 6
7 import android.app.Activity; 7 import android.app.Activity;
8 import android.app.SearchManager; 8 import android.app.SearchManager;
9 import android.content.ContentResolver; 9 import android.content.ContentResolver;
10 import android.content.Context; 10 import android.content.Context;
(...skipping 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after
2263 break; 2263 break;
2264 2264
2265 default: 2265 default:
2266 break; 2266 break;
2267 } 2267 }
2268 } 2268 }
2269 2269
2270 // Makes the insertion/selection handles invisible. They will fade back in s hortly after the 2270 // Makes the insertion/selection handles invisible. They will fade back in s hortly after the
2271 // last call to scheduleTextHandleFadeIn (or temporarilyHideTextHandles). 2271 // last call to scheduleTextHandleFadeIn (or temporarilyHideTextHandles).
2272 private void temporarilyHideTextHandles() { 2272 private void temporarilyHideTextHandles() {
2273 if (isSelectionHandleShowing()) { 2273 if (isSelectionHandleShowing() && !mSelectionHandleController.isDragging ()) {
2274 mSelectionHandleController.setHandleVisibility(HandleView.INVISIBLE) ; 2274 mSelectionHandleController.setHandleVisibility(HandleView.INVISIBLE) ;
2275 } 2275 }
2276 if (isInsertionHandleShowing()) { 2276 if (isInsertionHandleShowing() && !mInsertionHandleController.isDragging ()) {
2277 mInsertionHandleController.setHandleVisibility(HandleView.INVISIBLE) ; 2277 mInsertionHandleController.setHandleVisibility(HandleView.INVISIBLE) ;
2278 } 2278 }
2279 scheduleTextHandleFadeIn(); 2279 scheduleTextHandleFadeIn();
2280 } 2280 }
2281 2281
2282 private boolean allowTextHandleFadeIn() { 2282 private boolean allowTextHandleFadeIn() {
2283 if (mContentViewGestureHandler.isNativeScrolling() || 2283 if (mContentViewGestureHandler.isNativeScrolling() ||
2284 mContentViewGestureHandler.isNativePinching()) { 2284 mContentViewGestureHandler.isNativePinching()) {
2285 return false; 2285 return false;
2286 } 2286 }
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
3264 3264
3265 private native void nativeAttachExternalVideoSurface( 3265 private native void nativeAttachExternalVideoSurface(
3266 int nativeContentViewCoreImpl, int playerId, Surface surface); 3266 int nativeContentViewCoreImpl, int playerId, Surface surface);
3267 3267
3268 private native void nativeDetachExternalVideoSurface( 3268 private native void nativeDetachExternalVideoSurface(
3269 int nativeContentViewCoreImpl, int playerId); 3269 int nativeContentViewCoreImpl, int playerId);
3270 3270
3271 private native void nativeSetAccessibilityEnabled( 3271 private native void nativeSetAccessibilityEnabled(
3272 int nativeContentViewCoreImpl, boolean enabled); 3272 int nativeContentViewCoreImpl, boolean enabled);
3273 } 3273 }
OLDNEW
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/input/InsertionHandleController.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698