• Alex Newcomer's avatar
    Cros: Make notifications in context menus swipe/click-able · c650008c
    Alex Newcomer authored
    Add a NotificationItemView::NotificationItemViewDelegate, which:
     - Activates notifications.
     - Acts as the SlideOutController::Delegate.
     - Allows for easier testing of NotificationMenuView.
    
    Make NotificationMenuController a NotificationItemViewDelegate.
    
    Pass NotificationMenuController AppMenuModelAdapter:
     - Allows NotificationMenuController to close the menu.
    
    Also added tests.
    
    Bug: 843761
    Change-Id: I20474838a0fb5360196a3d0585b7e84620b86e9f
    Reviewed-on: https://chromium-review.googlesource.com/1120842
    Commit-Queue: Alex Newcomer <newcomer@chromium.org>
    Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#571993}
    c650008c
notification_menu_view_unittest.cc 12.8 KB