| 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_NOTIFICATION_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_NOTIFICATION_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_NOTIFICATION_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_NOTIFICATION_VIEW_H_ |
| 7 | 7 |
| 8 #include "ui/message_center/message_view.h" | 8 #include "ui/message_center/message_view.h" |
| 9 #include "ui/message_center/notification_list.h" | 9 #include "ui/message_center/notification_list.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 NotificationView(NotificationList::Delegate* list_delegate, | 26 NotificationView(NotificationList::Delegate* list_delegate, |
| 27 const Notification& notification); | 27 const Notification& notification); |
| 28 virtual ~NotificationView(); | 28 virtual ~NotificationView(); |
| 29 | 29 |
| 30 // Overridden from View. | 30 // Overridden from View. |
| 31 virtual void Layout() OVERRIDE; | 31 virtual void Layout() OVERRIDE; |
| 32 virtual gfx::Size GetPreferredSize() OVERRIDE; | 32 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 33 | 33 |
| 34 // Overridden from MessageView. | 34 // Overridden from MessageView. |
| 35 virtual void SetUpView() OVERRIDE; | |
| 36 virtual void ButtonPressed(views::Button* sender, | 35 virtual void ButtonPressed(views::Button* sender, |
| 37 const ui::Event& event) OVERRIDE; | 36 const ui::Event& event) OVERRIDE; |
| 38 | 37 |
| 39 private: | 38 private: |
| 40 views::View* MakeContentView(); | 39 views::View* MakeContentView(const Notification& notification); |
| 41 | 40 |
| 42 views::View* content_view_; | 41 views::View* content_view_; |
| 43 std::vector<views::Button*> action_buttons_; | 42 std::vector<views::Button*> action_buttons_; |
| 44 | 43 |
| 45 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 44 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 } // namespace message_center | 47 } // namespace message_center |
| 49 | 48 |
| 50 #endif // UI_MESSAGE_CENTER_NOTIFICATION_VIEW_H_ | 49 #endif // UI_MESSAGE_CENTER_NOTIFICATION_VIEW_H_ |
| OLD | NEW |