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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_
7
8 #include "ui/views/view.h"
9
10 namespace views {
11 class ImageView;
12 }
13
14 namespace ash {
15
16 // A view for closable notification views, laid out like:
17 // -------------------
18 // | icon contents x |
19 // ----------------v--
20 // The close button will call OnClose() when clicked.
21 class TrayNotificationView : public views::View {
22 public:
23 // If icon_id is 0, no icon image will be set.
24 explicit TrayNotificationView(int icon_id);
25 ~TrayNotificationView() override;
26
27 // InitView must be called once with the contents to be displayed.
28 void InitView(views::View* contents);
29
30 private:
31 int icon_id_;
32 views::ImageView* icon_;
33
34 DISALLOW_COPY_AND_ASSIGN(TrayNotificationView);
35 };
36
37 } // namespace ash
38
39 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_item_view.cc ('k') | ash/common/system/tray/tray_notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698