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

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

Issue 264123002: Google Now Message Center Stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename 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_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 24 matching lines...) Expand all
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 the notification associated with |notification_id| is actually 43 // Called when the notification associated with |notification_id| is actually
44 // displayed. 44 // displayed.
45 virtual void OnNotificationDisplayed(const std::string& notification_id) {} 45 virtual void OnNotificationDisplayed(
46 const std::string& notification_id,
47 const DisplaySource source) {}
46 48
47 // Called when the notification center is shown or hidden. 49 // Called when the notification center is shown or hidden.
48 virtual void OnCenterVisibilityChanged(Visibility visibility) {} 50 virtual void OnCenterVisibilityChanged(Visibility visibility) {}
49 51
50 // Called whenever the quiet mode changes as a result of user action or when 52 // Called whenever the quiet mode changes as a result of user action or when
51 // quiet mode expires. 53 // quiet mode expires.
52 virtual void OnQuietModeChanged(bool in_quiet_mode) {} 54 virtual void OnQuietModeChanged(bool in_quiet_mode) {}
53 55
54 // Called when the blocking state of |blocker| is changed. 56 // Called when the blocking state of |blocker| is changed.
55 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) {} 57 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) {}
56 }; 58 };
57 59
58 } // namespace message_center 60 } // namespace message_center
59 61
60 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ 62 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_impl_unittest.cc ('k') | ui/message_center/message_center_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698