OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.Bundle; | 7 import android.os.Bundle; |
8 import android.os.Handler; | 8 import android.os.Handler; |
9 import android.os.Looper; | 9 import android.os.Looper; |
10 import android.view.KeyCharacterMap; | 10 import android.view.KeyCharacterMap; |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 public boolean performPrivateCommand(String action, Bundle data) { | 594 public boolean performPrivateCommand(String action, Bundle data) { |
595 if (DEBUG_LOGS) Log.w(TAG, "performPrivateCommand [%s]", action); | 595 if (DEBUG_LOGS) Log.w(TAG, "performPrivateCommand [%s]", action); |
596 assertOnImeThread(); | 596 assertOnImeThread(); |
597 return false; | 597 return false; |
598 } | 598 } |
599 | 599 |
600 /** | 600 /** |
601 * @see InputConnection#requestCursorUpdates(int) | 601 * @see InputConnection#requestCursorUpdates(int) |
602 */ | 602 */ |
603 @Override | 603 @Override |
604 public boolean requestCursorUpdates(int cursorUpdateMode) { | 604 public boolean requestCursorUpdates(final int cursorUpdateMode) { |
605 if (DEBUG_LOGS) Log.w(TAG, "requestCursorUpdates [%x]", cursorUpdateMode
); | 605 if (DEBUG_LOGS) Log.w(TAG, "requestCursorUpdates [%x]", cursorUpdateMode
); |
606 assertOnImeThread(); | 606 assertOnImeThread(); |
607 return false; | 607 ThreadUtils.postOnUiThread(new Runnable() { |
| 608 @Override |
| 609 public void run() { |
| 610 mImeAdapter.onRequestCursorUpdates(cursorUpdateMode); |
| 611 } |
| 612 }); |
| 613 return true; |
608 } | 614 } |
609 } | 615 } |
OLD | NEW |