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

Side by Side Diff: ash/launcher/app_list_button.h

Issue 10829268: chromeos: Sync animation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests crash + rebase Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/launcher/app_list_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LAUNCHER_APP_LIST_BUTTON_H_ 5 #ifndef ASH_LAUNCHER_APP_LIST_BUTTON_H_
6 #define ASH_LAUNCHER_APP_LIST_BUTTON_H_ 6 #define ASH_LAUNCHER_APP_LIST_BUTTON_H_
7 7
8 #include "ui/views/controls/button/image_button.h" 8 #include "ui/views/controls/button/image_button.h"
9 9
10 namespace ash { 10 namespace ash {
11 namespace internal { 11 namespace internal {
12 12
13 class LauncherButtonHost; 13 class LauncherButtonHost;
14 14
15 // Button used for the AppList icon on the launcher. 15 // Button used for the AppList icon on the launcher.
16 class AppListButton : public views::ImageButton { 16 class AppListButton : public views::ImageButton {
17 public: 17 public:
18 AppListButton(views::ButtonListener* listener, 18 AppListButton(views::ButtonListener* listener,
19 LauncherButtonHost* host); 19 LauncherButtonHost* host);
20 virtual ~AppListButton(); 20 virtual ~AppListButton();
21 21
22 void StartLoadingAnimation();
23 void StopLoadingAnimation();
24
22 protected: 25 protected:
23 // View overrides: 26 // View overrides:
24 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 27 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
25 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 28 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
26 virtual void OnMouseCaptureLost() OVERRIDE; 29 virtual void OnMouseCaptureLost() OVERRIDE;
27 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 30 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
28 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 31 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
29 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 32 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
30 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 33 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
31 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 34 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
32 35
33 private: 36 private:
34 LauncherButtonHost* host_; 37 LauncherButtonHost* host_;
35 38
36 DISALLOW_COPY_AND_ASSIGN(AppListButton); 39 DISALLOW_COPY_AND_ASSIGN(AppListButton);
37 }; 40 };
38 41
39 } // namespace internal 42 } // namespace internal
40 } // namespace ash 43 } // namespace ash
41 44
42 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_H_ 45 #endif // ASH_LAUNCHER_APP_LIST_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/launcher/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698