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 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... |
38 void set_delegate(NotifierSettingsViewDelegate* new_delegate) { | 38 void set_delegate(NotifierSettingsViewDelegate* new_delegate) { |
39 delegate_ = new_delegate; | 39 delegate_ = new_delegate; |
40 } | 40 } |
41 | 41 |
42 private: | 42 private: |
43 class NotifierButton; | 43 class NotifierButton; |
44 | 44 |
45 NotifierSettingsView(NotifierSettingsViewDelegate* delegate); | 45 NotifierSettingsView(NotifierSettingsViewDelegate* delegate); |
46 virtual ~NotifierSettingsView(); | 46 virtual ~NotifierSettingsView(); |
47 | 47 |
48 // views::WidgetDelegate overrides: | 48 // Overridden from views::WidgetDelegate: |
49 virtual bool CanResize() const OVERRIDE; | 49 virtual bool CanResize() const OVERRIDE; |
50 virtual string16 GetWindowTitle() const OVERRIDE; | 50 virtual string16 GetWindowTitle() const OVERRIDE; |
51 virtual void WindowClosing() OVERRIDE; | 51 virtual void WindowClosing() OVERRIDE; |
52 virtual views::View* GetContentsView() OVERRIDE; | 52 virtual views::View* GetContentsView() OVERRIDE; |
53 | 53 |
54 // views::ButtonListener overrides: | 54 // Overridden from views::ButtonListener: |
55 virtual void ButtonPressed(views::Button* sender, | 55 virtual void ButtonPressed(views::Button* sender, |
56 const ui::Event& event) OVERRIDE; | 56 const ui::Event& event) OVERRIDE; |
57 | 57 |
58 NotifierSettingsViewDelegate* delegate_; | 58 NotifierSettingsViewDelegate* delegate_; |
59 std::set<NotifierButton*> buttons_; | 59 std::set<NotifierButton*> buttons_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); | 61 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace message_center | 64 } // namespace message_center |
65 | 65 |
66 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ | 66 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ |
OLD | NEW |