| 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 25 matching lines...) Expand all Loading... |
| 36 // Enables or disables all of the buttons in the center. This is used to | 36 // Enables or disables all of the buttons in the center. This is used to |
| 37 // prevent user clicks during the close-all animation. | 37 // prevent user clicks during the close-all animation. |
| 38 virtual void SetAllButtonsEnabled(bool enabled); | 38 virtual void SetAllButtonsEnabled(bool enabled); |
| 39 | 39 |
| 40 // Sometimes we shouldn't see the close-all button. | 40 // Sometimes we shouldn't see the close-all button. |
| 41 void SetCloseAllButtonEnabled(bool enabled); | 41 void SetCloseAllButtonEnabled(bool enabled); |
| 42 | 42 |
| 43 // Sometimes we shouldn't see the back arrow (not in settings). | 43 // Sometimes we shouldn't see the back arrow (not in settings). |
| 44 void SetBackArrowVisible(bool visible); | 44 void SetBackArrowVisible(bool visible); |
| 45 | 45 |
| 46 // Set user visible title of the Notification Tray. |
| 47 void SetNotificationTitle(const base::string16& new_title); |
| 48 |
| 46 private: | 49 private: |
| 47 // Updates the layout manager which can have differing configuration | 50 // Updates the layout manager which can have differing configuration |
| 48 // depending on the visibilty of different parts of the button bar. | 51 // depending on the visibilty of different parts of the button bar. |
| 49 void ViewVisibilityChanged(); | 52 void ViewVisibilityChanged(); |
| 50 | 53 |
| 51 // Overridden from views::View: | 54 // Overridden from views::View: |
| 52 virtual void ChildVisibilityChanged(views::View* child) OVERRIDE; | 55 virtual void ChildVisibilityChanged(views::View* child) OVERRIDE; |
| 53 | 56 |
| 54 // Overridden from views::ButtonListener: | 57 // Overridden from views::ButtonListener: |
| 55 virtual void ButtonPressed(views::Button* sender, | 58 virtual void ButtonPressed(views::Button* sender, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 79 NotificationCenterButton* close_all_button_; | 82 NotificationCenterButton* close_all_button_; |
| 80 NotificationCenterButton* settings_button_; | 83 NotificationCenterButton* settings_button_; |
| 81 NotificationCenterButton* quiet_mode_button_; | 84 NotificationCenterButton* quiet_mode_button_; |
| 82 | 85 |
| 83 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); | 86 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace message_center | 89 } // namespace message_center |
| 87 | 90 |
| 88 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ | 91 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ |
| OLD | NEW |