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

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

Issue 2969603003: Implement new-style image notification resizing. (Closed)
Patch Set: Fix nits. Created 3 years, 4 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
« no previous file with comments | « no previous file | ui/message_center/views/notification_view_md.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_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"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace message_center { 23 namespace message_center {
24 24
25 class BoundedLabel; 25 class BoundedLabel;
26 class NotificationHeaderView; 26 class NotificationHeaderView;
27 class ProportionalImageView; 27 class ProportionalImageView;
28 28
29 namespace { 29 namespace {
30 class CompactTitleMessageView; 30 class CompactTitleMessageView;
31 class ItemView; 31 class ItemView;
32 class LargeImageContainerView;
32 } 33 }
33 34
34 // View that displays all current types of notification (web, basic, image, and 35 // View that displays all current types of notification (web, basic, image, and
35 // list) except the custom notification. Future notification types may be 36 // list) except the custom notification. Future notification types may be
36 // handled by other classes, in which case instances of those classes would be 37 // handled by other classes, in which case instances of those classes would be
37 // returned by the Create() factory method below. 38 // returned by the Create() factory method below.
38 class MESSAGE_CENTER_EXPORT NotificationViewMD 39 class MESSAGE_CENTER_EXPORT NotificationViewMD
39 : public MessageView, 40 : public MessageView,
40 public views::ButtonListener, 41 public views::ButtonListener,
41 public views::ViewTargeterDelegate { 42 public views::ViewTargeterDelegate {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 110
110 // Containers for left and right side on |content_row_| 111 // Containers for left and right side on |content_row_|
111 views::View* left_content_ = nullptr; 112 views::View* left_content_ = nullptr;
112 views::View* right_content_ = nullptr; 113 views::View* right_content_ = nullptr;
113 114
114 // Views which are dinamicallly created inside view hierarchy. 115 // Views which are dinamicallly created inside view hierarchy.
115 views::Label* title_view_ = nullptr; 116 views::Label* title_view_ = nullptr;
116 BoundedLabel* message_view_ = nullptr; 117 BoundedLabel* message_view_ = nullptr;
117 views::Label* status_view_ = nullptr; 118 views::Label* status_view_ = nullptr;
118 ProportionalImageView* icon_view_ = nullptr; 119 ProportionalImageView* icon_view_ = nullptr;
119 views::View* image_container_ = nullptr; 120 LargeImageContainerView* image_container_view_ = nullptr;
120 ProportionalImageView* image_view_ = nullptr;
121 std::vector<views::LabelButton*> action_buttons_; 121 std::vector<views::LabelButton*> action_buttons_;
122 std::vector<ItemView*> item_views_; 122 std::vector<ItemView*> item_views_;
123 views::ProgressBar* progress_bar_view_ = nullptr; 123 views::ProgressBar* progress_bar_view_ = nullptr;
124 CompactTitleMessageView* compact_title_message_view_ = nullptr; 124 CompactTitleMessageView* compact_title_message_view_ = nullptr;
125 125
126 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); 126 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD);
127 }; 127 };
128 128
129 } // namespace message_center 129 } // namespace message_center
130 130
131 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ 131 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/notification_view_md.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698