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

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

Issue 2823673002: Revert of Fix the settings button and UMA metrics for the message center (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « ui/message_center/message_center_impl.cc ('k') | ui/message_center/message_center_tray.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MESSAGE_CENTER_OBSERVER_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // Called when a click event happens on the notification associated with 34 // Called when a click event happens on the notification associated with
35 // |notification_id|. 35 // |notification_id|.
36 virtual void OnNotificationClicked(const std::string& notification_id) {} 36 virtual void OnNotificationClicked(const std::string& notification_id) {}
37 37
38 // Called when a click event happens on a button indexed by |button_index| 38 // Called when a click event happens on a button indexed by |button_index|
39 // of the notification associated with |notification_id|. 39 // of the notification associated with |notification_id|.
40 virtual void OnNotificationButtonClicked(const std::string& notification_id, 40 virtual void OnNotificationButtonClicked(const std::string& notification_id,
41 int button_index) {} 41 int button_index) {}
42 42
43 // Called when notification settings button is clicked. The |handled| argument 43 // Called when notification settings button is clicked.
44 // indicates whether the notification delegate already handled the operation. 44 virtual void OnNotificationSettingsClicked() {}
45 virtual void OnNotificationSettingsClicked(bool handled) {}
46 45
47 // Called when the notification associated with |notification_id| is actually 46 // Called when the notification associated with |notification_id| is actually
48 // displayed. 47 // displayed.
49 virtual void OnNotificationDisplayed( 48 virtual void OnNotificationDisplayed(
50 const std::string& notification_id, 49 const std::string& notification_id,
51 const DisplaySource source) {} 50 const DisplaySource source) {}
52 51
53 // Called when the notification center is shown or hidden. 52 // Called when the notification center is shown or hidden.
54 virtual void OnCenterVisibilityChanged(Visibility visibility) {} 53 virtual void OnCenterVisibilityChanged(Visibility visibility) {}
55 54
56 // Called whenever the quiet mode changes as a result of user action or when 55 // Called whenever the quiet mode changes as a result of user action or when
57 // quiet mode expires. 56 // quiet mode expires.
58 virtual void OnQuietModeChanged(bool in_quiet_mode) {} 57 virtual void OnQuietModeChanged(bool in_quiet_mode) {}
59 58
60 // Called when the user locks (or unlocks) the screen. 59 // Called when the user locks (or unlocks) the screen.
61 virtual void OnLockedStateChanged(bool locked) {} 60 virtual void OnLockedStateChanged(bool locked) {}
62 61
63 // Called when the blocking state of |blocker| is changed. 62 // Called when the blocking state of |blocker| is changed.
64 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) {} 63 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) {}
65 }; 64 };
66 65
67 } // namespace message_center 66 } // namespace message_center
68 67
69 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ 68 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_impl.cc ('k') | ui/message_center/message_center_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698