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

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

Issue 411553002: Hide the PopupZoomer when input is received from IME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing the previous patch Created 6 years, 4 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.ClipboardManager; 10 import android.content.ClipboardManager;
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 @VisibleForTesting 547 @VisibleForTesting
548 public AdapterInputConnection getInputConnectionForTest() { 548 public AdapterInputConnection getInputConnectionForTest() {
549 return mInputConnection; 549 return mInputConnection;
550 } 550 }
551 551
552 private ImeAdapter createImeAdapter(Context context) { 552 private ImeAdapter createImeAdapter(Context context) {
553 return new ImeAdapter(mInputMethodManagerWrapper, 553 return new ImeAdapter(mInputMethodManagerWrapper,
554 new ImeAdapter.ImeAdapterDelegate() { 554 new ImeAdapter.ImeAdapterDelegate() {
555 @Override 555 @Override
556 public void onImeEvent(boolean isFinish) { 556 public void onImeEvent(boolean isFinish) {
557 if (mPopupZoomer.isShowing()) {
558 mPopupZoomer.hide(true);
559 }
557 getContentViewClient().onImeEvent(); 560 getContentViewClient().onImeEvent();
558 if (!isFinish) { 561 if (!isFinish) {
559 hideTextHandles(); 562 hideTextHandles();
560 } 563 }
561 } 564 }
562 565
563 @Override 566 @Override
564 public void onDismissInput() { 567 public void onDismissInput() {
565 getContentViewClient().onImeStateChangeRequested(false); 568 getContentViewClient().onImeStateChangeRequested(false);
566 } 569 }
(...skipping 2713 matching lines...) Expand 10 before | Expand all | Expand 10 after
3280 3283
3281 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3284 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3282 int x, int y, int w, int h); 3285 int x, int y, int w, int h);
3283 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3286 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3284 3287
3285 private native void nativeResumeResponseDeferredAtStart( 3288 private native void nativeResumeResponseDeferredAtStart(
3286 long nativeContentViewCoreImpl); 3289 long nativeContentViewCoreImpl);
3287 private native void nativeSetHasPendingNavigationTransitionForTesting( 3290 private native void nativeSetHasPendingNavigationTransitionForTesting(
3288 long nativeContentViewCoreImpl); 3291 long nativeContentViewCoreImpl);
3289 } 3292 }
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