OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |