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

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

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: better example code Created 4 years, 3 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_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 "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/view_targeter_delegate.h" 14 #include "ui/views/view_targeter_delegate.h"
15 15
16 class GURL; 16 class GURL;
17 17
18 namespace views { 18 namespace views {
19 class ProgressBar; 19 class ProgressBar;
20 } 20 }
21 21
22 namespace message_center { 22 namespace message_center {
23 23
24 class BoundedLabel; 24 class BoundedLabel;
25 class MessageCenter; 25 class MessageCenter;
26 class NotificationButton; 26 class NotificationButton;
27 class NotificationProgressBarBase;
28 class PaddedButton; 27 class PaddedButton;
29 class ProportionalImageView; 28 class ProportionalImageView;
30 29
31 // View that displays all current types of notification (web, basic, image, and 30 // View that displays all current types of notification (web, basic, image, and
32 // list) except the custom notification. Future notification types may be 31 // list) except the custom notification. Future notification types may be
33 // handled by other classes, in which case instances of those classes would be 32 // handled by other classes, in which case instances of those classes would be
34 // returned by the Create() factory method below. 33 // returned by the Create() factory method below.
35 class MESSAGE_CENTER_EXPORT NotificationView 34 class MESSAGE_CENTER_EXPORT NotificationView
36 : public MessageView, 35 : public MessageView,
37 public views::ViewTargeterDelegate { 36 public views::ViewTargeterDelegate {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 views::View* top_view_ = nullptr; 97 views::View* top_view_ = nullptr;
99 BoundedLabel* title_view_ = nullptr; 98 BoundedLabel* title_view_ = nullptr;
100 BoundedLabel* message_view_ = nullptr; 99 BoundedLabel* message_view_ = nullptr;
101 BoundedLabel* context_message_view_ = nullptr; 100 BoundedLabel* context_message_view_ = nullptr;
102 views::ImageButton* settings_button_view_ = nullptr; 101 views::ImageButton* settings_button_view_ = nullptr;
103 std::vector<views::View*> item_views_; 102 std::vector<views::View*> item_views_;
104 ProportionalImageView* icon_view_ = nullptr; 103 ProportionalImageView* icon_view_ = nullptr;
105 views::View* bottom_view_ = nullptr; 104 views::View* bottom_view_ = nullptr;
106 views::View* image_container_ = nullptr; 105 views::View* image_container_ = nullptr;
107 ProportionalImageView* image_view_ = nullptr; 106 ProportionalImageView* image_view_ = nullptr;
108 NotificationProgressBarBase* progress_bar_view_ = nullptr; 107 views::ProgressBar* progress_bar_view_ = nullptr;
109 std::vector<NotificationButton*> action_buttons_; 108 std::vector<NotificationButton*> action_buttons_;
110 std::vector<views::View*> separators_; 109 std::vector<views::View*> separators_;
111 110
112 DISALLOW_COPY_AND_ASSIGN(NotificationView); 111 DISALLOW_COPY_AND_ASSIGN(NotificationView);
113 }; 112 };
114 113
115 } // namespace message_center 114 } // namespace message_center
116 115
117 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 116 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698