Index: ash/launcher/app_list_button.h |
diff --git a/ash/launcher/app_list_button.h b/ash/launcher/app_list_button.h |
index 4d2525426539e6b0c7eae74f5305385a597f56cc..47885962d721f1915e07e7c1aeb168ce1f2b2781 100644 |
--- a/ash/launcher/app_list_button.h |
+++ b/ash/launcher/app_list_button.h |
@@ -5,6 +5,7 @@ |
#ifndef ASH_LAUNCHER_APP_LIST_BUTTON_H_ |
#define ASH_LAUNCHER_APP_LIST_BUTTON_H_ |
+#include "ash/wm/app_list_controller_observer.h" |
#include "ui/views/controls/button/image_button.h" |
namespace ash { |
@@ -13,7 +14,8 @@ namespace internal { |
class LauncherButtonHost; |
// Button used for the AppList icon on the launcher. |
-class AppListButton : public views::ImageButton { |
+class AppListButton : public views::ToggleImageButton, |
+ public AppListControllerObserver { |
public: |
AppListButton(views::ButtonListener* listener, |
LauncherButtonHost* host); |
@@ -34,6 +36,10 @@ class AppListButton : public views::ImageButton { |
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
private: |
+ // AppListControllerObserver overrides: |
+ virtual void OnAppLauncherVisibilityChanged( |
+ bool visible, const aura::RootWindow* root_window) OVERRIDE; |
sky
2013/04/29 20:40:55
nit: when you wrap, one parameter per line.
xiyuan
2013/04/29 21:12:45
Done.
|
+ |
LauncherButtonHost* host_; |
DISALLOW_COPY_AND_ASSIGN(AppListButton); |