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.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
9 import android.app.Activity; | 9 import android.app.Activity; |
10 import android.app.SearchManager; | 10 import android.app.SearchManager; |
(...skipping 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 | 2270 |
2271 default: | 2271 default: |
2272 assert false : "Invalid selection event type."; | 2272 assert false : "Invalid selection event type."; |
2273 } | 2273 } |
2274 if (mContextualSearchClient != null) { | 2274 if (mContextualSearchClient != null) { |
2275 mContextualSearchClient.onSelectionEvent(eventType, xAnchor, yAnchor
); | 2275 mContextualSearchClient.onSelectionEvent(eventType, xAnchor, yAnchor
); |
2276 } | 2276 } |
2277 } | 2277 } |
2278 | 2278 |
2279 private void dismissTextHandles() { | 2279 private void dismissTextHandles() { |
2280 mHasSelection = false; | |
2281 mHasInsertion = false; | |
2282 if (mNativeContentViewCore != 0) nativeDismissTextHandles(mNativeContent
ViewCore); | 2280 if (mNativeContentViewCore != 0) nativeDismissTextHandles(mNativeContent
ViewCore); |
2283 } | 2281 } |
2284 | 2282 |
2285 private void setTextHandlesTemporarilyHidden(boolean hide) { | 2283 private void setTextHandlesTemporarilyHidden(boolean hide) { |
2286 if (mNativeContentViewCore == 0) return; | 2284 if (mNativeContentViewCore == 0) return; |
2287 nativeSetTextHandlesTemporarilyHidden(mNativeContentViewCore, hide); | 2285 nativeSetTextHandlesTemporarilyHidden(mNativeContentViewCore, hide); |
2288 } | 2286 } |
2289 | 2287 |
2290 /** | 2288 /** |
2291 * Hides the IME if the containerView is the active view for IME. | 2289 * Hides the IME if the containerView is the active view for IME. |
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3313 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, | 3311 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, |
3314 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, | 3312 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, |
3315 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, | 3313 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, |
3316 String textTrackTextShadow, String textTrackTextSize); | 3314 String textTrackTextShadow, String textTrackTextSize); |
3317 | 3315 |
3318 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3316 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
3319 int x, int y, int w, int h); | 3317 int x, int y, int w, int h); |
3320 | 3318 |
3321 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3319 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
3322 } | 3320 } |
OLD | NEW |