| 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_MESSAGE_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "ui/gfx/insets.h" | 10 #include "ui/gfx/insets.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView, | 46 class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView, |
| 47 public views::ButtonListener { | 47 public views::ButtonListener { |
| 48 public: | 48 public: |
| 49 MessageView(MessageViewController* controller, | 49 MessageView(MessageViewController* controller, |
| 50 const std::string& notification_id, | 50 const std::string& notification_id, |
| 51 const NotifierId& notifier_id, | 51 const NotifierId& notifier_id, |
| 52 const gfx::ImageSkia& small_image, | 52 const gfx::ImageSkia& small_image, |
| 53 const base::string16& display_source); | 53 const base::string16& display_source); |
| 54 virtual ~MessageView(); | 54 virtual ~MessageView(); |
| 55 | 55 |
| 56 // Updates this view with the new data contained in the notification. |
| 57 virtual void UpdateWithNotification(const Notification& notification); |
| 58 |
| 56 // Returns the insets for the shadow it will have for rich notification. | 59 // Returns the insets for the shadow it will have for rich notification. |
| 57 static gfx::Insets GetShadowInsets(); | 60 static gfx::Insets GetShadowInsets(); |
| 58 | 61 |
| 59 // Creates a shadow around the notification. | 62 // Creates a shadow around the notification. |
| 60 void CreateShadowBorder(); | 63 void CreateShadowBorder(); |
| 61 | 64 |
| 62 bool IsCloseButtonFocused(); | 65 bool IsCloseButtonFocused(); |
| 63 void RequestFocusOnCloseButton(); | 66 void RequestFocusOnCloseButton(); |
| 64 | 67 |
| 65 void set_accessible_name(const base::string16& accessible_name) { | 68 void set_accessible_name(const base::string16& accessible_name) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 base::string16 display_source_; | 113 base::string16 display_source_; |
| 111 | 114 |
| 112 scoped_ptr<views::Painter> focus_painter_; | 115 scoped_ptr<views::Painter> focus_painter_; |
| 113 | 116 |
| 114 DISALLOW_COPY_AND_ASSIGN(MessageView); | 117 DISALLOW_COPY_AND_ASSIGN(MessageView); |
| 115 }; | 118 }; |
| 116 | 119 |
| 117 } // namespace message_center | 120 } // namespace message_center |
| 118 | 121 |
| 119 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ | 122 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| OLD | NEW |