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.content.ActivityNotFoundException; | 7 import android.content.ActivityNotFoundException; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.content.Intent; | 9 import android.content.Intent; |
10 import android.view.ActionMode; | 10 import android.view.ActionMode; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 66 } |
67 | 67 |
68 /** | 68 /** |
69 * Called when an ImeEvent is sent to the page. Can be used to know when som
e text is entered | 69 * Called when an ImeEvent is sent to the page. Can be used to know when som
e text is entered |
70 * in a page. | 70 * in a page. |
71 */ | 71 */ |
72 public void onImeEvent() { | 72 public void onImeEvent() { |
73 } | 73 } |
74 | 74 |
75 /** | 75 /** |
76 * Notified when a change to the IME was requested. | 76 * Notified when the editability of the focused node changes. |
77 * | 77 * |
78 * @param requestShow Whether the IME was requested to be shown (may already
be showing | 78 * @param editable Whether the focused node is editable. |
79 * though). | |
80 */ | 79 */ |
81 public void onImeStateChangeRequested(boolean requestShow) { | 80 public void onFocusedNodeEditabilityChanged(boolean editable) { |
82 } | 81 } |
83 | 82 |
84 /** | 83 /** |
85 * Starts an ActionMode for in-page selection. | 84 * Starts an ActionMode for in-page selection. |
86 * @param view The associated View. | 85 * @param view The associated View. |
87 * @param actionHandler The associated ActionHandler. | 86 * @param actionHandler The associated ActionHandler. |
88 * @param floating Whether to try creating a floating ActionMode. If this | 87 * @param floating Whether to try creating a floating ActionMode. If this |
89 * feature is unsupported, the return value will be null. | 88 * feature is unsupported, the return value will be null. |
90 * @return the SelectActionMode if creation is successful, otherwise null. | 89 * @return the SelectActionMode if creation is successful, otherwise null. |
91 */ | 90 */ |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 || keyCode == KeyEvent.KEYCODE_CAMERA | 196 || keyCode == KeyEvent.KEYCODE_CAMERA |
198 || keyCode == KeyEvent.KEYCODE_FOCUS | 197 || keyCode == KeyEvent.KEYCODE_FOCUS |
199 || keyCode == KeyEvent.KEYCODE_VOLUME_DOWN | 198 || keyCode == KeyEvent.KEYCODE_VOLUME_DOWN |
200 || keyCode == KeyEvent.KEYCODE_VOLUME_MUTE | 199 || keyCode == KeyEvent.KEYCODE_VOLUME_MUTE |
201 || keyCode == KeyEvent.KEYCODE_VOLUME_UP) { | 200 || keyCode == KeyEvent.KEYCODE_VOLUME_UP) { |
202 return false; | 201 return false; |
203 } | 202 } |
204 return true; | 203 return true; |
205 } | 204 } |
206 } | 205 } |
OLD | NEW |