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 | 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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 | 868 |
869 // Sent when an omnibox extension has sent back omnibox suggestions. The | 869 // Sent when an omnibox extension has sent back omnibox suggestions. The |
870 // source is the profile, and the details are an ExtensionOmniboxSuggestions | 870 // source is the profile, and the details are an ExtensionOmniboxSuggestions |
871 // object. | 871 // object. |
872 EXTENSION_OMNIBOX_SUGGESTIONS_READY, | 872 EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
873 | 873 |
874 // Sent when the user accepts the input in an extension omnibox keyword | 874 // Sent when the user accepts the input in an extension omnibox keyword |
875 // session. The source is the profile. | 875 // session. The source is the profile. |
876 EXTENSION_OMNIBOX_INPUT_ENTERED, | 876 EXTENSION_OMNIBOX_INPUT_ENTERED, |
877 | 877 |
878 // The source is the extension object that changed. Details is a bool* | |
879 // with the new visibility. | |
880 EXTENSION_APP_TOOLBAR_VISIBILITY_CHANGED, | |
881 | |
882 // Debugging --------------------------------------------------------------- | 878 // Debugging --------------------------------------------------------------- |
883 | 879 |
884 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. | 880 // TODO(mpcomplete): Sent to diagnose a bug. Remove when fixed. |
885 // http://code.google.com/p/chromium/issues/detail?id=21201 | 881 // http://code.google.com/p/chromium/issues/detail?id=21201 |
886 EXTENSION_PORT_DELETED_DEBUG, | 882 EXTENSION_PORT_DELETED_DEBUG, |
887 | 883 |
888 // Desktop Notifications --------------------------------------------------- | 884 // Desktop Notifications --------------------------------------------------- |
889 | 885 |
890 // This notification is sent when a balloon is connected to a renderer | 886 // This notification is sent when a balloon is connected to a renderer |
891 // process to render the balloon contents. The source is a | 887 // process to render the balloon contents. The source is a |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 }; | 1099 }; |
1104 | 1100 |
1105 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1101 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1106 return a == b.value; | 1102 return a == b.value; |
1107 } | 1103 } |
1108 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1104 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1109 return a != b.value; | 1105 return a != b.value; |
1110 } | 1106 } |
1111 | 1107 |
1112 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1108 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |