OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
8 // This file describes various types used to describe and filter notifications | 8 // This file describes various types used to describe and filter notifications |
9 // that pass through the NotificationService. | 9 // that pass through the NotificationService. |
10 // | 10 // |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // This notification is sent when a TabContents is being hidden, e.g. due | 279 // This notification is sent when a TabContents is being hidden, e.g. due |
280 // to switching away from this tab. The source is a Source<TabContents>. | 280 // to switching away from this tab. The source is a Source<TabContents>. |
281 TAB_CONTENTS_HIDDEN, | 281 TAB_CONTENTS_HIDDEN, |
282 | 282 |
283 // This notification is sent when a TabContents is being destroyed. Any | 283 // This notification is sent when a TabContents is being destroyed. Any |
284 // object holding a reference to a TabContents can listen to that | 284 // object holding a reference to a TabContents can listen to that |
285 // notification to properly reset the reference. The source is a | 285 // notification to properly reset the reference. The source is a |
286 // Source<TabContents>. | 286 // Source<TabContents>. |
287 TAB_CONTENTS_DESTROYED, | 287 TAB_CONTENTS_DESTROYED, |
288 | 288 |
| 289 // A RenderViewHost was created for a TabContents. The source is the |
| 290 // RenderViewHostManager who owns it, and the details is the RenderViewHost |
| 291 // pointer. |
| 292 RENDER_VIEW_HOST_CREATED_FOR_TAB, |
| 293 |
289 // Stuff inside the tabs --------------------------------------------------- | 294 // Stuff inside the tabs --------------------------------------------------- |
290 | 295 |
291 // This message is sent after a constrained window has been closed. The | 296 // This message is sent after a constrained window has been closed. The |
292 // source is a Source<ConstrainedWindow> with a pointer to the closed child | 297 // source is a Source<ConstrainedWindow> with a pointer to the closed child |
293 // window. (The pointer isn't usable, except for identification.) No | 298 // window. (The pointer isn't usable, except for identification.) No |
294 // details are expected. | 299 // details are expected. |
295 CWINDOW_CLOSED, | 300 CWINDOW_CLOSED, |
296 | 301 |
297 // Indicates that a RenderProcessHost is destructing. The source will be the | 302 // Indicates that a RenderProcessHost is destructing. The source will be the |
298 // RenderProcessHost that corresponds to the process. | 303 // RenderProcessHost that corresponds to the process. |
(...skipping 20 matching lines...) Expand all Loading... |
319 // This is sent to notify that the RenderViewHost displayed in a | 324 // This is sent to notify that the RenderViewHost displayed in a |
320 // TabContents has changed. Source is the TabContents for which the change | 325 // TabContents has changed. Source is the TabContents for which the change |
321 // happened, details is the previous RenderViewHost (can be NULL when the | 326 // happened, details is the previous RenderViewHost (can be NULL when the |
322 // first RenderViewHost is set). | 327 // first RenderViewHost is set). |
323 RENDER_VIEW_HOST_CHANGED, | 328 RENDER_VIEW_HOST_CHANGED, |
324 | 329 |
325 // This is sent when a RenderWidgetHost is being destroyed. The source is | 330 // This is sent when a RenderWidgetHost is being destroyed. The source is |
326 // the RenderWidgetHost, the details are not used. | 331 // the RenderWidgetHost, the details are not used. |
327 RENDER_WIDGET_HOST_DESTROYED, | 332 RENDER_WIDGET_HOST_DESTROYED, |
328 | 333 |
| 334 // Indicates a RenderWidgetHost has been hidden or restored. The source is |
| 335 // the RWH whose visibility changed, the details is a bool set to true if |
| 336 // the new state is "visible." |
| 337 RENDER_WIDGET_VISIBILITY_CHANGED, |
| 338 |
329 // Notification from TabContents that we have received a response from the | 339 // Notification from TabContents that we have received a response from the |
330 // renderer after using the dom inspector. | 340 // renderer after using the dom inspector. |
331 DOM_INSPECT_ELEMENT_RESPONSE, | 341 DOM_INSPECT_ELEMENT_RESPONSE, |
332 | 342 |
333 // Notification from TabContents that we have received a response from the | 343 // Notification from TabContents that we have received a response from the |
334 // renderer in response to a dom automation controller action. | 344 // renderer in response to a dom automation controller action. |
335 DOM_OPERATION_RESPONSE, | 345 DOM_OPERATION_RESPONSE, |
336 | 346 |
337 // Sent when the bookmark bubble hides. The source is the profile, the | 347 // Sent when the bookmark bubble hides. The source is the profile, the |
338 // details unused. | 348 // details unused. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 }; | 602 }; |
593 | 603 |
594 inline bool operator==(NotificationType::Type a, NotificationType b) { | 604 inline bool operator==(NotificationType::Type a, NotificationType b) { |
595 return a == b.value; | 605 return a == b.value; |
596 } | 606 } |
597 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 607 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
598 return a != b.value; | 608 return a != b.value; |
599 } | 609 } |
600 | 610 |
601 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 611 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |