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

Side by Side Diff: ash/system/tray/tray_notification_view.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | ash/system/tray/tray_notification_view.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"
11 11
12 namespace gfx { 12 namespace gfx {
13 class ImageSkia; 13 class ImageSkia;
14 } 14 }
15 15
16 namespace views { 16 namespace views {
17 class ImageView; 17 class ImageView;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21
22 class SystemTrayItem; 21 class SystemTrayItem;
23 22
24 namespace internal {
25
26 // A view for closable notification views, laid out like: 23 // A view for closable notification views, laid out like:
27 // ------------------- 24 // -------------------
28 // | icon contents x | 25 // | icon contents x |
29 // ----------------v-- 26 // ----------------v--
30 // The close button will call OnClose() when clicked. 27 // The close button will call OnClose() when clicked.
31 class TrayNotificationView : public views::SlideOutView, 28 class TrayNotificationView : public views::SlideOutView,
32 public views::ButtonListener { 29 public views::ButtonListener {
33 public: 30 public:
34 // If icon_id is 0, no icon image will be set. SetIconImage can be called 31 // If icon_id is 0, no icon image will be set. SetIconImage can be called
35 // to later set the icon image. 32 // to later set the icon image.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 SystemTrayItem* owner_; 82 SystemTrayItem* owner_;
86 int icon_id_; 83 int icon_id_;
87 views::ImageView* icon_; 84 views::ImageView* icon_;
88 85
89 int autoclose_delay_; 86 int autoclose_delay_;
90 base::OneShotTimer<TrayNotificationView> autoclose_; 87 base::OneShotTimer<TrayNotificationView> autoclose_;
91 88
92 DISALLOW_COPY_AND_ASSIGN(TrayNotificationView); 89 DISALLOW_COPY_AND_ASSIGN(TrayNotificationView);
93 }; 90 };
94 91
95 } // namespace internal
96 } // namespace ash 92 } // namespace ash
97 93
98 #endif // ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_ 94 #endif // ASH_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/tray_item_view.cc ('k') | ash/system/tray/tray_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698