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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 views::ImageButton* learn_more_; | 88 views::ImageButton* learn_more_; |
89 | 89 |
90 DISALLOW_COPY_AND_ASSIGN(NotifierButton); | 90 DISALLOW_COPY_AND_ASSIGN(NotifierButton); |
91 }; | 91 }; |
92 | 92 |
93 // Given a new list of notifiers, updates the view to reflect it. | 93 // Given a new list of notifiers, updates the view to reflect it. |
94 void UpdateContentsView(const std::vector<Notifier*>& notifiers); | 94 void UpdateContentsView(const std::vector<Notifier*>& notifiers); |
95 | 95 |
96 // Overridden from views::View: | 96 // Overridden from views::View: |
97 virtual void Layout() OVERRIDE; | 97 virtual void Layout() OVERRIDE; |
98 virtual gfx::Size GetMinimumSize() OVERRIDE; | 98 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
99 virtual gfx::Size GetPreferredSize() OVERRIDE; | 99 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
100 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 100 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
101 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; | 101 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; |
102 | 102 |
103 // Overridden from views::ButtonListener: | 103 // Overridden from views::ButtonListener: |
104 virtual void ButtonPressed(views::Button* sender, | 104 virtual void ButtonPressed(views::Button* sender, |
105 const ui::Event& event) OVERRIDE; | 105 const ui::Event& event) OVERRIDE; |
106 | 106 |
107 // Overridden from views::MenuButtonListener: | 107 // Overridden from views::MenuButtonListener: |
108 virtual void OnMenuButtonClicked(views::View* source, | 108 virtual void OnMenuButtonClicked(views::View* source, |
109 const gfx::Point& point) OVERRIDE; | 109 const gfx::Point& point) OVERRIDE; |
110 | 110 |
111 views::ImageButton* title_arrow_; | 111 views::ImageButton* title_arrow_; |
112 views::Label* title_label_; | 112 views::Label* title_label_; |
113 views::MenuButton* notifier_group_selector_; | 113 views::MenuButton* notifier_group_selector_; |
114 views::ScrollView* scroller_; | 114 views::ScrollView* scroller_; |
115 NotifierSettingsProvider* provider_; | 115 NotifierSettingsProvider* provider_; |
116 std::set<NotifierButton*> buttons_; | 116 std::set<NotifierButton*> buttons_; |
117 scoped_ptr<NotifierGroupMenuModel> notifier_group_menu_model_; | 117 scoped_ptr<NotifierGroupMenuModel> notifier_group_menu_model_; |
118 scoped_ptr<views::MenuRunner> notifier_group_menu_runner_; | 118 scoped_ptr<views::MenuRunner> notifier_group_menu_runner_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); | 120 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace message_center | 123 } // namespace message_center |
124 | 124 |
125 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ | 125 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ |
OLD | NEW |