Remove HomeLauncherGestureHandlerObserver
HomeLauncherGestureHandler currently has two observers: * AppListControllerImpl, which is also a HomeScreenDelegate implementation (on which HomeScreenGestureHandler already depends, so additional observer interface just obscures/complicates this dependency) * HomeLauncherStateWaiter which is used by interactive UI/perf tests to wait for launcher animations to complete For the former case, moving the observer methods to HomeScreenDelegate interface will work fine. For latter case, the test waiter can register a callback with AppListControllerImpl to be run when the home launcher animations are complete - the same way it's done by LauncherStateWaiter, an equivalent test waiter used in clamshell mode (or for waiting for non-visibility app list state transitions) Change-Id: Ia333bedab2b8683d35da2d00030cf40df2c619f5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1888652Reviewed-by:Manu Cornet <manucornet@chromium.org> Reviewed-by:
Mitsuru Oshima <oshima@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#711038}
Showing
Please register or sign in to comment