summaryrefslogtreecommitdiffstats
path: root/ash/shelf/app_list_button.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-27 05:22:06 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-27 05:22:06 +0000
commitb2574fb2fae1f5fb32360318a4bc11495ba543cd (patch)
tree0b76d3127a6e256dde4a398f27ac78c540c5459e /ash/shelf/app_list_button.h
parent0b003a79446713f5f4179bcc9ac4f4302796cfe4 (diff)
downloadchromium_src-b2574fb2fae1f5fb32360318a4bc11495ba543cd.zip
chromium_src-b2574fb2fae1f5fb32360318a4bc11495ba543cd.tar.gz
chromium_src-b2574fb2fae1f5fb32360318a4bc11495ba543cd.tar.bz2
ash: Start moving some files into shelf/ directory.
The bottom bar in Chrome OS is now called as Shelf and the App List is the Launcher. BUG=248354 R=jamescook@chromium.org,xiyuan@chromium.org Review URL: https://chromiumcodereview.appspot.com/22926036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shelf/app_list_button.h')
-rw-r--r--ash/shelf/app_list_button.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/ash/shelf/app_list_button.h b/ash/shelf/app_list_button.h
new file mode 100644
index 0000000..a8c8e70
--- /dev/null
+++ b/ash/shelf/app_list_button.h
@@ -0,0 +1,45 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SHELF_APP_LIST_BUTTON_H_
+#define ASH_SHELF_APP_LIST_BUTTON_H_
+
+#include "ui/views/controls/button/image_button.h"
+
+namespace ash {
+namespace internal {
+
+class LauncherButtonHost;
+
+// Button used for the AppList icon on the launcher.
+class AppListButton : public views::ImageButton {
+ public:
+ AppListButton(views::ButtonListener* listener,
+ LauncherButtonHost* host);
+ virtual ~AppListButton();
+
+ void StartLoadingAnimation();
+ void StopLoadingAnimation();
+
+ protected:
+ // views::ImageButton:
+ virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnMouseCaptureLost() OVERRIDE;
+ virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
+ virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
+ virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
+
+ private:
+ LauncherButtonHost* host_;
+
+ DISALLOW_COPY_AND_ASSIGN(AppListButton);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SHELF_APP_LIST_BUTTON_H_