| 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_VIEWS_NOTIFICATION_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; | 53 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; |
| 54 | 54 |
| 55 // Overridden from MessageView: | 55 // Overridden from MessageView: |
| 56 virtual void ButtonPressed(views::Button* sender, | 56 virtual void ButtonPressed(views::Button* sender, |
| 57 const ui::Event& event) OVERRIDE; | 57 const ui::Event& event) OVERRIDE; |
| 58 | 58 |
| 59 // Overridden from MessageViewController: | 59 // Overridden from MessageViewController: |
| 60 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; | 60 virtual void ClickOnNotification(const std::string& notification_id) OVERRIDE; |
| 61 virtual void RemoveNotification(const std::string& notification_id, | 61 virtual void RemoveNotification(const std::string& notification_id, |
| 62 bool by_user) OVERRIDE; | 62 bool by_user) OVERRIDE; |
| 63 virtual void DisableNotificationsFromThisSource( | |
| 64 const NotifierId& notifier_id) OVERRIDE; | |
| 65 virtual void ShowNotifierSettingsBubble() OVERRIDE; | |
| 66 | 63 |
| 67 void set_controller(MessageCenterController* controller) { | 64 void set_controller(MessageCenterController* controller) { |
| 68 controller_ = controller; | 65 controller_ = controller; |
| 69 } | 66 } |
| 70 | 67 |
| 71 protected: | 68 protected: |
| 72 NotificationView(MessageCenterController* controller, | 69 NotificationView(MessageCenterController* controller, |
| 73 const Notification& notification, | 70 const Notification& notification, |
| 74 bool expanded); | 71 bool expanded); |
| 75 | 72 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 98 views::ProgressBar* progress_bar_view_; | 95 views::ProgressBar* progress_bar_view_; |
| 99 std::vector<views::View*> action_buttons_; | 96 std::vector<views::View*> action_buttons_; |
| 100 PaddedButton* expand_button_; | 97 PaddedButton* expand_button_; |
| 101 | 98 |
| 102 DISALLOW_COPY_AND_ASSIGN(NotificationView); | 99 DISALLOW_COPY_AND_ASSIGN(NotificationView); |
| 103 }; | 100 }; |
| 104 | 101 |
| 105 } // namespace message_center | 102 } // namespace message_center |
| 106 | 103 |
| 107 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ | 104 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ |
| OLD | NEW |