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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 // time. The source will be the RenderWidgetHost that corresponds to the | 424 // time. The source will be the RenderWidgetHost that corresponds to the |
425 // hung view, and no details are expected. | 425 // hung view, and no details are expected. |
426 RENDERER_PROCESS_HANG, | 426 RENDERER_PROCESS_HANG, |
427 | 427 |
428 // This is sent to notify that the RenderViewHost displayed in a | 428 // This is sent to notify that the RenderViewHost displayed in a |
429 // TabContents has changed. Source is the TabContents for which the change | 429 // TabContents has changed. Source is the TabContents for which the change |
430 // happened, details is the previous RenderViewHost (can be NULL when the | 430 // happened, details is the previous RenderViewHost (can be NULL when the |
431 // first RenderViewHost is set). | 431 // first RenderViewHost is set). |
432 RENDER_VIEW_HOST_CHANGED, | 432 RENDER_VIEW_HOST_CHANGED, |
433 | 433 |
434 // Indicates that the render view host has received a new accessibility tree | 434 // Indicates that the render view host has received an accessibility tree |
435 // from the render view. The source is the RenderViewHost, the details | 435 // update, either partial or full, from the render view. The source is the |
436 // are not used. | 436 // RenderViewHost, the details are not used. |
437 RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, | 437 RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, |
438 | 438 |
439 // This is sent when a RenderWidgetHost is being destroyed. The source is | 439 // This is sent when a RenderWidgetHost is being destroyed. The source is |
440 // the RenderWidgetHost, the details are not used. | 440 // the RenderWidgetHost, the details are not used. |
441 RENDER_WIDGET_HOST_DESTROYED, | 441 RENDER_WIDGET_HOST_DESTROYED, |
442 | 442 |
443 // Sent from ~RenderViewHost. The source is the TabContents. | 443 // Sent from ~RenderViewHost. The source is the TabContents. |
444 RENDER_VIEW_HOST_DELETED, | 444 RENDER_VIEW_HOST_DELETED, |
445 | 445 |
446 // Sent from RenderViewHost::ClosePage. The hosted RenderView has | 446 // Sent from RenderViewHost::ClosePage. The hosted RenderView has |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1164 }; | 1164 }; |
1165 | 1165 |
1166 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1166 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1167 return a == b.value; | 1167 return a == b.value; |
1168 } | 1168 } |
1169 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1169 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1170 return a != b.value; | 1170 return a != b.value; |
1171 } | 1171 } |
1172 | 1172 |
1173 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1173 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |