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

Side by Side Diff: ui/message_center/notification_view.h

Issue 12277024: Notificaitons refactor step 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more feedback from Steven Created 7 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/message_center/notification_types.cc ('k') | ui/message_center/notification_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/message_center/notification_types.cc ('k') | ui/message_center/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698