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

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

Issue 288033014: Remove Notifications Associated with an Extension When the Extension is Unchecked from the Message … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Unit Test That Left Dangling Pointer Created 6 years, 7 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_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
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
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_
OLDNEW
« no previous file with comments | « ui/message_center/notifier_settings.h ('k') | ui/message_center/views/notifier_settings_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698