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

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

Issue 784503002: Revert "Plumb composition character bounds from C++ to Java" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « content/browser/renderer_host/render_widget_host_view_android.cc ('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.input; 5 package org.chromium.content.browser.input;
6 6
7 import android.os.Handler; 7 import android.os.Handler;
8 import android.os.ResultReceiver; 8 import android.os.ResultReceiver;
9 import android.os.SystemClock; 9 import android.os.SystemClock;
10 import android.text.Editable; 10 import android.text.Editable;
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 } 691 }
692 } 692 }
693 693
694 @CalledByNative 694 @CalledByNative
695 private void cancelComposition() { 695 private void cancelComposition() {
696 if (mInputConnection != null) mInputConnection.restartInput(); 696 if (mInputConnection != null) mInputConnection.restartInput();
697 mLastComposeText = null; 697 mLastComposeText = null;
698 } 698 }
699 699
700 @CalledByNative 700 @CalledByNative
701 private void setCharacterBounds(float[] characterBounds) {
702 // TODO(yukawa): Implement this.
703 }
704
705 @CalledByNative
706 void detach() { 701 void detach() {
707 if (mDismissInput != null) { 702 if (mDismissInput != null) {
708 mHandler.removeCallbacks(mDismissInput); 703 mHandler.removeCallbacks(mDismissInput);
709 mDismissInput.detach(); 704 mDismissInput.detach();
710 } 705 }
711 mNativeImeAdapterAndroid = 0; 706 mNativeImeAdapterAndroid = 0;
712 mTextInputType = 0; 707 mTextInputType = 0;
713 } 708 }
714 709
715 private native boolean nativeSendSyntheticKeyEvent(long nativeImeAdapterAndr oid, 710 private native boolean nativeSendSyntheticKeyEvent(long nativeImeAdapterAndr oid,
(...skipping 25 matching lines...) Expand all
741 private native void nativeDeleteSurroundingText(long nativeImeAdapterAndroid , 736 private native void nativeDeleteSurroundingText(long nativeImeAdapterAndroid ,
742 int before, int after); 737 int before, int after);
743 738
744 private native void nativeUnselect(long nativeImeAdapterAndroid); 739 private native void nativeUnselect(long nativeImeAdapterAndroid);
745 private native void nativeSelectAll(long nativeImeAdapterAndroid); 740 private native void nativeSelectAll(long nativeImeAdapterAndroid);
746 private native void nativeCut(long nativeImeAdapterAndroid); 741 private native void nativeCut(long nativeImeAdapterAndroid);
747 private native void nativeCopy(long nativeImeAdapterAndroid); 742 private native void nativeCopy(long nativeImeAdapterAndroid);
748 private native void nativePaste(long nativeImeAdapterAndroid); 743 private native void nativePaste(long nativeImeAdapterAndroid);
749 private native void nativeResetImeAdapter(long nativeImeAdapterAndroid); 744 private native void nativeResetImeAdapter(long nativeImeAdapterAndroid);
750 } 745 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698