| 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.app.Activity; | 8 import android.app.Activity; |
| 9 import android.app.SearchManager; | 9 import android.app.SearchManager; |
| 10 import android.content.ContentResolver; | 10 import android.content.ContentResolver; |
| (...skipping 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2307 } | 2307 } |
| 2308 | 2308 |
| 2309 @CalledByNative | 2309 @CalledByNative |
| 2310 private void updateImeAdapter(long nativeImeAdapterAndroid, int textInputTyp
e, | 2310 private void updateImeAdapter(long nativeImeAdapterAndroid, int textInputTyp
e, |
| 2311 String text, int selectionStart, int selectionEnd, | 2311 String text, int selectionStart, int selectionEnd, |
| 2312 int compositionStart, int compositionEnd, boolean showImeIfNeeded, | 2312 int compositionStart, int compositionEnd, boolean showImeIfNeeded, |
| 2313 boolean isNonImeChange) { | 2313 boolean isNonImeChange) { |
| 2314 TraceEvent.begin(); | 2314 TraceEvent.begin(); |
| 2315 mSelectionEditable = (textInputType != ImeAdapter.getTextInputTypeNone()
); | 2315 mSelectionEditable = (textInputType != ImeAdapter.getTextInputTypeNone()
); |
| 2316 | 2316 |
| 2317 if (mActionMode != null) mActionMode.invalidate(); | |
| 2318 | |
| 2319 mImeAdapter.updateKeyboardVisibility( | 2317 mImeAdapter.updateKeyboardVisibility( |
| 2320 nativeImeAdapterAndroid, textInputType, showImeIfNeeded); | 2318 nativeImeAdapterAndroid, textInputType, showImeIfNeeded); |
| 2321 | 2319 |
| 2322 if (mInputConnection != null) { | 2320 if (mInputConnection != null) { |
| 2323 mInputConnection.updateState(text, selectionStart, selectionEnd, com
positionStart, | 2321 mInputConnection.updateState(text, selectionStart, selectionEnd, com
positionStart, |
| 2324 compositionEnd, isNonImeChange); | 2322 compositionEnd, isNonImeChange); |
| 2325 } | 2323 } |
| 2324 |
| 2325 if (mActionMode != null) mActionMode.invalidate(); |
| 2326 TraceEvent.end(); | 2326 TraceEvent.end(); |
| 2327 } | 2327 } |
| 2328 | 2328 |
| 2329 @SuppressWarnings("unused") | 2329 @SuppressWarnings("unused") |
| 2330 @CalledByNative | 2330 @CalledByNative |
| 2331 private void setTitle(String title) { | 2331 private void setTitle(String title) { |
| 2332 getContentViewClient().onUpdateTitle(title); | 2332 getContentViewClient().onUpdateTitle(title); |
| 2333 } | 2333 } |
| 2334 | 2334 |
| 2335 /** | 2335 /** |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3239 | 3239 |
| 3240 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); | 3240 private native void nativeShowImeIfNeeded(long nativeContentViewCoreImpl); |
| 3241 | 3241 |
| 3242 private native void nativeSetAccessibilityEnabled( | 3242 private native void nativeSetAccessibilityEnabled( |
| 3243 long nativeContentViewCoreImpl, boolean enabled); | 3243 long nativeContentViewCoreImpl, boolean enabled); |
| 3244 | 3244 |
| 3245 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3245 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
| 3246 int x, int y, int w, int h); | 3246 int x, int y, int w, int h); |
| 3247 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3247 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
| 3248 } | 3248 } |
| OLD | NEW |