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

Issue 12093068: Adding missing UpdateTextInputState calls after each ime event. (Closed)

Created:
7 years, 10 months ago by aurimas (slooooooooow)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Adding missing UpdateTextInputState calls after each ime event. Adding the missing UpdateTextInputState calls after each ime event and preventing updates midway through ime event. Added missing calls will start sending UpdateSelection updates to the IMEs. i.e. confirmComposition can cause multiple didChangeSelection calls but we only care about the last one. BUG=172845 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182534

Patch Set 1 #

Patch Set 2 : Adding the missing selection values to EditorInfo #

Total comments: 5

Patch Set 3 : Removing unnecessary restartInput() #

Patch Set 4 : Adding an Android IME test #

Total comments: 14

Patch Set 5 : Fixed Ted's nits #

Total comments: 1

Patch Set 6 : Adding a TODO #

Patch Set 7 : Re-storing UpdateTextInputState to willBeginCompositorFrame #

Patch Set 8 : Fix findbugs #

Patch Set 9 : Fixing updateSelection() #

Patch Set 10 : Fixing testKeyboardDismissedAfterClickingGo test #

Patch Set 11 : Another attempt to fix testKeyboardDismissedAfterClickingGo #

Total comments: 2

Patch Set 12 : jamesr suggestion fix #

Patch Set 13 : adding dchecks for handling_ime_event_ #

Patch Set 14 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -33 lines) Patch
M build/android/findbugs_filter/findbugs_known_bugs.txt View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +20 lines, -22 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ImeTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -7 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
aurimas (slooooooooow)
Hello Seigo, Could you take a look at this CL? Thanks, Aurimas
7 years, 10 months ago (2013-01-30 19:15:36 UTC) #1
aurimas (slooooooooow)
Hey Yusuf, PTAL. Aurimas
7 years, 10 months ago (2013-01-30 22:31:58 UTC) #2
Seigo Nonaka
lgtm lgtm I think this patch is safe for desktop text input. Just in case, ...
7 years, 10 months ago (2013-01-31 06:19:14 UTC) #3
aurimas (slooooooooow)
https://codereview.chromium.org/12093068/diff/3001/content/renderer/render_widget.h File content/renderer/render_widget.h (right): https://codereview.chromium.org/12093068/diff/3001/content/renderer/render_widget.h#newcode541 content/renderer/render_widget.h:541: // Are we currently handling an ime event? On ...
7 years, 10 months ago (2013-01-31 06:31:13 UTC) #4
Yusuf
lgtm
7 years, 10 months ago (2013-01-31 06:53:14 UTC) #5
aurimas (slooooooooow)
Hello James, Could you take a look at this change please? I understand that you ...
7 years, 10 months ago (2013-01-31 17:30:31 UTC) #6
jamesr
https://codereview.chromium.org/12093068/diff/3001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/12093068/diff/3001/content/renderer/render_view_impl.cc#newcode1424 content/renderer/render_view_impl.cc:1424: handling_ime_event_ = true; What does this do? I can't ...
7 years, 10 months ago (2013-02-01 00:22:10 UTC) #7
jamesr
I don't feel at all confident in this patch without tests. If you can find ...
7 years, 10 months ago (2013-02-01 00:26:43 UTC) #8
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/12093068/diff/3001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://chromiumcodereview.appspot.com/12093068/diff/3001/content/renderer/render_view_impl.cc#newcode1424 content/renderer/render_view_impl.cc:1424: handling_ime_event_ = true; On 2013/02/01 00:22:10, jamesr wrote: > ...
7 years, 10 months ago (2013-02-01 00:30:03 UTC) #9
aurimas (slooooooooow)
Hey James, Could you take a look at this patch please? Thanks, Aurimas
7 years, 10 months ago (2013-02-01 00:44:59 UTC) #10
James Su
LGTM. This patch looks safe to me, though I didn't test it. On 2013/02/01 00:44:59, ...
7 years, 10 months ago (2013-02-01 04:18:15 UTC) #11
aurimas (slooooooooow)
Hey Ted, Could you take a look at my Android changes in this CL? Thanks, ...
7 years, 10 months ago (2013-02-06 00:45:47 UTC) #12
Ted C
mainly nits...question about the clear focus business though https://chromiumcodereview.appspot.com/12093068/diff/16001/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java (left): https://chromiumcodereview.appspot.com/12093068/diff/16001/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java#oldcode534 content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:534: // ...
7 years, 10 months ago (2013-02-06 00:59:00 UTC) #13
aurimas (slooooooooow)
https://chromiumcodereview.appspot.com/12093068/diff/16001/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java (left): https://chromiumcodereview.appspot.com/12093068/diff/16001/content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java#oldcode534 content/public/android/java/src/org/chromium/content/browser/ImeAdapter.java:534: // When WebKit changes the editable field, both the ...
7 years, 10 months ago (2013-02-06 02:25:44 UTC) #14
Ted C
lgtm https://chromiumcodereview.appspot.com/12093068/diff/16002/content/shell/android/java/src/org/chromium/content_shell/Shell.java File content/shell/android/java/src/org/chromium/content_shell/Shell.java (right): https://chromiumcodereview.appspot.com/12093068/diff/16002/content/shell/android/java/src/org/chromium/content_shell/Shell.java#newcode149 content/shell/android/java/src/org/chromium/content_shell/Shell.java:149: // Remove this when crbug.com/174541 is fixed. Make ...
7 years, 10 months ago (2013-02-06 02:29:21 UTC) #15
aurimas (slooooooooow)
Hello James (jamesr), Could you take a look at this CL again? I have added ...
7 years, 10 months ago (2013-02-06 02:35:08 UTC) #16
aurimas (slooooooooow)
On 2013/02/06 02:35:08, aurimas wrote: > Hello James (jamesr), > > Could you take a ...
7 years, 10 months ago (2013-02-12 22:22:30 UTC) #17
jamesr
sorry, I missed it. LGTM with one comment https://codereview.chromium.org/12093068/diff/23005/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/12093068/diff/23005/content/renderer/render_widget.cc#newcode1563 content/renderer/render_widget.cc:1563: handling_ime_event_ ...
7 years, 10 months ago (2013-02-12 22:54:34 UTC) #18
aurimas (slooooooooow)
jamesr: should I add AutoReset<bool> in other methods too? https://codereview.chromium.org/12093068/diff/23005/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/12093068/diff/23005/content/renderer/render_widget.cc#newcode1563 content/renderer/render_widget.cc:1563: ...
7 years, 10 months ago (2013-02-13 00:35:50 UTC) #19
jamesr
On 2013/02/13 00:35:50, aurimas wrote: > jamesr: should I add AutoReset<bool> in other methods too? ...
7 years, 10 months ago (2013-02-13 00:40:10 UTC) #20
aurimas (slooooooooow)
Hey David, Could you look over my Java changes to make sure that it looks ...
7 years, 10 months ago (2013-02-13 01:08:06 UTC) #21
David Trainor- moved to gerrit
lgtm I couldn't see anything obviously wrong with it.
7 years, 10 months ago (2013-02-13 01:27:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/12093068/30006
7 years, 10 months ago (2013-02-13 01:28:32 UTC) #23
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=10079
7 years, 10 months ago (2013-02-13 11:55:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/12093068/30006
7 years, 10 months ago (2013-02-13 15:36:31 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aurimas@chromium.org/12093068/38002
7 years, 10 months ago (2013-02-14 20:58:13 UTC) #26
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 21:00:54 UTC) #27
Message was sent while issue was closed.
Change committed as 182534

Powered by Google App Engine
This is Rietveld 408576698