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.ClipboardManager; | 10 import android.content.ClipboardManager; |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |