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