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/wm/shelf_layout_manager.h" | 9 #include "ash/wm/shelf_layout_manager.h" |
10 #include "ash/wm/shelf_types.h" | 10 #include "ash/wm/shelf_types.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 virtual void WillChangeVisibilityState( | 86 virtual void WillChangeVisibilityState( |
87 ShelfLayoutManager::VisibilityState new_state) OVERRIDE; | 87 ShelfLayoutManager::VisibilityState new_state) OVERRIDE; |
88 virtual void OnAutoHideStateChanged( | 88 virtual void OnAutoHideStateChanged( |
89 ShelfLayoutManager::AutoHideState new_state) OVERRIDE; | 89 ShelfLayoutManager::AutoHideState new_state) OVERRIDE; |
90 | 90 |
91 private: | 91 private: |
92 class LauncherTooltipBubble; | 92 class LauncherTooltipBubble; |
93 friend class test::LauncherViewTest; | 93 friend class test::LauncherViewTest; |
94 friend class test::LauncherTooltipManagerTest; | 94 friend class test::LauncherTooltipManagerTest; |
95 | 95 |
| 96 void CancelHidingAnimation(); |
96 void CloseSoon(); | 97 void CloseSoon(); |
97 void ShowInternal(); | 98 void ShowInternal(); |
98 void CreateBubble(views::View* anchor, const string16& text); | 99 void CreateBubble(views::View* anchor, const string16& text); |
99 | 100 |
100 LauncherTooltipBubble* view_; | 101 LauncherTooltipBubble* view_; |
101 views::Widget* widget_; | 102 views::Widget* widget_; |
102 views::View* anchor_; | 103 views::View* anchor_; |
103 string16 text_; | 104 string16 text_; |
104 ShelfAlignment alignment_; | 105 ShelfAlignment alignment_; |
105 scoped_ptr<base::Timer> timer_; | 106 scoped_ptr<base::Timer> timer_; |
106 | 107 |
107 ShelfLayoutManager* shelf_layout_manager_; | 108 ShelfLayoutManager* shelf_layout_manager_; |
108 LauncherView* launcher_view_; | 109 LauncherView* launcher_view_; |
109 | 110 |
110 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager); | 111 DISALLOW_COPY_AND_ASSIGN(LauncherTooltipManager); |
111 }; | 112 }; |
112 | 113 |
113 } // namespace internal | 114 } // namespace internal |
114 } // namespace ash | 115 } // namespace ash |
115 | 116 |
116 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ | 117 #endif // ASH_LAUNCHER_LAUNCHER_TOOLTIP_MANAGER_H_ |
OLD | NEW |