Have OverviewButtonTray observe WindowSelectorController changes
commitd9711867a91317814c35c13bca95f60de48c0d59
authorjonross <jonross@chromium.org>
Tue, 28 Oct 2014 17:47:52 +0000 (28 10:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Oct 2014 17:48:06 +0000 (28 17:48 +0000)
treee277a77aaff5d423ab562e635e6fd9fd9b0f786b
parentb6fdf887332060c442dd131b90d1f0fee824b131
Have OverviewButtonTray observe WindowSelectorController changes

OverviewButtonTray changes its active state in response to user touch and activation. It would dismiss the active state when pressed again. However Overview Mode can be dismissed by other actions.

Implment and Observer in WindowSelectorController to notify of entering/exiting Overview Mode. Have OverviewButtonTray listen and update its state on dismissal.

TEST=OverviewButtonTrayTest.ActiveStateOnlyDuringOverviewMode
BUG=419875

Review URL: https://codereview.chromium.org/671303005

Cr-Commit-Position: refs/heads/master@{#301660}
ash/system/overview/overview_button_tray.cc
ash/system/overview/overview_button_tray.h
ash/system/overview/overview_button_tray_unittest.cc