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