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

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

Issue 57453002: ash: Rename LauncherButtonHost to ShelfButtonHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/app_list_button.cc ('k') | ash/shelf/shelf_view.h » ('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_LAUNCHER_BUTTON_HOST_H_ 5 #ifndef ASH_SHELF_SHELF_BUTTON_HOST_H_
6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ 6 #define ASH_SHELF_SHELF_BUTTON_HOST_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
11 namespace ui { 11 namespace ui {
12 class LocatedEvent; 12 class LocatedEvent;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 class View; 16 class View;
17 } 17 }
18 18
19 namespace ash { 19 namespace ash {
20 namespace internal { 20 namespace internal {
21 21
22 // The launcher buttons communicate back to the host by way of this interface. 22 // The shelf buttons communicate back to the host by way of this interface.
23 // This interface is used to enable reordering the items on the launcher. 23 // This interface is used to enable reordering the items on the shelf.
24 class ASH_EXPORT LauncherButtonHost { 24 class ASH_EXPORT ShelfButtonHost {
25 public: 25 public:
26 enum Pointer { 26 enum Pointer {
27 NONE, 27 NONE,
28 DRAG_AND_DROP, 28 DRAG_AND_DROP,
29 MOUSE, 29 MOUSE,
30 TOUCH, 30 TOUCH,
31 }; 31 };
32 32
33 // Invoked when a pointer device is pressed on a view. 33 // Invoked when a pointer device is pressed on a view.
34 virtual void PointerPressedOnButton(views::View* view, 34 virtual void PointerPressedOnButton(views::View* view,
(...skipping 16 matching lines...) Expand all
51 // Invoked when the mouse enters the item. 51 // Invoked when the mouse enters the item.
52 virtual void MouseEnteredButton(views::View* view) = 0; 52 virtual void MouseEnteredButton(views::View* view) = 0;
53 53
54 // Invoked when the mouse exits the item. 54 // Invoked when the mouse exits the item.
55 virtual void MouseExitedButton(views::View* view) = 0; 55 virtual void MouseExitedButton(views::View* view) = 0;
56 56
57 // Invoked to get the accessible name of the item. 57 // Invoked to get the accessible name of the item.
58 virtual base::string16 GetAccessibleName(const views::View* view) = 0; 58 virtual base::string16 GetAccessibleName(const views::View* view) = 0;
59 59
60 protected: 60 protected:
61 virtual ~LauncherButtonHost() {} 61 virtual ~ShelfButtonHost() {}
62 }; 62 };
63 63
64 } // namespace internal 64 } // namespace internal
65 } // namespace ash 65 } // namespace ash
66 66
67 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ 67 #endif // ASH_SHELF_SHELF_BUTTON_HOST_H_
OLDNEW
« no previous file with comments | « ash/shelf/app_list_button.cc ('k') | ash/shelf/shelf_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698