| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| 7 | 7 |
| 8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
| 9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
| 10 // | 10 // |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 // during browser shutdown. | 799 // during browser shutdown. |
| 800 EXTENSION_PROCESS_TERMINATED, | 800 EXTENSION_PROCESS_TERMINATED, |
| 801 | 801 |
| 802 // Sent when the contents or order of toolstrips in the shelf model change. | 802 // Sent when the contents or order of toolstrips in the shelf model change. |
| 803 EXTENSION_SHELF_MODEL_CHANGED, | 803 EXTENSION_SHELF_MODEL_CHANGED, |
| 804 | 804 |
| 805 // Sent when a background page is ready so other components can load. | 805 // Sent when a background page is ready so other components can load. |
| 806 EXTENSION_BACKGROUND_PAGE_READY, | 806 EXTENSION_BACKGROUND_PAGE_READY, |
| 807 | 807 |
| 808 // Sent when a pop-up extension view is ready, so that notification may | 808 // Sent when a pop-up extension view is ready, so that notification may |
| 809 // be sent to pending callbacks. | 809 // be sent to pending callbacks. Note that this notification is sent |
| 810 // after all onload callbacks have been invoked in the main frame. |
| 811 // The details is the ExtensionHost* hosted within the popup, and the source |
| 812 // is a Profile*. |
| 810 EXTENSION_POPUP_VIEW_READY, | 813 EXTENSION_POPUP_VIEW_READY, |
| 811 | 814 |
| 812 // Sent when a browser action's state has changed. The source is the | 815 // Sent when a browser action's state has changed. The source is the |
| 813 // ExtensionAction* that changed. There are no details. | 816 // ExtensionAction* that changed. There are no details. |
| 814 EXTENSION_BROWSER_ACTION_UPDATED, | 817 EXTENSION_BROWSER_ACTION_UPDATED, |
| 815 | 818 |
| 816 // Sent when the count of page actions has changed. Note that some of them | 819 // Sent when the count of page actions has changed. Note that some of them |
| 817 // may not apply to the current page. The source is a LocationBar*. There | 820 // may not apply to the current page. The source is a LocationBar*. There |
| 818 // are no details. | 821 // are no details. |
| 819 EXTENSION_PAGE_ACTION_COUNT_CHANGED, | 822 EXTENSION_PAGE_ACTION_COUNT_CHANGED, |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 }; | 1006 }; |
| 1004 | 1007 |
| 1005 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1008 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1006 return a == b.value; | 1009 return a == b.value; |
| 1007 } | 1010 } |
| 1008 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1011 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1009 return a != b.value; | 1012 return a != b.value; |
| 1010 } | 1013 } |
| 1011 | 1014 |
| 1012 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1015 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |