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

Unified Diff: ash/shelf/shelf_view.cc

Issue 2053113002: Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added PaletteTray to the Shelf background animations. Created 4 years, 5 months 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/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index 7ca66f899f82331e54b2a0a6019718f54886a4f1..2d10e9ea653dec3181940b8c29fa985854b090a8 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -793,6 +793,11 @@ void ShelfView::PointerReleasedOnButton(views::View* view,
drag_view_ = nullptr;
}
+void ShelfView::UpdateShelfItemBackground(int alpha) {
+ GetAppListButton()->SetBackgroundAlpha(alpha);
+ overflow_button_->SetBackgroundAlpha(alpha);
+}
+
void ShelfView::LayoutToIdealBounds() {
if (bounds_animator_->IsAnimating()) {
AnimateToIdealBounds();

Powered by Google App Engine
This is Rietveld 408576698