| Index: ash/system/tray/tray_background_view.cc
|
| diff --git a/ash/system/tray/tray_background_view.cc b/ash/system/tray/tray_background_view.cc
|
| index 3939b70105277dd3f18f08603f3ec26d73ed179b..f55ed83deba91dd6f65473791ba538c2e7b12ac8 100644
|
| --- a/ash/system/tray/tray_background_view.cc
|
| +++ b/ash/system/tray/tray_background_view.cc
|
| @@ -333,10 +333,8 @@ TrayBackgroundView::TrayBackgroundView(
|
| set_notify_enter_exit_on_child(true);
|
|
|
| // Initially we want to paint the background, but without the hover effect.
|
| - hide_background_animator_.SetPaintsBackground(true,
|
| - internal::BackgroundAnimator::CHANGE_IMMEDIATE);
|
| - hover_background_animator_.SetPaintsBackground(false,
|
| - internal::BackgroundAnimator::CHANGE_IMMEDIATE);
|
| + hide_background_animator_.SetPaintsBackground(true, CHANGE_IMMEDIATE);
|
| + hover_background_animator_.SetPaintsBackground(false, CHANGE_IMMEDIATE);
|
|
|
| tray_container_ = new TrayContainer(shelf_alignment_);
|
| SetContents(tray_container_);
|
| @@ -362,8 +360,7 @@ void TrayBackgroundView::OnMouseEntered(const ui::MouseEvent& event) {
|
| if (!background_ || draw_background_as_active_ ||
|
| ash::switches::UseAlternateShelfLayout())
|
| return;
|
| - hover_background_animator_.SetPaintsBackground(true,
|
| - internal::BackgroundAnimator::CHANGE_ANIMATE);
|
| + hover_background_animator_.SetPaintsBackground(true, CHANGE_ANIMATE);
|
| }
|
|
|
| void TrayBackgroundView::OnMouseExited(const ui::MouseEvent& event) {
|
| @@ -371,8 +368,7 @@ void TrayBackgroundView::OnMouseExited(const ui::MouseEvent& event) {
|
| if (!background_ || draw_background_as_active_ ||
|
| ash::switches::UseAlternateShelfLayout())
|
| return;
|
| - hover_background_animator_.SetPaintsBackground(false,
|
| - internal::BackgroundAnimator::CHANGE_ANIMATE);
|
| + hover_background_animator_.SetPaintsBackground(false, CHANGE_ANIMATE);
|
| }
|
|
|
| void TrayBackgroundView::ChildPreferredSizeChanged(views::View* child) {
|
| @@ -419,8 +415,7 @@ void TrayBackgroundView::SetContents(views::View* contents) {
|
| }
|
|
|
| void TrayBackgroundView::SetPaintsBackground(
|
| - bool value,
|
| - internal::BackgroundAnimator::ChangeType change_type) {
|
| + bool value, BackgroundAnimatorChangeType change_type) {
|
| DCHECK(!ash::switches::UseAlternateShelfLayout());
|
| hide_background_animator_.SetPaintsBackground(value, change_type);
|
| }
|
|
|