OLD | NEW |
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_SHELF_BUTTON_HOST_H_ | 5 #ifndef ASH_SHELF_SHELF_BUTTON_HOST_H_ |
6 #define ASH_SHELF_SHELF_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 { | |
21 | 20 |
22 // The shelf buttons communicate back to the host by way of this interface. | 21 // 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 shelf. | 22 // This interface is used to enable reordering the items on the shelf. |
24 class ASH_EXPORT ShelfButtonHost { | 23 class ASH_EXPORT ShelfButtonHost { |
25 public: | 24 public: |
26 enum Pointer { | 25 enum Pointer { |
27 NONE, | 26 NONE, |
28 DRAG_AND_DROP, | 27 DRAG_AND_DROP, |
29 MOUSE, | 28 MOUSE, |
30 TOUCH, | 29 TOUCH, |
(...skipping 23 matching lines...) Expand all Loading... |
54 // Invoked when the mouse exits the item. | 53 // Invoked when the mouse exits the item. |
55 virtual void MouseExitedButton(views::View* view) = 0; | 54 virtual void MouseExitedButton(views::View* view) = 0; |
56 | 55 |
57 // Invoked to get the accessible name of the item. | 56 // Invoked to get the accessible name of the item. |
58 virtual base::string16 GetAccessibleName(const views::View* view) = 0; | 57 virtual base::string16 GetAccessibleName(const views::View* view) = 0; |
59 | 58 |
60 protected: | 59 protected: |
61 virtual ~ShelfButtonHost() {} | 60 virtual ~ShelfButtonHost() {} |
62 }; | 61 }; |
63 | 62 |
64 } // namespace internal | |
65 } // namespace ash | 63 } // namespace ash |
66 | 64 |
67 #endif // ASH_SHELF_SHELF_BUTTON_HOST_H_ | 65 #endif // ASH_SHELF_SHELF_BUTTON_HOST_H_ |
OLD | NEW |