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

Side by Side Diff: ash/system/tray/tray_notification_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, 3 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
« no previous file with comments | « ash/system/tray/system_tray_bubble.h ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_
6 #define ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_
7 7
8 #include "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "ui/views/controls/button/image_button.h" 9 #include "ui/views/controls/button/image_button.h"
10 #include "ui/views/controls/slide_out_view.h" 10 #include "ui/views/controls/slide_out_view.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 private: 74 private:
75 void HandleClose(); 75 void HandleClose();
76 void HandleClickAction(); 76 void HandleClickAction();
77 77
78 SystemTrayItem* owner_; 78 SystemTrayItem* owner_;
79 int icon_id_; 79 int icon_id_;
80 views::ImageView* icon_; 80 views::ImageView* icon_;
81 81
82 int autoclose_delay_; 82 int autoclose_delay_;
83 base::OneShotTimer<TrayNotificationView> autoclose_; 83 base::OneShotTimer autoclose_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(TrayNotificationView); 85 DISALLOW_COPY_AND_ASSIGN(TrayNotificationView);
86 }; 86 };
87 87
88 } // namespace ash 88 } // namespace ash
89 89
90 #endif // ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_ 90 #endif // ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/system_tray_bubble.h ('k') | ash/system/tray_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698