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

Issue 13909003: [Android] Suppress unnecessary selection updates. (Closed)

Created:
7 years, 8 months ago by Fredrik Öhrn
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@ime
Visibility:
Public.

Description

Suppress unnecessary selection updates. BUG=229812

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java View 5 chunks +17 lines, -7 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
Fredrik Öhrn
The mPendingUpdate flag inhibits calling updateSelection() after endBatchEdit() unless a setEditableText() call was received during ...
7 years, 8 months ago (2013-04-10 09:21:16 UTC) #1
Fredrik Öhrn
7 years, 8 months ago (2013-04-10 09:35:45 UTC) #2
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/13909003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java (right): https://chromiumcodereview.appspot.com/13909003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java#newcode577 content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:577: if (mLastUpdateSelectionStart == selectionStart && Can you explain why ...
7 years, 8 months ago (2013-04-10 14:35:45 UTC) #3
Fredrik Öhrn
https://chromiumcodereview.appspot.com/13909003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java (right): https://chromiumcodereview.appspot.com/13909003/diff/1/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java#newcode577 content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:577: if (mLastUpdateSelectionStart == selectionStart && On 2013/04/10 14:35:46, aurimas ...
7 years, 8 months ago (2013-04-10 15:27:36 UTC) #4
aurimas (slooooooooow)
7 years, 8 months ago (2013-04-10 15:49:12 UTC) #5
https://chromiumcodereview.appspot.com/13909003/diff/1/content/public/android...
File
content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java
(right):

https://chromiumcodereview.appspot.com/13909003/diff/1/content/public/android...
content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:577:
if (mLastUpdateSelectionStart == selectionStart &&
On 2013/04/10 15:27:36, Fredrik Öhrn wrote:
> On 2013/04/10 14:35:46, aurimas wrote:
> > Can you explain why this if check for the last update would allow sending an
> > update though if we did not receive any setEditableText()? 
> 
> When setIgnoreTextInputStateUpdates(false) calls this function the test will
not
> match if the on screen keyboard changed the selection or composition ranges
> during the batch edit.

If the keyboard did change the selection or composition ranges, then why
wouldn't we want to send an update?

Powered by Google App Engine
This is Rietveld 408576698