• Peter Kasting's avatar
    Reorganize code; no functional change. · 9e6c225b
    Peter Kasting authored
    * AnimateStateTransition() is never called; remove.
    * OpenDownload(), Reenable(), DrawIcon(), UpdateColorsFromTheme(),
      GetErrorIconSize(), and ReleaseDropdown() are only referenced in one
      function apiece.  Inline them into their callers, which in many
      cases will provide future refactoring opportunities.  In a couple of
      cases (OnPaint() and ButtonPressed()) the callers are unwieldy as a
      result; these will be refactored in an upcoming CL.
    * Reorder a few other functions to try and group related functions
      together more.
    * Improve .h comments slightly.
    
    Bug: none
    Change-Id: Ic6801d70b3dadd1c696ee0d97fb8daf5b23f85c3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2303863
    Commit-Queue: Peter Kasting <pkasting@chromium.org>
    Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#789611}
    9e6c225b
download_item_view.cc 52.3 KB