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; | |
53 | 52 |
54 BubbleType bubble_type() const { return bubble_type_; } | 53 BubbleType bubble_type() const { return bubble_type_; } |
55 TrayBubbleView* bubble_view() const { return bubble_view_; } | 54 TrayBubbleView* bubble_view() const { return bubble_view_; } |
56 | 55 |
57 void DestroyItemViews(); | 56 void DestroyItemViews(); |
58 void StartAutoCloseTimer(int seconds); | 57 void StartAutoCloseTimer(int seconds); |
59 void StopAutoCloseTimer(); | 58 void StopAutoCloseTimer(); |
60 void RestartAutoCloseTimer(); | 59 void RestartAutoCloseTimer(); |
61 void Close(); | 60 void Close(); |
62 void SetVisible(bool is_visible); | 61 void SetVisible(bool is_visible); |
(...skipping 14 matching lines...) Expand all Loading... |
77 int autoclose_delay_; | 76 int autoclose_delay_; |
78 base::OneShotTimer<SystemTrayBubble> autoclose_; | 77 base::OneShotTimer<SystemTrayBubble> autoclose_; |
79 | 78 |
80 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); | 79 DISALLOW_COPY_AND_ASSIGN(SystemTrayBubble); |
81 }; | 80 }; |
82 | 81 |
83 } // namespace internal | 82 } // namespace internal |
84 } // namespace ash | 83 } // namespace ash |
85 | 84 |
86 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ | 85 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_BUBBLE_H_ |
OLD | NEW |