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

Side by Side Diff: ui/message_center/message_simple_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, 10 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/message_popup_bubble.cc ('k') | ui/message_center/message_simple_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_MESSAGE_SIMPLE_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_SIMPLE_VIEW_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_SIMPLE_VIEW_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_SIMPLE_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
11 namespace message_center { 11 namespace message_center {
12 12
13 struct Notification; 13 class Notification;
14 14
15 // A simple view for a notification entry (icon + message + buttons). 15 // A simple view for a notification entry (icon + message + buttons).
16 class MessageSimpleView : public MessageView { 16 class MessageSimpleView : public MessageView {
17 public: 17 public:
18 MessageSimpleView(NotificationList::Delegate* list_delegate, 18 MessageSimpleView(NotificationList::Delegate* list_delegate,
19 const Notification& notification); 19 const Notification& notification);
20 virtual ~MessageSimpleView(); 20 virtual ~MessageSimpleView();
21 21
22 // Overridden from MessageView: 22 // Overridden from MessageView:
23 virtual void SetUpView() OVERRIDE;
24 virtual void ButtonPressed(views::Button* sender, 23 virtual void ButtonPressed(views::Button* sender,
25 const ui::Event& event) OVERRIDE; 24 const ui::Event& event) OVERRIDE;
26 25
27 protected: 26 protected:
28 // Overridden from views::View: 27 // Overridden from views::View:
29 virtual gfx::Size GetPreferredSize() OVERRIDE; 28 virtual gfx::Size GetPreferredSize() OVERRIDE;
30 virtual void Layout() OVERRIDE; 29 virtual void Layout() OVERRIDE;
31 30
32 MessageSimpleView(); 31 MessageSimpleView();
33 32
34 private: 33 private:
34 void SetUpView(const Notification& notification);
35
35 scoped_ptr<views::ImageButton> old_style_close_button_; 36 scoped_ptr<views::ImageButton> old_style_close_button_;
36 scoped_ptr<views::View> content_view_; 37 scoped_ptr<views::View> content_view_;
37 38
38 DISALLOW_COPY_AND_ASSIGN(MessageSimpleView); 39 DISALLOW_COPY_AND_ASSIGN(MessageSimpleView);
39 }; 40 };
40 41
41 } // namespace message_center 42 } // namespace message_center
42 43
43 #endif // UI_MESSAGE_CENTER_MESSAGE_SIMPLE_VIEW_H_ 44 #endif // UI_MESSAGE_CENTER_MESSAGE_SIMPLE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_popup_bubble.cc ('k') | ui/message_center/message_simple_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698