• Andrew Xu's avatar
    Separate the edge padding into two parts · 5f02ed6a
    Andrew Xu authored
    Edge padding of scrollable shelf logically consists of two parts:
    the minimum gap between scrollable shelf and other components
    (such as status area widget) and the gap decided by centering strategy
    (display centering, view centering or overflow). This CL separates the
    edge padding into those two parts. It improves the code readability.
    
    In addition, currently the shelf view does not notify the parent view
    of the added icon. This CL also fixes it.
    
    Change-Id: Id10263b7b532230539cac5d179d7534ca050ef87
    Bug: 1041702
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2052593
    Commit-Queue: Andrew Xu <andrewxu@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#745522}
    5f02ed6a
scrollable_shelf_view.cc 83.7 KB