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

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

Issue 23462005: Adds the contextMessage field to notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjust unit test due to bugfix in toast layout. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/message_center/notification.cc ('k') | ui/message_center/views/notification_view.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_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/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool IsMessageExpansionNeeded(int width); 64 bool IsMessageExpansionNeeded(int width);
65 int GetMessageLineLimit(int width); 65 int GetMessageLineLimit(int width);
66 int GetMessageLines(int width, int limit); 66 int GetMessageLines(int width, int limit);
67 int GetMessageHeight(int width, int limit); 67 int GetMessageHeight(int width, int limit);
68 68
69 // Weak references to NotificationView descendants owned by their parents. 69 // Weak references to NotificationView descendants owned by their parents.
70 views::View* background_view_; 70 views::View* background_view_;
71 views::View* top_view_; 71 views::View* top_view_;
72 BoundedLabel* title_view_; 72 BoundedLabel* title_view_;
73 BoundedLabel* message_view_; 73 BoundedLabel* message_view_;
74 BoundedLabel* context_message_view_;
74 std::vector<views::View*> item_views_; 75 std::vector<views::View*> item_views_;
75 views::View* icon_view_; 76 views::View* icon_view_;
76 views::View* bottom_view_; 77 views::View* bottom_view_;
77 views::View* image_view_; 78 views::View* image_view_;
78 views::ProgressBar* progress_bar_view_; 79 views::ProgressBar* progress_bar_view_;
79 std::vector<views::View*> action_buttons_; 80 std::vector<views::View*> action_buttons_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(NotificationView); 82 DISALLOW_COPY_AND_ASSIGN(NotificationView);
82 }; 83 };
83 84
84 } // namespace message_center 85 } // namespace message_center
85 86
86 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 87 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/notification.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698