| OLD | NEW |
| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const std::string& notification_id, | 49 const std::string& notification_id, |
| 50 const DisplaySource source) {} | 50 const DisplaySource source) {} |
| 51 | 51 |
| 52 // Called when the notification center is shown or hidden. | 52 // Called when the notification center is shown or hidden. |
| 53 virtual void OnCenterVisibilityChanged(Visibility visibility) {} | 53 virtual void OnCenterVisibilityChanged(Visibility visibility) {} |
| 54 | 54 |
| 55 // 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 |
| 56 // quiet mode expires. | 56 // quiet mode expires. |
| 57 virtual void OnQuietModeChanged(bool in_quiet_mode) {} | 57 virtual void OnQuietModeChanged(bool in_quiet_mode) {} |
| 58 | 58 |
| 59 // Called when the user locks (or unlocks) the screen. |
| 60 virtual void OnLockedStateChanged(bool locked) {} |
| 61 |
| 59 // Called when the blocking state of |blocker| is changed. | 62 // Called when the blocking state of |blocker| is changed. |
| 60 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) {} | 63 virtual void OnBlockingStateChanged(NotificationBlocker* blocker) {} |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 } // namespace message_center | 66 } // namespace message_center |
| 64 | 67 |
| 65 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ | 68 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_OBSERVER_H_ |
| OLD | NEW |