| 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 #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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 // a Source<WebContents>. The details is a bool set to true if the new | 216 // a Source<WebContents>. The details is a bool set to true if the new |
| 217 // state is visible. | 217 // state is visible. |
| 218 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, | 218 NOTIFICATION_WEB_CONTENTS_VISIBILITY_CHANGED, |
| 219 | 219 |
| 220 // This notification is sent when a WebContents is being destroyed. Any | 220 // This notification is sent when a WebContents is being destroyed. Any |
| 221 // object holding a reference to a WebContents can listen to that | 221 // object holding a reference to a WebContents can listen to that |
| 222 // notification to properly reset the reference. The source is a | 222 // notification to properly reset the reference. The source is a |
| 223 // Source<WebContents>. | 223 // Source<WebContents>. |
| 224 NOTIFICATION_WEB_CONTENTS_DESTROYED, | 224 NOTIFICATION_WEB_CONTENTS_DESTROYED, |
| 225 | 225 |
| 226 // A RenderView will be created in a RenderViewHost for a WebContents. The |
| 227 // source is the associated WebContents, and the details is the |
| 228 // RenderViewHost pointer. |
| 229 NOTIFICATION_WILL_CREATE_RENDER_VIEW, |
| 230 |
| 231 // TODO(scshunt): Rename this notification as, with the addition of the |
| 232 // previous one, this is now really confusing. |
| 226 // A RenderViewHost was created for a WebContents. The source is the | 233 // A RenderViewHost was created for a WebContents. The source is the |
| 227 // associated WebContents, and the details is the RenderViewHost | 234 // associated WebContents, and the details is the RenderViewHost |
| 228 // pointer. | 235 // pointer. |
| 229 NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB, | 236 NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB, |
| 230 | 237 |
| 231 // Notification than an interstitial has become associated with a tab. The | 238 // Notification than an interstitial has become associated with a tab. The |
| 232 // source is the WebContents, the details not used. | 239 // source is the WebContents, the details not used. |
| 233 NOTIFICATION_INTERSTITIAL_ATTACHED, | 240 NOTIFICATION_INTERSTITIAL_ATTACHED, |
| 234 | 241 |
| 235 // Notification than an interstitial has become detached from a tab. The | 242 // Notification than an interstitial has become detached from a tab. The |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // of a temporary zoom level change, the details is an empty string. | 390 // of a temporary zoom level change, the details is an empty string. |
| 384 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 391 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 385 | 392 |
| 386 // Custom notifications used by the embedder should start from here. | 393 // Custom notifications used by the embedder should start from here. |
| 387 NOTIFICATION_CONTENT_END, | 394 NOTIFICATION_CONTENT_END, |
| 388 }; | 395 }; |
| 389 | 396 |
| 390 } // namespace content | 397 } // namespace content |
| 391 | 398 |
| 392 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 399 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |