Fix bugs in scrollable shelf exposed by unit tests
Some bugs are exposed by enabling scrollable shelf during tests: (1) In ScrollableShelfView::OnGestureEvent, event should be stopped from propagation if it gets handled. (2) In ScrollableShelfView::ShouldShowTooltipForView, it should check that the shelf item is not removed from the shelf model, (3) In FindFirstFocusableChild/FindLastFocusableChild, it should return early if the view model is empty. Bug: 1002576 Change-Id: I35a96d002bae88157e56622a880b6b3256e3e4fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807562Reviewed-by:Manu Cornet <manucornet@chromium.org> Commit-Queue: Andrew Xu <andrewxu@chromium.org> Cr-Commit-Position: refs/heads/master@{#696993}
Showing
Please register or sign in to comment