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_TOOLTIP_MANAGER_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ |
6 #define ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/shelf/shelf_layout_manager_observer.h" | 9 #include "ash/shelf/shelf_layout_manager_observer.h" |
10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 | 37 |
38 // LauncherTooltipManager manages the tooltip balloon poping up on launcher | 38 // LauncherTooltipManager manages the tooltip balloon poping up on launcher |
39 // items. | 39 // items. |
40 class ASH_EXPORT LauncherTooltipManager : public ui::EventHandler, | 40 class ASH_EXPORT LauncherTooltipManager : public ui::EventHandler, |
41 public ShelfLayoutManagerObserver { | 41 public ShelfLayoutManagerObserver { |
42 public: | 42 public: |
43 LauncherTooltipManager(ShelfLayoutManager* shelf_layout_manager, | 43 LauncherTooltipManager(ShelfLayoutManager* shelf_layout_manager, |
44 LauncherView* launcher_view); | 44 LauncherView* launcher_view); |
45 virtual ~LauncherTooltipManager(); | 45 virtual ~LauncherTooltipManager(); |
46 | 46 |
47 views::View* anchor() { return anchor_; } | |
Mr4D (OOO till 08-26)
2013/09/14 00:06:21
Hmm. Maybe something like "current_used_anchor_vie
| |
48 | |
47 ShelfLayoutManager* shelf_layout_manager() { | 49 ShelfLayoutManager* shelf_layout_manager() { |
48 return shelf_layout_manager_; | 50 return shelf_layout_manager_; |
49 } | 51 } |
50 | 52 |
51 // Called when the bubble is closed. | 53 // Called when the bubble is closed. |
52 void OnBubbleClosed(views::BubbleDelegateView* view); | 54 void OnBubbleClosed(views::BubbleDelegateView* view); |
53 | 55 |
54 // Shows the tooltip after a delay. It also has the appearing animation. | 56 // Shows the tooltip after a delay. It also has the appearing animation. |
55 void ShowDelayed(views::View* anchor, const base::string16& text); | 57 void ShowDelayed(views::View* anchor, const base::string16& text); |
56 | 58 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 | 114 |
113 base::WeakPtrFactory<LauncherTooltipManager> weak_factory_; | 115 base::WeakPtrFactory<LauncherTooltipManager> weak_factory_; |
114 | 116 |
115 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager); | 117 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager); |
116 }; | 118 }; |
117 | 119 |
118 } // namespace internal | 120 } // namespace internal |
119 } // namespace ash | 121 } // namespace ash |
120 | 122 |
121 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ | 123 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ |
OLD | NEW |