| 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_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CONTENT_COMMON_NOTIFICATION_TYPE_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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 // to switching away from this tab. The source is a Source<TabContents>. | 392 // to switching away from this tab. The source is a Source<TabContents>. |
| 393 TAB_CONTENTS_HIDDEN, | 393 TAB_CONTENTS_HIDDEN, |
| 394 | 394 |
| 395 // This notification is sent when a TabContents is being destroyed. Any | 395 // This notification is sent when a TabContents is being destroyed. Any |
| 396 // object holding a reference to a TabContents can listen to that | 396 // object holding a reference to a TabContents can listen to that |
| 397 // notification to properly reset the reference. The source is a | 397 // notification to properly reset the reference. The source is a |
| 398 // Source<TabContents>. | 398 // Source<TabContents>. |
| 399 TAB_CONTENTS_DESTROYED, | 399 TAB_CONTENTS_DESTROYED, |
| 400 | 400 |
| 401 // This notification is sent when TabContents::SetAppExtension is invoked. | 401 // This notification is sent when TabContents::SetAppExtension is invoked. |
| 402 // The source is the TabContents SetAppExtension was invoked on. | 402 // The source is the ExtensionTabHelper SetAppExtension was invoked on. |
| 403 TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, | 403 TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, |
| 404 | 404 |
| 405 // A RenderViewHost was created for a TabContents. The source is the | 405 // A RenderViewHost was created for a TabContents. The source is the |
| 406 // associated TabContents, and the details is the RenderViewHost | 406 // associated TabContents, and the details is the RenderViewHost |
| 407 // pointer. | 407 // pointer. |
| 408 RENDER_VIEW_HOST_CREATED_FOR_TAB, | 408 RENDER_VIEW_HOST_CREATED_FOR_TAB, |
| 409 | 409 |
| 410 // Notification than an interstitial has become associated with a tab. The | 410 // Notification than an interstitial has become associated with a tab. The |
| 411 // source is the TabContents, the details not used. | 411 // source is the TabContents, the details not used. |
| 412 INTERSTITIAL_ATTACHED, | 412 INTERSTITIAL_ATTACHED, |
| (...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1358 }; | 1358 }; |
| 1359 | 1359 |
| 1360 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1360 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1361 return a == b.value; | 1361 return a == b.value; |
| 1362 } | 1362 } |
| 1363 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1363 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1364 return a != b.value; | 1364 return a != b.value; |
| 1365 } | 1365 } |
| 1366 | 1366 |
| 1367 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1367 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |