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

Unified Diff: ui/message_center/notification_view.cc

Issue 11647031: Renamed MessageViewMultiple to NotificationView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/message_center/notification_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_view.cc
diff --git a/ui/message_center/message_view_multiple.cc b/ui/message_center/notification_view.cc
similarity index 93%
rename from ui/message_center/message_view_multiple.cc
rename to ui/message_center/notification_view.cc
index e6c32c46dcb58c9e23f4c7b865eb3cdc505dfe3e..7e61402ce9860494ae86704ad3bd186b3fb94871 100644
--- a/ui/message_center/message_view_multiple.cc
+++ b/ui/message_center/notification_view.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/message_center/message_view_multiple.h"
+#include "ui/message_center/notification_view.h"
#include "base/utf_string_conversions.h"
#include "grit/ui_resources.h"
@@ -49,8 +49,8 @@ views::Border* MakePadding(int top, int left, int bottom, int right) {
return views::Border::CreateEmptyBorder(top, left, bottom, right);
}
-// ItemViews are responsible for drawing each MessageViewMultiple item's title
-// and message next to each other within a single column.
+// ItemViews are responsible for drawing each NotificationView item's title and
+// message next to each other within a single column.
class ItemView : public views::View {
public:
ItemView(const message_center::NotificationList::NotificationItem& item);
@@ -92,18 +92,16 @@ ItemView::~ItemView() {
namespace message_center {
-MessageViewMultiple::MessageViewMultiple(
+NotificationView::NotificationView(
NotificationList::Delegate* list_delegate,
const NotificationList::Notification& notification)
: MessageView(list_delegate, notification) {
}
-MessageViewMultiple::~MessageViewMultiple() {
+NotificationView::~NotificationView() {
}
-// TODO(dharcourt): Make this a subclass of BaseFormatView or of a
-// BaseFormatView superclass and leverage that class' SetUpView().
-void MessageViewMultiple::SetUpView() {
+void NotificationView::SetUpView() {
set_background(views::Background::CreateSolidBackground(kBackgroundColor));
views::GridLayout* layout = new views::GridLayout(this);
« no previous file with comments | « ui/message_center/notification_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698