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

Side by Side Diff: ui/message_center/message_view.h

Issue 11773004: Revives the new message center design. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « ui/message_center/message_center_bubble.cc ('k') | no next file » | 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 UI_MESSAGE_CENTER_MESSAGE_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_VIEW_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_VIEW_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_VIEW_H_
7 7
8 #include "ui/message_center/notification_list.h" 8 #include "ui/message_center/notification_list.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/controls/slide_out_view.h" 10 #include "ui/views/controls/slide_out_view.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace views { 13 namespace views {
14 class ImageButton; 14 class ImageButton;
15 class ScrollView; 15 class ScrollView;
16 } 16 }
17 17
18 namespace message_center { 18 namespace message_center {
19 19
20 // Individual notifications constants. 20 // Individual notifications constants.
21 const int kPaddingBetweenItems = 10; 21 const int kPaddingBetweenItems = 10;
22 const int kPaddingHorizontal = 18; 22 const int kPaddingHorizontal = 18;
23 const int kWebNotificationButtonWidth = 32; 23 const int kWebNotificationButtonWidth = 32;
24 const int kWebNotificationIconSize = 40; 24 const int kWebNotificationIconSize = 40;
25 const int kWebNotificationWidth = 320; 25 const int kWebNotificationWidth = 300;
26 26
27 // An abstract class that forms the basis of a view for a notification entry. 27 // An abstract class that forms the basis of a view for a notification entry.
28 class MessageView : public views::SlideOutView, 28 class MessageView : public views::SlideOutView,
29 public views::ButtonListener { 29 public views::ButtonListener {
30 public: 30 public:
31 MessageView(NotificationList::Delegate* list_delegate, 31 MessageView(NotificationList::Delegate* list_delegate,
32 const NotificationList::Notification& notification); 32 const NotificationList::Notification& notification);
33 33
34 virtual ~MessageView(); 34 virtual ~MessageView();
35 35
(...skipping 27 matching lines...) Expand all
63 views::ImageButton* close_button_; 63 views::ImageButton* close_button_;
64 64
65 views::ScrollView* scroller_; 65 views::ScrollView* scroller_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(MessageView); 67 DISALLOW_COPY_AND_ASSIGN(MessageView);
68 }; 68 };
69 69
70 } // namespace message_center 70 } // namespace message_center
71 71
72 #endif // UI_MESSAGE_CENTER_MESSAGE_VIEW_H_ 72 #endif // UI_MESSAGE_CENTER_MESSAGE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_bubble.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698