OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.TargetApi; | 7 import android.annotation.TargetApi; |
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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 assert !mPendingShowActionMode; | 982 assert !mPendingShowActionMode; |
983 assert !mHidden; | 983 assert !mHidden; |
984 } | 984 } |
985 | 985 |
986 void onShowUnhandledTapUIIfNeeded(int x, int y) { | 986 void onShowUnhandledTapUIIfNeeded(int x, int y) { |
987 if (mSelectionClient != null) { | 987 if (mSelectionClient != null) { |
988 mSelectionClient.showUnhandledTapUIIfNeeded(x, y); | 988 mSelectionClient.showUnhandledTapUIIfNeeded(x, y); |
989 } | 989 } |
990 } | 990 } |
991 | 991 |
| 992 void onSelectWordAroundCaretAck(boolean didSelect, int startAdjust, int endA
djust) { |
| 993 if (mSelectionClient != null) { |
| 994 mSelectionClient.selectWordAroundCaretAck(didSelect, startAdjust, en
dAdjust); |
| 995 } |
| 996 } |
| 997 |
992 void destroyActionModeAndUnselect() { | 998 void destroyActionModeAndUnselect() { |
993 mUnselectAllOnDismiss = true; | 999 mUnselectAllOnDismiss = true; |
994 finishActionMode(); | 1000 finishActionMode(); |
995 } | 1001 } |
996 | 1002 |
997 void destroyActionModeAndKeepSelection() { | 1003 void destroyActionModeAndKeepSelection() { |
998 mUnselectAllOnDismiss = false; | 1004 mUnselectAllOnDismiss = false; |
999 finishActionMode(); | 1005 finishActionMode(); |
1000 } | 1006 } |
1001 | 1007 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1060 if (mPendingShowActionMode) return; | 1066 if (mPendingShowActionMode) return; |
1061 } | 1067 } |
1062 | 1068 |
1063 // Rely on this method to clear |mHidden| and unhide the action mode
. | 1069 // Rely on this method to clear |mHidden| and unhide the action mode
. |
1064 showActionModeOrClearOnFailure(); | 1070 showActionModeOrClearOnFailure(); |
1065 } | 1071 } |
1066 }; | 1072 }; |
1067 | 1073 |
1068 private native void nativeInit(WebContents webContents); | 1074 private native void nativeInit(WebContents webContents); |
1069 } | 1075 } |
OLD | NEW |