Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: ash/system/tray/tray_background_view.cc

Issue 98373006: Animating docked background in sync with shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Animating docked background in sync with shelf (corner) Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698