| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void SetAllButtonsEnabled(bool enabled); | 42 virtual void SetAllButtonsEnabled(bool enabled); |
| 43 | 43 |
| 44 // Sometimes we shouldn't see the close-all button. | 44 // Sometimes we shouldn't see the close-all button. |
| 45 void SetCloseAllButtonEnabled(bool enabled); | 45 void SetCloseAllButtonEnabled(bool enabled); |
| 46 | 46 |
| 47 MESSAGE_CENTER_EXPORT views::Button* GetCloseAllButtonForTest() const; | 47 MESSAGE_CENTER_EXPORT views::Button* GetCloseAllButtonForTest() const; |
| 48 | 48 |
| 49 // Sometimes we shouldn't see the back arrow (not in settings). | 49 // Sometimes we shouldn't see the back arrow (not in settings). |
| 50 void SetBackArrowVisible(bool visible); | 50 void SetBackArrowVisible(bool visible); |
| 51 | 51 |
| 52 // Update the label of the title. |
| 53 void SetTitle(const base::string16& title); |
| 54 |
| 52 private: | 55 private: |
| 53 // Updates the layout manager which can have differing configuration | 56 // Updates the layout manager which can have differing configuration |
| 54 // depending on the visibility of different parts of the button bar. | 57 // depending on the visibility of different parts of the button bar. |
| 55 void ViewVisibilityChanged(); | 58 void ViewVisibilityChanged(); |
| 56 | 59 |
| 57 // Overridden from views::View: | 60 // Overridden from views::View: |
| 58 void ChildVisibilityChanged(views::View* child) override; | 61 void ChildVisibilityChanged(views::View* child) override; |
| 59 | 62 |
| 60 // Overridden from views::ButtonListener: | 63 // Overridden from views::ButtonListener: |
| 61 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 64 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 84 NotificationCenterButton* close_all_button_; | 87 NotificationCenterButton* close_all_button_; |
| 85 NotificationCenterButton* settings_button_; | 88 NotificationCenterButton* settings_button_; |
| 86 NotificationCenterButton* quiet_mode_button_; | 89 NotificationCenterButton* quiet_mode_button_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); | 91 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace message_center | 94 } // namespace message_center |
| 92 | 95 |
| 93 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ | 96 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ |
| OLD | NEW |