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

Unified Diff: ash/common/shelf/overflow_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
« no previous file with comments | « ash/common/shelf/app_list_button.cc ('k') | ash/common/shelf/overflow_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/overflow_button.h
diff --git a/ash/common/shelf/overflow_button.h b/ash/common/shelf/overflow_button.h
index ac2a4faf2b65a1fa037eed75d7426d36c92500a6..b96479fbf4f856f10188d1758d54ca17d2699680 100644
--- a/ash/common/shelf/overflow_button.h
+++ b/ash/common/shelf/overflow_button.h
@@ -21,6 +21,9 @@ class OverflowButton : public views::CustomButton {
void OnShelfAlignmentChanged();
+ // Sets alpha value of the background and schedules a paint.
+ void SetBackgroundAlpha(int alpha);
+
private:
// views::View:
void OnPaint(gfx::Canvas* canvas) override;
@@ -58,6 +61,9 @@ class OverflowButton : public views::CustomButton {
InkDropButtonListener* listener_;
WmShelf* wm_shelf_;
+ // Alpha value used to paint the background.
+ int background_alpha_;
+
DISALLOW_COPY_AND_ASSIGN(OverflowButton);
};
« no previous file with comments | « ash/common/shelf/app_list_button.cc ('k') | ash/common/shelf/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698