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

Unified Diff: ash/common/shelf/app_list_button.h

Issue 2053113002: Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into animate_shelf_chip_backgrounds 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/common/shelf/app_list_button.h
diff --git a/ash/common/shelf/app_list_button.h b/ash/common/shelf/app_list_button.h
index 0fabb4a62db82825639115978892a029acdb596a..af0fdbd9d4192fd552694607b66fa31ae5b5ab5f 100644
--- a/ash/common/shelf/app_list_button.h
+++ b/ash/common/shelf/app_list_button.h
@@ -27,6 +27,9 @@ class ASH_EXPORT AppListButton : public views::ImageButton {
bool draw_background_as_active() { return draw_background_as_active_; }
+ // Sets alpha value of the background and schedules a paint.
+ void SetBackgroundAlpha(int alpha);
+
protected:
// views::ImageButton overrides:
bool OnMousePressed(const ui::MouseEvent& event) override;
@@ -61,6 +64,9 @@ class ASH_EXPORT AppListButton : public views::ImageButton {
// the application list.
bool draw_background_as_active_;
+ // Alpha value used to paint the background.
+ int background_alpha_;
+
InkDropButtonListener* listener_;
ShelfView* shelf_view_;
WmShelf* wm_shelf_;
« no previous file with comments | « ash/common/material_design/material_design_controller_unittest.cc ('k') | ash/common/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698