| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // This notification is sent when a TabContents is being hidden, e.g. due | 258 // This notification is sent when a TabContents is being hidden, e.g. due |
| 259 // to switching away from this tab. The source is a Source<TabContents>. | 259 // to switching away from this tab. The source is a Source<TabContents>. |
| 260 NOTIFICATION_TAB_CONTENTS_HIDDEN, | 260 NOTIFICATION_TAB_CONTENTS_HIDDEN, |
| 261 | 261 |
| 262 // This notification is sent when a TabContents is being destroyed. Any | 262 // This notification is sent when a TabContents is being destroyed. Any |
| 263 // object holding a reference to a TabContents can listen to that | 263 // object holding a reference to a TabContents can listen to that |
| 264 // notification to properly reset the reference. The source is a | 264 // notification to properly reset the reference. The source is a |
| 265 // Source<TabContents>. | 265 // Source<TabContents>. |
| 266 NOTIFICATION_TAB_CONTENTS_DESTROYED, | 266 NOTIFICATION_TAB_CONTENTS_DESTROYED, |
| 267 | 267 |
| 268 // This notification is sent when a TabContentsDelegate is being |
| 269 // destroyed. The source is a Source<TabContentsDelegate>. |
| 270 // TODO(sky): Remove when we figure out http://crbug.com/107172. |
| 271 NOTIFICATION_TAB_CONTENTS_DELEGATE_DESTROYED, |
| 272 |
| 268 // A RenderViewHost was created for a TabContents. The source is the | 273 // A RenderViewHost was created for a TabContents. The source is the |
| 269 // associated TabContents, and the details is the RenderViewHost | 274 // associated TabContents, and the details is the RenderViewHost |
| 270 // pointer. | 275 // pointer. |
| 271 NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB, | 276 NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB, |
| 272 | 277 |
| 273 // Notification than an interstitial has become associated with a tab. The | 278 // Notification than an interstitial has become associated with a tab. The |
| 274 // source is the TabContents, the details not used. | 279 // source is the TabContents, the details not used. |
| 275 NOTIFICATION_INTERSTITIAL_ATTACHED, | 280 NOTIFICATION_INTERSTITIAL_ATTACHED, |
| 276 | 281 |
| 277 // Indicates that a RenderProcessHost was created and its handle is now | 282 // Indicates that a RenderProcessHost was created and its handle is now |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 // of a temporary zoom level change, the details is an empty string. | 427 // of a temporary zoom level change, the details is an empty string. |
| 423 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 428 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 424 | 429 |
| 425 // Custom notifications used by the embedder should start from here. | 430 // Custom notifications used by the embedder should start from here. |
| 426 NOTIFICATION_CONTENT_END, | 431 NOTIFICATION_CONTENT_END, |
| 427 }; | 432 }; |
| 428 | 433 |
| 429 } // namespace content | 434 } // namespace content |
| 430 | 435 |
| 431 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 436 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |