Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: ui/message_center/notifier_settings_view.h

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented review suggestions. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698