OLD | NEW |
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_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/shelf_types.h" | |
10 #include "base/string16.h" | 9 #include "base/string16.h" |
11 | 10 |
12 namespace ui { | 11 namespace ui { |
13 class LocatedEvent; | 12 class LocatedEvent; |
14 } | 13 } |
15 | 14 |
16 namespace views { | 15 namespace views { |
17 class View; | 16 class View; |
18 } | 17 } |
19 | 18 |
(...skipping 27 matching lines...) Expand all Loading... |
47 | 46 |
48 // Invoked when the mouse moves on the item. | 47 // Invoked when the mouse moves on the item. |
49 virtual void MouseMovedOverButton(views::View* view) = 0; | 48 virtual void MouseMovedOverButton(views::View* view) = 0; |
50 | 49 |
51 // Invoked when the mouse enters the item. | 50 // Invoked when the mouse enters the item. |
52 virtual void MouseEnteredButton(views::View* view) = 0; | 51 virtual void MouseEnteredButton(views::View* view) = 0; |
53 | 52 |
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 virtual ShelfAlignment GetShelfAlignment() const = 0; | |
58 | |
59 // Invoked to get the accessible name of the item. | 56 // Invoked to get the accessible name of the item. |
60 virtual string16 GetAccessibleName(const views::View* view) = 0; | 57 virtual string16 GetAccessibleName(const views::View* view) = 0; |
61 | 58 |
62 protected: | 59 protected: |
63 virtual ~LauncherButtonHost() {} | 60 virtual ~LauncherButtonHost() {} |
64 }; | 61 }; |
65 | 62 |
66 } // namespace internal | 63 } // namespace internal |
67 } // namespace ash | 64 } // namespace ash |
68 | 65 |
69 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ | 66 #endif // ASH_LAUNCHER_LAUNCHER_BUTTON_HOST_H_ |
OLD | NEW |