| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 RENDER_VIEW_HOST_DELETED, | 474 RENDER_VIEW_HOST_DELETED, |
| 475 | 475 |
| 476 // Sent from RenderViewHost::ClosePage. The hosted RenderView has | 476 // Sent from RenderViewHost::ClosePage. The hosted RenderView has |
| 477 // processed the onbeforeunload handler and is about to be sent a | 477 // processed the onbeforeunload handler and is about to be sent a |
| 478 // ViewMsg_ClosePage message to complete the tear-down process. The source | 478 // ViewMsg_ClosePage message to complete the tear-down process. The source |
| 479 // is the RenderViewHost sending the message, and no details are provided. | 479 // is the RenderViewHost sending the message, and no details are provided. |
| 480 // Note: This message is not sent in response to RenderView closure | 480 // Note: This message is not sent in response to RenderView closure |
| 481 // initiated by window.close(). | 481 // initiated by window.close(). |
| 482 RENDER_VIEW_HOST_WILL_CLOSE_RENDER_VIEW, | 482 RENDER_VIEW_HOST_WILL_CLOSE_RENDER_VIEW, |
| 483 | 483 |
| 484 // This notifies the observer that the drag operation ack in a drag and |
| 485 // drop operation was received. The source is the RenderViewHost. |
| 486 // Note: Used only in testing. |
| 487 RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK, |
| 488 |
| 484 // Indicates a RenderWidgetHost has been hidden or restored. The source is | 489 // Indicates a RenderWidgetHost has been hidden or restored. The source is |
| 485 // the RWH whose visibility changed, the details is a bool set to true if | 490 // the RWH whose visibility changed, the details is a bool set to true if |
| 486 // the new state is "visible." | 491 // the new state is "visible." |
| 487 RENDER_WIDGET_VISIBILITY_CHANGED, | 492 RENDER_WIDGET_VISIBILITY_CHANGED, |
| 488 | 493 |
| 489 // Notification from TabContents that we have received a response from the | 494 // Notification from TabContents that we have received a response from the |
| 490 // renderer in response to a dom automation controller action. | 495 // renderer in response to a dom automation controller action. |
| 491 DOM_OPERATION_RESPONSE, | 496 DOM_OPERATION_RESPONSE, |
| 492 | 497 |
| 493 // Sent when the bookmark bubble hides. The source is the profile, the | 498 // Sent when the bookmark bubble hides. The source is the profile, the |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 }; | 1349 }; |
| 1345 | 1350 |
| 1346 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1351 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1347 return a == b.value; | 1352 return a == b.value; |
| 1348 } | 1353 } |
| 1349 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1354 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1350 return a != b.value; | 1355 return a != b.value; |
| 1351 } | 1356 } |
| 1352 | 1357 |
| 1353 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 1358 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |