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

Side by Side Diff: ui/message_center/views/message_simple_view.h

Issue 18247002: Remove the most obvious dead code from message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move MessageCenterButtonBar into cc file to hide implementation. Created 7 years, 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_SIMPLE_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_SIMPLE_VIEW_H_
7
8 #include "ui/message_center/views/message_view.h"
9
10 namespace message_center {
11
12 class MessageCenter;
13 class Notification;
14
15 // A simple view for a notification entry (icon + message + buttons).
16 class MessageSimpleView : public MessageView {
17 public:
18 MessageSimpleView(const Notification& notification,
19 MessageCenter* message_center);
20 virtual ~MessageSimpleView();
21
22 // Overridden from MessageView:
23 virtual void ButtonPressed(views::Button* sender,
24 const ui::Event& event) OVERRIDE;
25
26 protected:
27 // Overridden from views::View:
28 virtual gfx::Size GetPreferredSize() OVERRIDE;
29 virtual int GetHeightForWidth(int width) OVERRIDE;
30 virtual void Layout() OVERRIDE;
31
32 MessageSimpleView();
33
34 private:
35 void SetUpView(const Notification& notification);
36
37 scoped_ptr<views::ImageButton> old_style_close_button_;
38 scoped_ptr<views::View> content_view_;
39
40 DISALLOW_COPY_AND_ASSIGN(MessageSimpleView);
41 };
42
43 } // namespace message_center
44
45 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_SIMPLE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_popup_bubble.cc ('k') | ui/message_center/views/message_simple_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698