Chromium Code Reviews| 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 CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 201 // a Source<WebContents>. The details is a bool set to true if the new | 201 // a Source<WebContents>. The details is a bool set to true if the new |
| 202 // state is visible. | 202 // state is visible. |
| 203 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, | 203 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, |
| 204 | 204 |
| 205 // This notification is sent when a WebContents is being destroyed. Any | 205 // This notification is sent when a WebContents is being destroyed. Any |
| 206 // object holding a reference to a WebContents can listen to that | 206 // object holding a reference to a WebContents can listen to that |
| 207 // notification to properly reset the reference. The source is a | 207 // notification to properly reset the reference. The source is a |
| 208 // Source<WebContents>. | 208 // Source<WebContents>. |
| 209 NOTIFICATION_WEB_CONTENTS_DESTROYED, | 209 NOTIFICATION_WEB_CONTENTS_DESTROYED, |
| 210 | 210 |
| 211 // A RenderView will be created in a RenderViewHost for a WebContents. The | |
| 212 // source is the associated WebContents, and the details is the | |
| 213 // RenderViewHost pointer. | |
| 214 NOTIFICATION_WILL_CREATE_RENDER_VIEW, | |
|
scshunt
2012/08/12 01:42:45
This should probably be NOTIFICATION_WEB_CONTENTS_
scshunt
2012/08/17 17:30:28
Done.
| |
| 215 | |
| 216 // TODO(scshunt): Rename this notification as, with the addition of the | |
| 217 // previous one, this is now really confusing. | |
|
scshunt
2012/08/12 01:42:45
This TODO needs to be done or left in?
scshunt
2012/08/17 17:30:28
In retrospect it seems fine as is.
| |
| 211 // A RenderViewHost was created for a WebContents. The source is the | 218 // A RenderViewHost was created for a WebContents. The source is the |
| 212 // associated WebContents, and the details is the RenderViewHost | 219 // associated WebContents, and the details is the RenderViewHost |
| 213 // pointer. | 220 // pointer. |
| 214 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, | 221 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, |
| 215 | 222 |
| 216 // Notification than an interstitial has become associated with a tab. The | 223 // Notification than an interstitial has become associated with a tab. The |
| 217 // source is the WebContents, the details not used. | 224 // source is the WebContents, the details not used. |
| 218 NOTIFICATION_INTERSTITIAL_ATTACHED, | 225 NOTIFICATION_INTERSTITIAL_ATTACHED, |
| 219 | 226 |
| 220 // Notification than an interstitial has become detached from a tab. The | 227 // Notification than an interstitial has become detached from a tab. The |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 368 // of a temporary zoom level change, the details is an empty string. | 375 // of a temporary zoom level change, the details is an empty string. |
| 369 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 376 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 370 | 377 |
| 371 // Custom notifications used by the embedder should start from here. | 378 // Custom notifications used by the embedder should start from here. |
| 372 NOTIFICATION_CONTENT_END, | 379 NOTIFICATION_CONTENT_END, |
| 373 }; | 380 }; |
| 374 | 381 |
| 375 } // namespace content | 382 } // namespace content |
| 376 | 383 |
| 377 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 384 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |