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

Unified Diff: ash/launcher/app_list_button.h

Issue 13993027: ash: Update app list button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for #1 Created 7 years, 8 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 | « no previous file | ash/launcher/app_list_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4d1cd63bd660f52c18dc05f6e1c46033b9612e8c 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,11 @@ 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;
+
LauncherButtonHost* host_;
DISALLOW_COPY_AND_ASSIGN(AppListButton);
« no previous file with comments | « no previous file | ash/launcher/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698