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

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

Issue 336743002: Invalidate Select Action bar after new input type is updated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding myself to AUTHORS Created 6 years, 6 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
« no previous file with comments | « AUTHORS ('k') | no next file » | 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.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
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
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 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698