| 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 | 7 |
| 8 #include "content/public/browser/notification_types.h" | 8 #include "content/public/browser/notification_types.h" |
| 9 | 9 |
| 10 namespace chrome { | 10 namespace chrome { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 // This notification is sent after a tab has been appended to the tab_strip. | 168 // This notification is sent after a tab has been appended to the tab_strip. |
| 169 // The source is a Source<TabContents> of the tab being added. There | 169 // The source is a Source<TabContents> of the tab being added. There |
| 170 // are no details. | 170 // are no details. |
| 171 NOTIFICATION_TAB_PARENTED, | 171 NOTIFICATION_TAB_PARENTED, |
| 172 | 172 |
| 173 // This message is sent before a tab has been closed. The source is a | 173 // This message is sent before a tab has been closed. The source is a |
| 174 // Source<NavigationController> with a pointer to the controller for the | 174 // Source<NavigationController> with a pointer to the controller for the |
| 175 // closed tab. No details are expected. | 175 // closed tab. No details are expected. |
| 176 // | 176 // |
| 177 // See also NOTIFICATION_TAB_CONTENTS_DESTROYED, which is sent when the | 177 // See also NOTIFICATION_TAB_CONTENTS_DESTROYED, which is sent when the |
| 178 // TabContents is destroyed, and | 178 // TabContents is destroyed, and content::NOTIFICATION_WEB_CONTENTS_DESTROYED, |
| 179 // content::NOTIFICATION_WEB_CONTENTS_DESTROYED, which is sent when the | 179 // which is sent when the WebContents containing the NavigationController is |
| 180 // WebContents containing the NavigationController is destroyed. | 180 // destroyed. |
| 181 NOTIFICATION_TAB_CLOSING, | 181 NOTIFICATION_TAB_CLOSING, |
| 182 | 182 |
| 183 // Sent when a TabContents is being destroyed. At this point it's safe | 183 // Sent when a TabContents is being destroyed. At this point it's safe to |
| 184 // to call TabContents member functions, which is not true of the | 184 // call TabContents member functions, which is not true of the similar |
| 185 // similar content::NOTIFICATION_WEB_CONTENTS_DESTROYED that fires later | 185 // content::NOTIFICATION_WEB_CONTENTS_DESTROYED that fires later during |
| 186 // during teardown. The source is a Source<TabContents>. There are no | 186 // teardown. The source is a Source<TabContents>. There are no details. |
| 187 // details. | |
| 188 NOTIFICATION_TAB_CONTENTS_DESTROYED, | 187 NOTIFICATION_TAB_CONTENTS_DESTROYED, |
| 189 | 188 |
| 190 // Stuff inside the tabs --------------------------------------------------- | 189 // Stuff inside the tabs --------------------------------------------------- |
| 191 | 190 |
| 192 // Sent when the bookmark bubble hides. The source is the profile, the | 191 // Sent when the bookmark bubble hides. The source is the profile, the |
| 193 // details unused. | 192 // details unused. |
| 194 NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN, | 193 NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN, |
| 195 | 194 |
| 196 // This notification is sent when the result of a find-in-page search is | 195 // This notification is sent when the result of a find-in-page search is |
| 197 // available with the browser process. The source is a Source<WebContents>. | 196 // available with the browser process. The source is a Source<WebContents>. |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 // Currently only Content and Chrome define and use notifications. | 1251 // Currently only Content and Chrome define and use notifications. |
| 1253 // Custom notifications not belonging to Content and Chrome should start | 1252 // Custom notifications not belonging to Content and Chrome should start |
| 1254 // from here. | 1253 // from here. |
| 1255 NOTIFICATION_CHROME_END, | 1254 NOTIFICATION_CHROME_END, |
| 1256 }; | 1255 }; |
| 1257 | 1256 |
| 1258 } // namespace chrome | 1257 } // namespace chrome |
| 1259 | 1258 |
| 1260 | 1259 |
| 1261 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1260 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |