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

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

Issue 2941043004: Show number of hidden items in new-style list notification. (Closed)
Patch Set: Fix number of items shown in the expanded view. Created 3 years, 6 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
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_MD_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/message_center/message_center_export.h" 12 #include "ui/message_center/message_center_export.h"
13 #include "ui/message_center/views/message_view.h" 13 #include "ui/message_center/views/message_view.h"
14 #include "ui/views/controls/button/button.h" 14 #include "ui/views/controls/button/button.h"
15 #include "ui/views/view_targeter_delegate.h" 15 #include "ui/views/view_targeter_delegate.h"
16 16
17 namespace views { 17 namespace views {
18 class Label; 18 class Label;
19 class LabelButton; 19 class LabelButton;
20 } 20 }
21 21
22 namespace message_center { 22 namespace message_center {
23 23
24 class BoundedLabel; 24 class BoundedLabel;
25 class NotificationHeaderView; 25 class NotificationHeaderView;
26 class ProportionalImageView; 26 class ProportionalImageView;
27 27
28 namespace {
29 class ItemView;
30 }
31
28 // View that displays all current types of notification (web, basic, image, and 32 // View that displays all current types of notification (web, basic, image, and
29 // list) except the custom notification. Future notification types may be 33 // list) except the custom notification. Future notification types may be
30 // handled by other classes, in which case instances of those classes would be 34 // handled by other classes, in which case instances of those classes would be
31 // returned by the Create() factory method below. 35 // returned by the Create() factory method below.
32 class MESSAGE_CENTER_EXPORT NotificationViewMD 36 class MESSAGE_CENTER_EXPORT NotificationViewMD
33 : public MessageView, 37 : public MessageView,
34 public views::ButtonListener, 38 public views::ButtonListener,
35 public views::ViewTargeterDelegate { 39 public views::ViewTargeterDelegate {
36 public: 40 public:
37 NotificationViewMD(MessageCenterController* controller, 41 NotificationViewMD(MessageCenterController* controller,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 views::View* left_content_ = nullptr; 95 views::View* left_content_ = nullptr;
92 views::View* right_content_ = nullptr; 96 views::View* right_content_ = nullptr;
93 97
94 // Views which are dinamicallly created inside view hierarchy. 98 // Views which are dinamicallly created inside view hierarchy.
95 views::Label* title_view_ = nullptr; 99 views::Label* title_view_ = nullptr;
96 BoundedLabel* message_view_ = nullptr; 100 BoundedLabel* message_view_ = nullptr;
97 ProportionalImageView* icon_view_ = nullptr; 101 ProportionalImageView* icon_view_ = nullptr;
98 views::View* image_container_ = nullptr; 102 views::View* image_container_ = nullptr;
99 ProportionalImageView* image_view_ = nullptr; 103 ProportionalImageView* image_view_ = nullptr;
100 std::vector<views::LabelButton*> action_buttons_; 104 std::vector<views::LabelButton*> action_buttons_;
101 std::vector<views::View*> item_views_; 105 std::vector<ItemView*> item_views_;
102 106
103 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); 107 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD);
104 }; 108 };
105 109
106 } // namespace message_center 110 } // namespace message_center
107 111
108 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ 112 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698