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 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 // during browser shutdown. | 788 // during browser shutdown. |
789 EXTENSION_PROCESS_TERMINATED, | 789 EXTENSION_PROCESS_TERMINATED, |
790 | 790 |
791 // Sent when the contents or order of toolstrips in the shelf model change. | 791 // Sent when the contents or order of toolstrips in the shelf model change. |
792 EXTENSION_SHELF_MODEL_CHANGED, | 792 EXTENSION_SHELF_MODEL_CHANGED, |
793 | 793 |
794 // Sent when a background page is ready so other components can load. | 794 // Sent when a background page is ready so other components can load. |
795 EXTENSION_BACKGROUND_PAGE_READY, | 795 EXTENSION_BACKGROUND_PAGE_READY, |
796 | 796 |
797 // Sent when a pop-up extension view is ready, so that notification may | 797 // Sent when a pop-up extension view is ready, so that notification may |
798 // be sent to pending callbacks. | 798 // be sent to pending callbacks. Note that this notification is sent |
| 799 // after all onload callbacks have been invoked in the main frame. |
| 800 // The details is the ExtensionHost* hosted within the popup, and the source |
| 801 // is a Profile*. |
799 EXTENSION_POPUP_VIEW_READY, | 802 EXTENSION_POPUP_VIEW_READY, |
800 | 803 |
801 // Sent when a browser action's state has changed. The source is the | 804 // Sent when a browser action's state has changed. The source is the |
802 // ExtensionAction* that changed. There are no details. | 805 // ExtensionAction* that changed. There are no details. |
803 EXTENSION_BROWSER_ACTION_UPDATED, | 806 EXTENSION_BROWSER_ACTION_UPDATED, |
804 | 807 |
805 // Sent when the count of page actions has changed. Note that some of them | 808 // Sent when the count of page actions has changed. Note that some of them |
806 // may not apply to the current page. The source is a LocationBar*. There | 809 // may not apply to the current page. The source is a LocationBar*. There |
807 // are no details. | 810 // are no details. |
808 EXTENSION_PAGE_ACTION_COUNT_CHANGED, | 811 EXTENSION_PAGE_ACTION_COUNT_CHANGED, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 }; | 995 }; |
993 | 996 |
994 inline bool operator==(NotificationType::Type a, NotificationType b) { | 997 inline bool operator==(NotificationType::Type a, NotificationType b) { |
995 return a == b.value; | 998 return a == b.value; |
996 } | 999 } |
997 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1000 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
998 return a != b.value; | 1001 return a != b.value; |
999 } | 1002 } |
1000 | 1003 |
1001 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1004 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |