| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 // Sometimes we shouldn't see the back arrow (not in settings). | 44 // Sometimes we shouldn't see the back arrow (not in settings). |
| 45 void SetBackArrowVisible(bool visible); | 45 void SetBackArrowVisible(bool visible); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // Updates the layout manager which can have differing configuration | 48 // Updates the layout manager which can have differing configuration |
| 49 // depending on the visibilty of different parts of the button bar. | 49 // depending on the visibilty of different parts of the button bar. |
| 50 void ViewVisibilityChanged(); | 50 void ViewVisibilityChanged(); |
| 51 | 51 |
| 52 // Overridden from views::View: | 52 // Overridden from views::View: |
| 53 virtual void ChildVisibilityChanged(views::View* child) OVERRIDE; | 53 virtual void ChildVisibilityChanged(views::View* child) override; |
| 54 | 54 |
| 55 // Overridden from views::ButtonListener: | 55 // Overridden from views::ButtonListener: |
| 56 virtual void ButtonPressed(views::Button* sender, | 56 virtual void ButtonPressed(views::Button* sender, |
| 57 const ui::Event& event) OVERRIDE; | 57 const ui::Event& event) override; |
| 58 | 58 |
| 59 MessageCenterView* message_center_view() const { | 59 MessageCenterView* message_center_view() const { |
| 60 return message_center_view_; | 60 return message_center_view_; |
| 61 } | 61 } |
| 62 MessageCenter* message_center() const { return message_center_; } | 62 MessageCenter* message_center() const { return message_center_; } |
| 63 | 63 |
| 64 MessageCenterView* message_center_view_; // Weak reference. | 64 MessageCenterView* message_center_view_; // Weak reference. |
| 65 MessageCenter* message_center_; // Weak reference. | 65 MessageCenter* message_center_; // Weak reference. |
| 66 | 66 |
| 67 // |close_bubble_button_| closes the message center bubble. This is required | 67 // |close_bubble_button_| closes the message center bubble. This is required |
| (...skipping 12 matching lines...) Expand all Loading... |
| 80 NotificationCenterButton* close_all_button_; | 80 NotificationCenterButton* close_all_button_; |
| 81 NotificationCenterButton* settings_button_; | 81 NotificationCenterButton* settings_button_; |
| 82 NotificationCenterButton* quiet_mode_button_; | 82 NotificationCenterButton* quiet_mode_button_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); | 84 DISALLOW_COPY_AND_ASSIGN(MessageCenterButtonBar); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace message_center | 87 } // namespace message_center |
| 88 | 88 |
| 89 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ | 89 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_BUTTON_BAR_H_ |
| OLD | NEW |