| 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 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 getContentViewClient().onImeEvent(); | 653 getContentViewClient().onImeEvent(); |
| 654 if (mFocusedNodeEditable) dismissTextHandles(); | 654 if (mFocusedNodeEditable) dismissTextHandles(); |
| 655 } | 655 } |
| 656 | 656 |
| 657 @Override | 657 @Override |
| 658 public void onDismissInput() { | 658 public void onDismissInput() { |
| 659 getContentViewClient().onImeStateChangeRequested(false); | 659 getContentViewClient().onImeStateChangeRequested(false); |
| 660 } | 660 } |
| 661 | 661 |
| 662 @Override | 662 @Override |
| 663 public void onKeyboardBoundsUnchanged() { |
| 664 assert mWebContents != null; |
| 665 mWebContents.scrollFocusedEditableNodeIntoView(); |
| 666 } |
| 667 |
| 668 @Override |
| 663 public View getAttachedView() { | 669 public View getAttachedView() { |
| 664 return mContainerView; | 670 return mContainerView; |
| 665 } | 671 } |
| 666 | 672 |
| 667 @Override | 673 @Override |
| 668 public ResultReceiver getNewShowKeyboardReceiver() { | 674 public ResultReceiver getNewShowKeyboardReceiver() { |
| 669 return new ResultReceiver(new Handler()) { | 675 return new ResultReceiver(new Handler()) { |
| 670 @Override | 676 @Override |
| 671 public void onReceiveResult(int resultCode, Bundle r
esultData) { | 677 public void onReceiveResult(int resultCode, Bundle r
esultData) { |
| 672 getContentViewClient().onImeStateChangeRequested
( | 678 getContentViewClient().onImeStateChangeRequested
( |
| (...skipping 2484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 private native void nativeWasResized(long nativeContentViewCoreImpl); | 3163 private native void nativeWasResized(long nativeContentViewCoreImpl); |
| 3158 | 3164 |
| 3159 private native void nativeSetAccessibilityEnabled( | 3165 private native void nativeSetAccessibilityEnabled( |
| 3160 long nativeContentViewCoreImpl, boolean enabled); | 3166 long nativeContentViewCoreImpl, boolean enabled); |
| 3161 | 3167 |
| 3162 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3168 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
| 3163 int x, int y, int w, int h); | 3169 int x, int y, int w, int h); |
| 3164 | 3170 |
| 3165 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3171 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
| 3166 } | 3172 } |
| OLD | NEW |