• mukai@chromium.org's avatar
    Separate the logic of popup alignment and workarea handling as delegate. · a5a068d6
    mukai@chromium.org authored
    MessagePopupCollection contains plenty size of conditions and ifdefs
    to work properly with each type of the desktop we have, and some
    logic makes side effects on another desktop. This design is unhealty
    and adding more conditions sounds incorrect.
    
    Considering this, it would be better to extract platform dependent
    parts as a delegate class (PopupAlignmentDelegate) and allow
    subclasses to provide platform-specific features.
    
    This design is also beneficial for win-ash, because we had
    OS_CHROMEOS layout data and logic which actually means Ash.
    
    BUG=389656
    R=stevenjb@chromium.org, dimich@chromium.org
    TBR=jamescook@chromium.org, harrym@chromium.org
    TEST=message_center_unittests, ash_unittests, some manual checks
    
    Review URL: https://codereview.chromium.org/369573004
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282269 0039d316-1c4b-4281-b951-d872f2087c98
    a5a068d6
ash_popup_alignment_delegate.h 2.99 KB