| OLD | NEW |
| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void CreateOrUpdateCloseButtonView(const Notification& notification); | 79 void CreateOrUpdateCloseButtonView(const Notification& notification); |
| 80 void CreateOrUpdateSettingsButtonView(const Notification& notification); | 80 void CreateOrUpdateSettingsButtonView(const Notification& notification); |
| 81 | 81 |
| 82 bool IsExpandable(); | 82 bool IsExpandable(); |
| 83 void ToggleExpanded(); | 83 void ToggleExpanded(); |
| 84 void UpdateViewForExpandedState(bool expanded); | 84 void UpdateViewForExpandedState(bool expanded); |
| 85 | 85 |
| 86 // Whether this notification is expanded or not. | 86 // Whether this notification is expanded or not. |
| 87 bool expanded_ = false; | 87 bool expanded_ = false; |
| 88 | 88 |
| 89 // Number of total list items in the given Notification class. |
| 90 int list_items_count_ = 0; |
| 91 |
| 89 // Describes whether the view should display a hand pointer or not. | 92 // Describes whether the view should display a hand pointer or not. |
| 90 bool clickable_; | 93 bool clickable_; |
| 91 | 94 |
| 92 // Container views directly attached to this view. | 95 // Container views directly attached to this view. |
| 93 NotificationHeaderView* header_row_ = nullptr; | 96 NotificationHeaderView* header_row_ = nullptr; |
| 94 views::View* content_row_ = nullptr; | 97 views::View* content_row_ = nullptr; |
| 95 views::View* actions_row_ = nullptr; | 98 views::View* actions_row_ = nullptr; |
| 96 | 99 |
| 97 // Containers for left and right side on |content_row_| | 100 // Containers for left and right side on |content_row_| |
| 98 views::View* left_content_ = nullptr; | 101 views::View* left_content_ = nullptr; |
| 99 views::View* right_content_ = nullptr; | 102 views::View* right_content_ = nullptr; |
| 100 | 103 |
| 101 // Views which are dinamicallly created inside view hierarchy. | 104 // Views which are dinamicallly created inside view hierarchy. |
| 102 views::Label* title_view_ = nullptr; | 105 views::Label* title_view_ = nullptr; |
| 103 BoundedLabel* message_view_ = nullptr; | 106 BoundedLabel* message_view_ = nullptr; |
| 104 ProportionalImageView* icon_view_ = nullptr; | 107 ProportionalImageView* icon_view_ = nullptr; |
| 105 views::View* image_container_ = nullptr; | 108 views::View* image_container_ = nullptr; |
| 106 ProportionalImageView* image_view_ = nullptr; | 109 ProportionalImageView* image_view_ = nullptr; |
| 107 std::vector<views::LabelButton*> action_buttons_; | 110 std::vector<views::LabelButton*> action_buttons_; |
| 108 std::vector<ItemView*> item_views_; | 111 std::vector<ItemView*> item_views_; |
| 109 views::ProgressBar* progress_bar_view_ = nullptr; | 112 views::ProgressBar* progress_bar_view_ = nullptr; |
| 110 CompactTitleMessageView* compact_title_message_view_ = nullptr; | 113 CompactTitleMessageView* compact_title_message_view_ = nullptr; |
| 111 | 114 |
| 112 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); | 115 DISALLOW_COPY_AND_ASSIGN(NotificationViewMD); |
| 113 }; | 116 }; |
| 114 | 117 |
| 115 } // namespace message_center | 118 } // namespace message_center |
| 116 | 119 |
| 117 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ | 120 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_MD_H_ |
| OLD | NEW |