Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: chrome/browser/ui/views/critical_notification_bubble_view.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/tooltip_icon.h ('k') | chrome/browser/ui/views/download/download_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698