[Launcher impressions] Fix tablet mode impressions
We currently don't handle tablet mode correctly, because the launcher is considered 'shown' in fullscreen mode at all times behind the active app. We need to observe some extra signal of when the launcher is shown or hidden. Talking to mmourgos@, the AppListControllerObserver is the right way to do this. Observer: I've had to lift the AddObserver and RemoveObserver methods out of the AppListControllerImpl and into the AppListController itself, so they are visible from chrome. Impressions logic: When the view state is 'shown', only the chips are shown. When the state is 'closed', we should set all views to none. Bug: 1097599 Change-Id: Idf971ccc5a4bb91c6167e234449a8ed6bee564f0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2309770Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Reviewed-by:
Thanh Nguyen <thanhdng@chromium.org> Commit-Queue: Tony Yeoman <tby@chromium.org> Cr-Commit-Position: refs/heads/master@{#791679}
Showing
Please register or sign in to comment