| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_NOTIFICATION_TYPE_H_ | 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| 6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ | 6 #define CHROME_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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 447 |
| 448 // Indicates that the render view host has received an accessibility tree | 448 // Indicates that the render view host has received an accessibility tree |
| 449 // update, either partial or full, from the render view. The source is the | 449 // update, either partial or full, from the render view. The source is the |
| 450 // RenderViewHost, the details are not used. | 450 // RenderViewHost, the details are not used. |
| 451 RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, | 451 RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, |
| 452 | 452 |
| 453 // This is sent when a RenderWidgetHost is being destroyed. The source is | 453 // This is sent when a RenderWidgetHost is being destroyed. The source is |
| 454 // the RenderWidgetHost, the details are not used. | 454 // the RenderWidgetHost, the details are not used. |
| 455 RENDER_WIDGET_HOST_DESTROYED, | 455 RENDER_WIDGET_HOST_DESTROYED, |
| 456 | 456 |
| 457 // Sent when the widget is about to paint. The source is the |
| 458 // RenderWidgetHost, the details are not used. |
| 459 RENDER_WIDGET_HOST_WILL_PAINT, |
| 460 |
| 461 // Sent after the widget has painted. The source is the RenderWidgetHost, |
| 462 // the details are not used. |
| 463 RENDER_WIDGET_HOST_DID_PAINT, |
| 464 |
| 465 // Indicates the RenderWidgetHost is about to destroy the backing store. The |
| 466 // backing store will still be valid when this call is made. The source is |
| 467 // the RenderWidgetHost, the details is the BackingStore. |
| 468 RENDER_WIDGET_HOST_WILL_DESTROY_BACKING_STORE, |
| 469 |
| 470 // Indicates that the RenderWidgetHost just updated the backing store. The |
| 471 // source is the RenderWidgetHost, the details are not used. |
| 472 RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE, |
| 473 |
| 474 // This notifies the observer that a PaintAtSizeACK was received. The source |
| 475 // is the RenderWidgetHost, the details are an instance of |
| 476 // RenderWidgetHost::PaintAtSizeAckDetails. |
| 477 RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK, |
| 478 |
| 457 // Sent from ~RenderViewHost. The source is the TabContents. | 479 // Sent from ~RenderViewHost. The source is the TabContents. |
| 458 RENDER_VIEW_HOST_DELETED, | 480 RENDER_VIEW_HOST_DELETED, |
| 459 | 481 |
| 460 // Sent from RenderViewHost::ClosePage. The hosted RenderView has | 482 // Sent from RenderViewHost::ClosePage. The hosted RenderView has |
| 461 // processed the onbeforeunload handler and is about to be sent a | 483 // processed the onbeforeunload handler and is about to be sent a |
| 462 // ViewMsg_ClosePage message to complete the tear-down process. The source | 484 // ViewMsg_ClosePage message to complete the tear-down process. The source |
| 463 // is the RenderViewHost sending the message, and no details are provided. | 485 // is the RenderViewHost sending the message, and no details are provided. |
| 464 // Note: This message is not sent in response to RenderView closure | 486 // Note: This message is not sent in response to RenderView closure |
| 465 // initiated by window.close(). | 487 // initiated by window.close(). |
| 466 RENDER_VIEW_HOST_WILL_CLOSE_RENDER_VIEW, | 488 RENDER_VIEW_HOST_WILL_CLOSE_RENDER_VIEW, |
| (...skipping 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 }; | 1362 }; |
| 1341 | 1363 |
| 1342 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1364 inline bool operator==(NotificationType::Type a, NotificationType b) { |
| 1343 return a == b.value; | 1365 return a == b.value; |
| 1344 } | 1366 } |
| 1345 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1367 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
| 1346 return a != b.value; | 1368 return a != b.value; |
| 1347 } | 1369 } |
| 1348 | 1370 |
| 1349 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1371 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
| OLD | NEW |