| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
| 10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // with a pointer to the TabContents. Details encompass a | 469 // with a pointer to the TabContents. Details encompass a |
| 470 // FindNotificationDetail object that tells whether the match was found or | 470 // FindNotificationDetail object that tells whether the match was found or |
| 471 // not found. | 471 // not found. |
| 472 FIND_RESULT_AVAILABLE, | 472 FIND_RESULT_AVAILABLE, |
| 473 | 473 |
| 474 // This is sent when the users preference for when the bookmark bar should | 474 // This is sent when the users preference for when the bookmark bar should |
| 475 // be shown changes. The source is the profile, and the details are | 475 // be shown changes. The source is the profile, and the details are |
| 476 // NoDetails. | 476 // NoDetails. |
| 477 BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, | 477 BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, |
| 478 | 478 |
| 479 // This is sent when the user's preference (for when the extension shelf | |
| 480 // should be shown) changes. The source is the profile, and the details are | |
| 481 // NoDetails. | |
| 482 EXTENSION_SHELF_VISIBILITY_PREF_CHANGED, | |
| 483 | |
| 484 // Sent just before the installation confirm dialog is shown. The source | 479 // Sent just before the installation confirm dialog is shown. The source |
| 485 // is the ExtensionInstallUI, the details are NoDetails. | 480 // is the ExtensionInstallUI, the details are NoDetails. |
| 486 EXTENSION_WILL_SHOW_CONFIRM_DIALOG, | 481 EXTENSION_WILL_SHOW_CONFIRM_DIALOG, |
| 487 | 482 |
| 488 // Used to monitor web cache usage by notifying whenever the | 483 // Used to monitor web cache usage by notifying whenever the |
| 489 // CacheManagerHost observes new UsageStats. The source will be the | 484 // CacheManagerHost observes new UsageStats. The source will be the |
| 490 // RenderProcessHost that corresponds to the new statistics. Details are a | 485 // RenderProcessHost that corresponds to the new statistics. Details are a |
| 491 // UsageStats object sent by the renderer, and should be copied - ptr not | 486 // UsageStats object sent by the renderer, and should be copied - ptr not |
| 492 // guaranteed to be valid after the notification. | 487 // guaranteed to be valid after the notification. |
| 493 WEB_CACHE_STATS_OBSERVED, | 488 WEB_CACHE_STATS_OBSERVED, |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 | 833 |
| 839 // Sent after an extension render process is created and fully functional. | 834 // Sent after an extension render process is created and fully functional. |
| 840 // The details are an ExtensionHost*. | 835 // The details are an ExtensionHost*. |
| 841 EXTENSION_PROCESS_CREATED, | 836 EXTENSION_PROCESS_CREATED, |
| 842 | 837 |
| 843 // Sent when extension render process ends (whether it crashes or closes). | 838 // Sent when extension render process ends (whether it crashes or closes). |
| 844 // The details are an ExtensionHost* and the source is a Profile*. Not sent | 839 // The details are an ExtensionHost* and the source is a Profile*. Not sent |
| 845 // during browser shutdown. | 840 // during browser shutdown. |
| 846 EXTENSION_PROCESS_TERMINATED, | 841 EXTENSION_PROCESS_TERMINATED, |
| 847 | 842 |
| 848 // Sent when the contents or order of toolstrips in the shelf model change. | |
| 849 EXTENSION_SHELF_MODEL_CHANGED, | |
| 850 | |
| 851 // Sent when a background page is ready so other components can load. | 843 // Sent when a background page is ready so other components can load. |
| 852 EXTENSION_BACKGROUND_PAGE_READY, | 844 EXTENSION_BACKGROUND_PAGE_READY, |
| 853 | 845 |
| 854 // Sent when a pop-up extension view is ready, so that notification may | 846 // Sent when a pop-up extension view is ready, so that notification may |
| 855 // be sent to pending callbacks. Note that this notification is sent | 847 // be sent to pending callbacks. Note that this notification is sent |
| 856 // after all onload callbacks have been invoked in the main frame. | 848 // after all onload callbacks have been invoked in the main frame. |
| 857 // The details is the ExtensionHost* hosted within the popup, and the source | 849 // The details is the ExtensionHost* hosted within the popup, and the source |
| 858 // is a Profile*. | 850 // is a Profile*. |
| 859 EXTENSION_POPUP_VIEW_READY, | 851 EXTENSION_POPUP_VIEW_READY, |
| 860 | 852 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 }; | 1139 }; |
| 1148 | 1140 |
| 1149 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1141 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1150 return a == b.value; | 1142 return a == b.value; |
| 1151 } | 1143 } |
| 1152 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1144 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1153 return a != b.value; | 1145 return a != b.value; |
| 1154 } | 1146 } |
| 1155 | 1147 |
| 1156 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1148 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |