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 CHROME_BROWSER_UI_VIEWS_CRITICAL_NOTIFICATION_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CRITICAL_NOTIFICATION_BUBBLE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CRITICAL_NOTIFICATION_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CRITICAL_NOTIFICATION_BUBBLE_VIEW_H_ |
7 | 7 |
8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
9 #include "ui/views/bubble/bubble_delegate.h" | 9 #include "ui/views/bubble/bubble_delegate.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // Called when the timer fires each time the clock ticks. | 51 // Called when the timer fires each time the clock ticks. |
52 void OnCountdown(); | 52 void OnCountdown(); |
53 | 53 |
54 // The headline and buttons on the bubble. | 54 // The headline and buttons on the bubble. |
55 views::Label* headline_; | 55 views::Label* headline_; |
56 views::LabelButton* restart_button_; | 56 views::LabelButton* restart_button_; |
57 views::LabelButton* dismiss_button_; | 57 views::LabelButton* dismiss_button_; |
58 | 58 |
59 // A timer to refresh the bubble to show new countdown value. | 59 // A timer to refresh the bubble to show new countdown value. |
60 base::RepeatingTimer<CriticalNotificationBubbleView> refresh_timer_; | 60 base::RepeatingTimer refresh_timer_; |
61 | 61 |
62 // When the bubble was created. | 62 // When the bubble was created. |
63 base::Time bubble_created_; | 63 base::Time bubble_created_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(CriticalNotificationBubbleView); | 65 DISALLOW_COPY_AND_ASSIGN(CriticalNotificationBubbleView); |
66 }; | 66 }; |
67 | 67 |
68 #endif // CHROME_BROWSER_UI_VIEWS_CRITICAL_NOTIFICATION_BUBBLE_VIEW_H_ | 68 #endif // CHROME_BROWSER_UI_VIEWS_CRITICAL_NOTIFICATION_BUBBLE_VIEW_H_ |
OLD | NEW |