OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 // Sent after the renderer returns a snapshot of tab contents. | 282 // Sent after the renderer returns a snapshot of tab contents. |
283 // The source (Source<RenderViewHost>) is the RenderViewHost for which the | 283 // The source (Source<RenderViewHost>) is the RenderViewHost for which the |
284 // snapshot was generated and the details (Details<const SkBitmap>) is the | 284 // snapshot was generated and the details (Details<const SkBitmap>) is the |
285 // actual snapshot. | 285 // actual snapshot. |
286 TAB_SNAPSHOT_TAKEN, | 286 TAB_SNAPSHOT_TAKEN, |
287 | 287 |
288 // Send after the code is run in specified tab. | 288 // Send after the code is run in specified tab. |
289 TAB_CODE_EXECUTED, | 289 TAB_CODE_EXECUTED, |
290 | 290 |
291 // The user has changed the browser theme. | 291 // The user has changed the browser theme. The source is a |
| 292 // BrowserThemeProvider, and the details are an Extension. |
292 BROWSER_THEME_CHANGED, | 293 BROWSER_THEME_CHANGED, |
293 | 294 |
294 // Sent when the renderer returns focus to the browser, as part of focus | 295 // Sent when the renderer returns focus to the browser, as part of focus |
295 // traversal. The source is the browser, there are no details. | 296 // traversal. The source is the browser, there are no details. |
296 FOCUS_RETURNED_TO_BROWSER, | 297 FOCUS_RETURNED_TO_BROWSER, |
297 | 298 |
298 // Application-modal dialogs ----------------------------------------------- | 299 // Application-modal dialogs ----------------------------------------------- |
299 | 300 |
300 // Sent after an application-modal dialog has been shown. The source | 301 // Sent after an application-modal dialog has been shown. The source |
301 // is the dialog. | 302 // is the dialog. |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 EXTENSION_UPDATE_DISABLED, | 855 EXTENSION_UPDATE_DISABLED, |
855 | 856 |
856 // Sent when an extension is about to be installed so we can (in the case of | 857 // Sent when an extension is about to be installed so we can (in the case of |
857 // themes) alert the user with a loading dialog. The source is the download | 858 // themes) alert the user with a loading dialog. The source is the download |
858 // manager and the details are the download url. | 859 // manager and the details are the download url. |
859 EXTENSION_READY_FOR_INSTALL, | 860 EXTENSION_READY_FOR_INSTALL, |
860 | 861 |
861 // Sent when an extension install turns out to not be a theme. | 862 // Sent when an extension install turns out to not be a theme. |
862 NO_THEME_DETECTED, | 863 NO_THEME_DETECTED, |
863 | 864 |
864 // Sent when a new theme is installed. The details are an Extension, and the | |
865 // source is a Profile. | |
866 THEME_INSTALLED, | |
867 | |
868 // Sent when new extensions are installed. The details are an Extension, and | 865 // Sent when new extensions are installed. The details are an Extension, and |
869 // the source is a Profile. | 866 // the source is a Profile. |
870 EXTENSION_INSTALLED, | 867 EXTENSION_INSTALLED, |
871 | 868 |
872 // An error occured during extension install. The details are a string with | 869 // An error occured during extension install. The details are a string with |
873 // details about why the install failed. | 870 // details about why the install failed. |
874 EXTENSION_INSTALL_ERROR, | 871 EXTENSION_INSTALL_ERROR, |
875 | 872 |
876 // Sent when an extension has been uninstalled. The details are | 873 // Sent when an extension has been uninstalled. The details are |
877 // an UninstalledExtensionInfo struct and the source is a Profile. | 874 // an UninstalledExtensionInfo struct and the source is a Profile. |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 }; | 1317 }; |
1321 | 1318 |
1322 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1319 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1323 return a == b.value; | 1320 return a == b.value; |
1324 } | 1321 } |
1325 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1322 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1326 return a != b.value; | 1323 return a != b.value; |
1327 } | 1324 } |
1328 | 1325 |
1329 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1326 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |