| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MESSAGE_CENTER_BUTTON_BAR_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ |
| 7 | 7 |
| 8 #include "ui/views/controls/button/button.h" | 8 #include "ui/views/controls/button/button.h" |
| 9 #include "ui/views/controls/button/image_button.h" | 9 #include "ui/views/controls/button/image_button.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class NotifierSettingsProvider; | 23 class NotifierSettingsProvider; |
| 24 | 24 |
| 25 // MessageCenterButtonBar is the class that shows the content outside the main | 25 // MessageCenterButtonBar is the class that shows the content outside the main |
| 26 // notification area - the label (or NotifierGroup switcher) and the buttons. | 26 // notification area - the label (or NotifierGroup switcher) and the buttons. |
| 27 class MessageCenterButtonBar : public views::View, | 27 class MessageCenterButtonBar : public views::View, |
| 28 public views::ButtonListener { | 28 public views::ButtonListener { |
| 29 public: | 29 public: |
| 30 MessageCenterButtonBar(MessageCenterView* message_center_view, | 30 MessageCenterButtonBar(MessageCenterView* message_center_view, |
| 31 MessageCenter* message_center, | 31 MessageCenter* message_center, |
| 32 NotifierSettingsProvider* notifier_settings_provider, | 32 NotifierSettingsProvider* notifier_settings_provider, |
| 33 bool settings_initially_visible); | 33 bool settings_initially_visible, |
| 34 const base::string16& title); |
| 34 virtual ~MessageCenterButtonBar(); | 35 virtual ~MessageCenterButtonBar(); |
| 35 | 36 |
| 36 // Enables or disables all of the buttons in the center. This is used to | 37 // Enables or disables all of the buttons in the center. This is used to |
| 37 // prevent user clicks during the close-all animation. | 38 // prevent user clicks during the close-all animation. |
| 38 virtual void SetAllButtonsEnabled(bool enabled); | 39 virtual void SetAllButtonsEnabled(bool enabled); |
| 39 | 40 |
| 40 // Sometimes we shouldn't see the close-all button. | 41 // Sometimes we shouldn't see the close-all button. |
| 41 void SetCloseAllButtonEnabled(bool enabled); | 42 void SetCloseAllButtonEnabled(bool enabled); |
| 42 | 43 |
| 43 // Sometimes we shouldn't see the back arrow (not in settings). | 44 // Sometimes we shouldn't see the back arrow (not in settings). |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 NotificationCenterButton* close_all_button_; | 80 NotificationCenterButton* close_all_button_; |
| 80 NotificationCenterButton* settings_button_; | 81 NotificationCenterButton* settings_button_; |
| 81 NotificationCenterButton* quiet_mode_button_; | 82 NotificationCenterButton* quiet_mode_button_; |
| 82 | 83 |
| 83 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); | 84 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); |
| 84 }; | 85 }; |
| 85 | 86 |
| 86 } // namespace message_center | 87 } // namespace message_center |
| 87 | 88 |
| 88 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ | 89 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ |
| OLD | NEW |