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

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 (rebase) 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
« no previous file with comments | « ash/system/tray/tray_background_view.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9eb80c1d1fae6d06f19e3af23461b011620ad353..80cac07e364527d1f6e5e3ff1347b7511c9a63b6 100644
--- a/ash/system/tray/tray_background_view.cc
+++ b/ash/system/tray/tray_background_view.cc
@@ -333,10 +333,10 @@ 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, BACKGROUND_CHANGE_IMMEDIATE);
+ hover_background_animator_.SetPaintsBackground(
+ false, BACKGROUND_CHANGE_IMMEDIATE);
tray_container_ = new TrayContainer(shelf_alignment_);
SetContents(tray_container_);
@@ -362,8 +362,8 @@ 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, BACKGROUND_CHANGE_ANIMATE);
}
void TrayBackgroundView::OnMouseExited(const ui::MouseEvent& event) {
@@ -371,8 +371,8 @@ 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, BACKGROUND_CHANGE_ANIMATE);
}
void TrayBackgroundView::ChildPreferredSizeChanged(views::View* child) {
@@ -418,8 +418,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);
}
« no previous file with comments | « ash/system/tray/tray_background_view.h ('k') | ash/wm/dock/docked_window_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698