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_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
7 | 7 |
8 #include "ash/system/tray/tray_bubble_view.h" | 8 #include "ash/system/tray/tray_bubble_view.h" |
9 #include "ash/system/user/login_status.h" | 9 #include "ash/system/user/login_status.h" |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Also creates |bubble_widget_| and sets up animations. | 42 // Also creates |bubble_widget_| and sets up animations. |
43 void InitView(views::View* anchor, | 43 void InitView(views::View* anchor, |
44 TrayBubbleView::InitParams init_params, | 44 TrayBubbleView::InitParams init_params, |
45 user::LoginStatus login_status); | 45 user::LoginStatus login_status); |
46 | 46 |
47 // Overridden from TrayBubbleView::Host. | 47 // Overridden from TrayBubbleView::Host. |
48 virtual void BubbleViewDestroyed() OVERRIDE; | 48 virtual void BubbleViewDestroyed() OVERRIDE; |
49 virtual void OnMouseEnteredView() OVERRIDE; | 49 virtual void OnMouseEnteredView() OVERRIDE; |
50 virtual void OnMouseExitedView() OVERRIDE; | 50 virtual void OnMouseExitedView() OVERRIDE; |
51 virtual void OnClickedOutsideView() OVERRIDE; | 51 virtual void OnClickedOutsideView() OVERRIDE; |
| 52 virtual string16 GetAccessibleName() OVERRIDE; |
52 | 53 |
53 BubbleType bubble_type() const { return bubble_type_; } | 54 BubbleType bubble_type() const { return bubble_type_; } |
54 TrayBubbleView* bubble_view() const { return bubble_view_; } | 55 TrayBubbleView* bubble_view() const { return bubble_view_; } |
55 | 56 |
56 void DestroyItemViews(); | 57 void DestroyItemViews(); |
57 void StartAutoCloseTimer(int seconds); | 58 void StartAutoCloseTimer(int seconds); |
58 void StopAutoCloseTimer(); | 59 void StopAutoCloseTimer(); |
59 void RestartAutoCloseTimer(); | 60 void RestartAutoCloseTimer(); |
60 void Close(); | 61 void Close(); |
61 void SetVisible(bool is_visible); | 62 void SetVisible(bool is_visible); |
(...skipping 14 matching lines...) Expand all Loading... |
76 int autoclose_delay_; | 77 int autoclose_delay_; |
77 base::OneShotTimer<SystemTrayBubble> autoclose_; | 78 base::OneShotTimer<SystemTrayBubble> autoclose_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); | 80 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace internal | 83 } // namespace internal |
83 } // namespace ash | 84 } // namespace ash |
84 | 85 |
85 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 86 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
OLD | NEW |