| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |