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 fad5bbeb9a16d254279f7c32fb6ef22bfb0c7962..79460cc6f11279db9bd431d9eb1dda5ea574cf75 100644 |
--- a/ash/common/shelf/app_list_button.h |
+++ b/ash/common/shelf/app_list_button.h |
@@ -25,7 +25,9 @@ class ASH_EXPORT AppListButton : public views::ImageButton { |
void OnAppListShown(); |
void OnAppListDismissed(); |
- bool draw_background_as_active() { return draw_background_as_active_; } |
+ bool is_showing_app_list() const { return is_showing_app_list_; } |
+ |
+ bool draw_background_as_active() const { return draw_background_as_active_; } |
// Sets alpha value of the background and schedules a paint. |
void SetBackgroundAlpha(int alpha); |
@@ -63,6 +65,10 @@ class ASH_EXPORT AppListButton : public views::ImageButton { |
// ink drops. |
gfx::Point GetCenterPoint() const; |
+ // True if the app list is currently showing for this display. |
+ // This is useful because other IsApplistVisible functions aren't per-display. |
+ bool is_showing_app_list_; |
+ |
// True if the background should render as active, regardless of the state of |
// the application list. |
bool draw_background_as_active_; |