New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 848249 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Jun 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Overscrolling on ARC++ apps is broken.

Project Member Reported by yhanada@chromium.org, May 31 2018

Issue description

ArcImeService observes the bounds of VK window and sends it to Android container to move up views in Android side.
In the recent change(crrev.com/c/1068277), we don't destroy KeyboardController instance until ash::Shell is destroyed, but the list of observers is cleared when DisableKeyboard() is called. Then after calling DiableKeyboard() once, ArcImeService can't observe change of virtual keyboard appearance anymore.

 

Comment 1 by shend@chromium.org, May 31 2018

Hmm, so how did this work before? With the original code, if we disabled the keyboard, it would delete the KeyboardController instance and clear all of its observers as well right?
Project Member

Comment 2 by bugdroid1@chromium.org, Jun 1 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/b120be1195044c8be06578bdec47c93e5f3011f0

commit b120be1195044c8be06578bdec47c93e5f3011f0
Author: Yuichiro Hanada <yhanada@chromium.org>
Date: Fri Jun 01 00:12:22 2018

Don't clear the observer list in KeyboardController::DisableKeyboard().

It's hard for observers of KeyboardController to watch EnableKeyboard()
calling and re-add themselves to the observer list.

Bug:  848249 
Test: keyboard_unittests
Change-Id: I18cf2cb6c2099ed82b105a463093cac0cda8dfcf
Reviewed-on: https://chromium-review.googlesource.com/1080670
Reviewed-by: Darren Shen <shend@chromium.org>
Commit-Queue: Yuichiro Hanada <yhanada@chromium.org>
Cr-Commit-Position: refs/heads/master@{#563450}
[modify] https://crrev.com/b120be1195044c8be06578bdec47c93e5f3011f0/ui/keyboard/keyboard_controller.cc
[modify] https://crrev.com/b120be1195044c8be06578bdec47c93e5f3011f0/ui/keyboard/keyboard_controller_unittest.cc

The issue should be fixed now. I'll make a follow up CL to clean up observer registering code in ArcImeService.

Comment 4 by shend@chromium.org, Jun 18 2018

Status: Fixed (was: Started)
I think this should be fixed now right?
ah, yes. I forgot to close this issue. Thanks!

Sign in to add a comment