• Matthew Mourgos's avatar
    CrOS Shelf: Set right margin on status area based on tablet mode · 2b7dac61
    Matthew Mourgos authored
    With this change, the padding between the edge of the screen and the
    status area widget no longer has anything to do with the hotseat
    state. This edge padding will now only ever have two possible values,
    one value in tablet mode and another value in clamshell mode.
    
    This is a reland of crrev.com/c/1977025, which was reverted because
    of a test failure when the hotseat flag was enabled. The addition of
    UpdateIsDense() in OnAppListVisibilityWillChange() fixes the test
    failure. UpdateIsDense() has been changed to help minimize the number
    of times OnShelfConfigUpdated() will be called.
    
    Bug: 1035716
    Change-Id: Iddf1e13928d73f6783d33bddfd6cc1796d0abe31
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1990513Reviewed-by: default avatarTetsui Ohkubo <tetsui@chromium.org>
    Reviewed-by: default avatarManu Cornet <manucornet@chromium.org>
    Commit-Queue: Matthew Mourgos <mmourgos@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#730274}
    2b7dac61
status_area_widget_delegate.cc 9.57 KB