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

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

Issue 12757003: Revert 188637 "Added text line limits to collapsed and expanded ..." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
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_VIEWS_NOTIFICATION_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/message_center/views/message_view.h" 10 #include "ui/message_center/views/message_view.h"
11 11
12 namespace views {
13 class Label;
14 } // namespace views
15
12 namespace message_center { 16 namespace message_center {
13 17
14 class BoundedLabel;
15 class NotificationChangeObserver; 18 class NotificationChangeObserver;
16 19
17 // View that displays all current types of notification (web, basic, image, and 20 // View that displays all current types of notification (web, basic, image, and
18 // list). Future notification types may be handled by other classes, in which 21 // list). Future notification types may be handled by other classes, in which
19 // case instances of those classes would be returned by the Create() factory 22 // case instances of those classes would be returned by the Create() factory
20 // method below. 23 // method below.
21 class NotificationView : public MessageView { 24 class NotificationView : public MessageView {
22 public: 25 public:
23 // Creates appropriate MessageViews for notifications. Those currently are 26 // Creates appropriate MessageViews for notifications. Those currently are
24 // always NotificationView or MessageSimpleView instances but in the future 27 // always NotificationView or MessageSimpleView instances but in the future
(...skipping 15 matching lines...) Expand all
40 const ui::Event& event) OVERRIDE; 43 const ui::Event& event) OVERRIDE;
41 44
42 private: 45 private:
43 NotificationView(const Notification& notification, 46 NotificationView(const Notification& notification,
44 NotificationChangeObserver* observer, 47 NotificationChangeObserver* observer,
45 bool expanded); 48 bool expanded);
46 49
47 // Weak references to NotificationView descendants owned by their parents. 50 // Weak references to NotificationView descendants owned by their parents.
48 views::View* background_view_; 51 views::View* background_view_;
49 views::View* top_view_; 52 views::View* top_view_;
50 BoundedLabel* title_view_; 53 views::Label* title_view_;
51 BoundedLabel* message_view_; 54 views::Label* message_view_;
52 std::vector<views::View*> item_views_; 55 std::vector<views::View*> item_views_;
53 views::View* icon_view_; 56 views::View* icon_view_;
54 views::View* bottom_view_; 57 views::View* bottom_view_;
55 views::View* image_view_; 58 views::View* image_view_;
56 std::vector<views::View*> action_buttons_; 59 std::vector<views::View*> action_buttons_;
57 60
58 DISALLOW_COPY_AND_ASSIGN(NotificationView); 61 DISALLOW_COPY_AND_ASSIGN(NotificationView);
59 }; 62 };
60 63
61 } // namespace message_center 64 } // namespace message_center
62 65
63 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 66 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/bounded_label_unittest.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698