| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_NOTIFIER_SETTINGS_VIEW_H_ | 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ |
| 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ | 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void SetChecked(bool checked); | 69 void SetChecked(bool checked); |
| 70 bool checked() const; | 70 bool checked() const; |
| 71 bool has_learn_more() const; | 71 bool has_learn_more() const; |
| 72 const Notifier& notifier() const; | 72 const Notifier& notifier() const; |
| 73 | 73 |
| 74 void SendLearnMorePressedForTest(); | 74 void SendLearnMorePressedForTest(); |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 // Overridden from views::ButtonListener: | 77 // Overridden from views::ButtonListener: |
| 78 void ButtonPressed(views::Button* button, const ui::Event& event) override; | 78 void ButtonPressed(views::Button* button, const ui::Event& event) override; |
| 79 void GetAccessibleState(ui::AXViewState* state) override; | 79 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 80 | 80 |
| 81 bool ShouldHaveLearnMoreButton() const; | 81 bool ShouldHaveLearnMoreButton() const; |
| 82 // Helper function to reset the layout when the view has substantially | 82 // Helper function to reset the layout when the view has substantially |
| 83 // changed. | 83 // changed. |
| 84 void GridChanged(bool has_learn_more, bool has_icon_view); | 84 void GridChanged(bool has_learn_more, bool has_icon_view); |
| 85 | 85 |
| 86 NotifierSettingsProvider* provider_; // Weak. | 86 NotifierSettingsProvider* provider_; // Weak. |
| 87 const std::unique_ptr<Notifier> notifier_; | 87 const std::unique_ptr<Notifier> notifier_; |
| 88 // |icon_view_| is owned by us because sometimes we don't leave it | 88 // |icon_view_| is owned by us because sometimes we don't leave it |
| 89 // in the view hierarchy. | 89 // in the view hierarchy. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 NotifierSettingsProvider* provider_; | 121 NotifierSettingsProvider* provider_; |
| 122 std::set<NotifierButton*> buttons_; | 122 std::set<NotifierButton*> buttons_; |
| 123 std::unique_ptr<ui::ComboboxModel> notifier_group_model_; | 123 std::unique_ptr<ui::ComboboxModel> notifier_group_model_; |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); | 125 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace message_center | 128 } // namespace message_center |
| 129 | 129 |
| 130 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ | 130 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ |
| OLD | NEW |