Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_HEADER_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/message_center/views/padded_button.h" | 9 #include "ui/message_center/views/padded_button.h" |
| 10 #include "ui/views/controls/button/custom_button.h" | 10 #include "ui/views/controls/button/custom_button.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 class ImageButton; | 13 class ImageButton; |
| 14 class ImageView; | 14 class ImageView; |
| 15 class Label; | 15 class Label; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace message_center { | 18 namespace message_center { |
| 19 | 19 |
| 20 namespace { | |
| 21 class ExpandButton; | |
|
yoshiki
2017/07/03 06:15:47
We should avoid forward declaring a methods in an
tetsui
2017/07/03 07:10:54
Done.
| |
| 22 } | |
| 23 | |
| 20 class NotificationHeaderView : public views::CustomButton { | 24 class NotificationHeaderView : public views::CustomButton { |
| 21 public: | 25 public: |
| 26 friend class ExpandButton; | |
| 27 | |
| 22 NotificationHeaderView(views::ButtonListener* listener); | 28 NotificationHeaderView(views::ButtonListener* listener); |
| 23 void SetAppIcon(const gfx::ImageSkia& img); | 29 void SetAppIcon(const gfx::ImageSkia& img); |
| 24 void SetAppName(const base::string16& name); | 30 void SetAppName(const base::string16& name); |
| 25 void SetProgress(int progress); | 31 void SetProgress(int progress); |
| 26 void SetExpandButtonEnabled(bool enabled); | 32 void SetExpandButtonEnabled(bool enabled); |
| 27 void SetExpanded(bool expanded); | 33 void SetExpanded(bool expanded); |
| 28 void SetSettingsButtonEnabled(bool enabled); | 34 void SetSettingsButtonEnabled(bool enabled); |
| 29 void SetCloseButtonEnabled(bool enabled); | 35 void SetCloseButtonEnabled(bool enabled); |
| 30 void SetControlButtonsVisible(bool visible); | 36 void SetControlButtonsVisible(bool visible); |
| 31 void ClearProgress(); | 37 void ClearProgress(); |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 60 bool close_button_enabled_ = false; | 66 bool close_button_enabled_ = false; |
| 61 bool is_control_buttons_visible_ = false; | 67 bool is_control_buttons_visible_ = false; |
| 62 bool has_summary_text_ = false; | 68 bool has_summary_text_ = false; |
| 63 | 69 |
| 64 DISALLOW_COPY_AND_ASSIGN(NotificationHeaderView); | 70 DISALLOW_COPY_AND_ASSIGN(NotificationHeaderView); |
| 65 }; | 71 }; |
| 66 | 72 |
| 67 } // namespace message_center | 73 } // namespace message_center |
| 68 | 74 |
| 69 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_ | 75 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_ |
| OLD | NEW |