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

Side by Side Diff: ui/message_center/cocoa/settings_controller.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_COCOA_SETTINGS_CONTROLLER_H_ 5 #ifndef UI_MESSAGE_CENTER_COCOA_SETTINGS_CONTROLLER_H_
6 #define UI_MESSAGE_CENTER_COCOA_SETTINGS_CONTROLLER_H_ 6 #define UI_MESSAGE_CENTER_COCOA_SETTINGS_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 12 matching lines...) Expand all
23 class NotifierSettingsObserverMac : public NotifierSettingsObserver { 23 class NotifierSettingsObserverMac : public NotifierSettingsObserver {
24 public: 24 public:
25 NotifierSettingsObserverMac(MCSettingsController* settings_controller) 25 NotifierSettingsObserverMac(MCSettingsController* settings_controller)
26 : settings_controller_(settings_controller) {} 26 : settings_controller_(settings_controller) {}
27 virtual ~NotifierSettingsObserverMac(); 27 virtual ~NotifierSettingsObserverMac();
28 28
29 // Overridden from NotifierSettingsObserver: 29 // Overridden from NotifierSettingsObserver:
30 virtual void UpdateIconImage(const NotifierId& notifier_id, 30 virtual void UpdateIconImage(const NotifierId& notifier_id,
31 const gfx::Image& icon) OVERRIDE; 31 const gfx::Image& icon) OVERRIDE;
32 virtual void NotifierGroupChanged() OVERRIDE; 32 virtual void NotifierGroupChanged() OVERRIDE;
33 virtual void NotifierEnabledChanged(const NotifierId& notifier_id,
34 bool enabled) OVERRIDE;
33 35
34 private: 36 private:
35 MCSettingsController* settings_controller_; // weak, owns this 37 MCSettingsController* settings_controller_; // weak, owns this
36 38
37 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsObserverMac); 39 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsObserverMac);
38 }; 40 };
39 41
40 } // namespace message_center 42 } // namespace message_center
41 43
42 // The view controller responsible for the settings sheet in the center. 44 // The view controller responsible for the settings sheet in the center.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 @end 82 @end
81 83
82 // Testing API ///////////////////////////////////////////////////////////////// 84 // Testing API /////////////////////////////////////////////////////////////////
83 85
84 @interface MCSettingsController (TestingAPI) 86 @interface MCSettingsController (TestingAPI)
85 - (NSPopUpButton*)groupDropDownButton; 87 - (NSPopUpButton*)groupDropDownButton;
86 - (NSScrollView*)scrollView; 88 - (NSScrollView*)scrollView;
87 @end 89 @end
88 90
89 #endif // UI_MESSAGE_CENTER_COCOA_SETTINGS_CONTROLLER_H_ 91 #endif // UI_MESSAGE_CENTER_COCOA_SETTINGS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/message_center_settings_controller.cc ('k') | ui/message_center/cocoa/settings_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698