OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 // This notification is sent when TabContents::SetAppExtension is invoked. | 129 // This notification is sent when TabContents::SetAppExtension is invoked. |
130 // The source is the ExtensionTabHelper SetAppExtension was invoked on. | 130 // The source is the ExtensionTabHelper SetAppExtension was invoked on. |
131 NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, | 131 NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, |
132 | 132 |
133 // Notification posted when the element that is focused and currently accepts | 133 // Notification posted when the element that is focused and currently accepts |
134 // keyboard input inside the webpage has been touched. The source is the | 134 // keyboard input inside the webpage has been touched. The source is the |
135 // RenderViewHost and the details are not used. | 135 // RenderViewHost and the details are not used. |
136 NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED, | 136 NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED, |
137 | 137 |
| 138 // Tabs -------------------------------------------------------------------- |
| 139 |
| 140 // Sent when a tab is added to a WebContentsDelegate. The source is the |
| 141 // WebContentsDelegate and the details is the added WebContents. |
| 142 NOTIFICATION_TAB_ADDED, |
| 143 |
| 144 // This notification is sent after a tab has been appended to the tab_strip. |
| 145 // The source is a Source<TabContentsWrapper> of the tab being added. There |
| 146 // are no details. |
| 147 NOTIFICATION_TAB_PARENTED, |
| 148 |
| 149 // This message is sent before a tab has been closed. The source is a |
| 150 // Source<NavigationController> with a pointer to the controller for the |
| 151 // closed tab. No details are expected. |
| 152 // |
| 153 // See also content::NOTIFICATION_WEB_CONTENTS_DESTROYED, which is sent when |
| 154 // the WebContents containing the NavigationController is destroyed. |
| 155 NOTIFICATION_TAB_CLOSING, |
| 156 |
138 // Stuff inside the tabs --------------------------------------------------- | 157 // Stuff inside the tabs --------------------------------------------------- |
139 | 158 |
140 // Sent when the bookmark bubble hides. The source is the profile, the | 159 // Sent when the bookmark bubble hides. The source is the profile, the |
141 // details unused. | 160 // details unused. |
142 NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN, | 161 NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN, |
143 | 162 |
144 // This notification is sent when the result of a find-in-page search is | 163 // This notification is sent when the result of a find-in-page search is |
145 // available with the browser process. The source is a Source<TabContents> | 164 // available with the browser process. The source is a Source<TabContents> |
146 // with a pointer to the TabContents. Details encompass a | 165 // with a pointer to the TabContents. Details encompass a |
147 // FindNotificationDetail object that tells whether the match was found or | 166 // FindNotificationDetail object that tells whether the match was found or |
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 // Currently only Content and Chrome define and use notifications. | 1075 // Currently only Content and Chrome define and use notifications. |
1057 // Custom notifications not belonging to Content and Chrome should start | 1076 // Custom notifications not belonging to Content and Chrome should start |
1058 // from here. | 1077 // from here. |
1059 NOTIFICATION_CHROME_END, | 1078 NOTIFICATION_CHROME_END, |
1060 }; | 1079 }; |
1061 | 1080 |
1062 } // namespace chrome | 1081 } // namespace chrome |
1063 | 1082 |
1064 | 1083 |
1065 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1084 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |