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

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

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shelf/alternate_app_list_button.cc ('k') | ash/shelf/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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELF_APP_LIST_BUTTON_H_ 5 #ifndef ASH_SHELF_APP_LIST_BUTTON_H_
6 #define ASH_SHELF_APP_LIST_BUTTON_H_ 6 #define ASH_SHELF_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 {
12
13 class ShelfButtonHost; 11 class ShelfButtonHost;
14 12
15 // Button used for the AppList icon on the shelf. 13 // Button used for the AppList icon on the shelf.
16 class AppListButton : public views::ImageButton { 14 class AppListButton : public views::ImageButton {
17 public: 15 public:
18 AppListButton(views::ButtonListener* listener, ShelfButtonHost* host); 16 AppListButton(views::ButtonListener* listener, ShelfButtonHost* host);
19 virtual ~AppListButton(); 17 virtual ~AppListButton();
20 18
21 void StartLoadingAnimation(); 19 void StartLoadingAnimation();
22 void StopLoadingAnimation(); 20 void StopLoadingAnimation();
23 21
24 protected: 22 protected:
25 // views::ImageButton: 23 // views::ImageButton:
26 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 24 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
27 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 25 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
28 virtual void OnMouseCaptureLost() OVERRIDE; 26 virtual void OnMouseCaptureLost() OVERRIDE;
29 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 27 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
30 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE; 28 virtual void OnMouseMoved(const ui::MouseEvent& event) OVERRIDE;
31 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 29 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
32 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 30 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
33 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 31 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
34 32
35 private: 33 private:
36 ShelfButtonHost* host_; 34 ShelfButtonHost* host_;
37 35
38 DISALLOW_COPY_AND_ASSIGN(AppListButton); 36 DISALLOW_COPY_AND_ASSIGN(AppListButton);
39 }; 37 };
40 38
41 } // namespace internal
42 } // namespace ash 39 } // namespace ash
43 40
44 #endif // ASH_SHELF_APP_LIST_BUTTON_H_ 41 #endif // ASH_SHELF_APP_LIST_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/shelf/alternate_app_list_button.cc ('k') | ash/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698