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 <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 explicit NotifierSettingsView(NotifierSettingsProvider* provider); | 37 explicit NotifierSettingsView(NotifierSettingsProvider* provider); |
38 virtual ~NotifierSettingsView(); | 38 virtual ~NotifierSettingsView(); |
39 | 39 |
40 bool IsScrollable(); | 40 bool IsScrollable(); |
41 | 41 |
42 // Overridden from NotifierSettingsDelegate: | 42 // Overridden from NotifierSettingsDelegate: |
43 virtual void UpdateIconImage(const NotifierId& notifier_id, | 43 virtual void UpdateIconImage(const NotifierId& notifier_id, |
44 const gfx::Image& icon) OVERRIDE; | 44 const gfx::Image& icon) OVERRIDE; |
45 virtual void NotifierGroupChanged() OVERRIDE; | 45 virtual void NotifierGroupChanged() OVERRIDE; |
| 46 virtual void NotifierEnabledChanged(const NotifierId& notifier_id, |
| 47 bool enabled) OVERRIDE; |
46 | 48 |
47 void set_provider(NotifierSettingsProvider* new_provider) { | 49 void set_provider(NotifierSettingsProvider* new_provider) { |
48 provider_ = new_provider; | 50 provider_ = new_provider; |
49 } | 51 } |
50 | 52 |
51 private: | 53 private: |
52 FRIEND_TEST_ALL_PREFIXES(NotifierSettingsViewTest, TestLearnMoreButton); | 54 FRIEND_TEST_ALL_PREFIXES(NotifierSettingsViewTest, TestLearnMoreButton); |
53 | 55 |
54 class MESSAGE_CENTER_EXPORT NotifierButton : public views::CustomButton, | 56 class MESSAGE_CENTER_EXPORT NotifierButton : public views::CustomButton, |
55 public views::ButtonListener { | 57 public views::ButtonListener { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 std::set<NotifierButton*> buttons_; | 118 std::set<NotifierButton*> buttons_; |
117 scoped_ptr<NotifierGroupMenuModel> notifier_group_menu_model_; | 119 scoped_ptr<NotifierGroupMenuModel> notifier_group_menu_model_; |
118 scoped_ptr<views::MenuRunner> notifier_group_menu_runner_; | 120 scoped_ptr<views::MenuRunner> notifier_group_menu_runner_; |
119 | 121 |
120 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); | 122 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); |
121 }; | 123 }; |
122 | 124 |
123 } // namespace message_center | 125 } // namespace message_center |
124 | 126 |
125 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ | 127 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ |
OLD | NEW |