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. Note that the source will be NULL in some cases for testing, |
| 292 // when there is no RVHManager. |
| 293 RENDER_VIEW_HOST_CREATED_FOR_TAB, |
| 294 |
289 // Stuff inside the tabs --------------------------------------------------- | 295 // Stuff inside the tabs --------------------------------------------------- |
290 | 296 |
291 // This message is sent after a constrained window has been closed. The | 297 // 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 | 298 // source is a Source<ConstrainedWindow> with a pointer to the closed child |
293 // window. (The pointer isn't usable, except for identification.) No | 299 // window. (The pointer isn't usable, except for identification.) No |
294 // details are expected. | 300 // details are expected. |
295 CWINDOW_CLOSED, | 301 CWINDOW_CLOSED, |
296 | 302 |
297 // Indicates that a RenderProcessHost is destructing. The source will be the | 303 // Indicates that a RenderProcessHost is destructing. The source will be the |
298 // RenderProcessHost that corresponds to the process. | 304 // 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 | 325 // This is sent to notify that the RenderViewHost displayed in a |
320 // TabContents has changed. Source is the TabContents for which the change | 326 // TabContents has changed. Source is the TabContents for which the change |
321 // happened, details is the previous RenderViewHost (can be NULL when the | 327 // happened, details is the previous RenderViewHost (can be NULL when the |
322 // first RenderViewHost is set). | 328 // first RenderViewHost is set). |
323 RENDER_VIEW_HOST_CHANGED, | 329 RENDER_VIEW_HOST_CHANGED, |
324 | 330 |
325 // This is sent when a RenderWidgetHost is being destroyed. The source is | 331 // This is sent when a RenderWidgetHost is being destroyed. The source is |
326 // the RenderWidgetHost, the details are not used. | 332 // the RenderWidgetHost, the details are not used. |
327 RENDER_WIDGET_HOST_DESTROYED, | 333 RENDER_WIDGET_HOST_DESTROYED, |
328 | 334 |
| 335 // Indicates a RenderWidgetHost has been hidden or restored. The source is |
| 336 // the RWH whose visibility changed, the details is a bool set to true if |
| 337 // the new state is "visible." |
| 338 RENDER_WIDGET_VISIBILITY_CHANGED, |
| 339 |
329 // Notification from TabContents that we have received a response from the | 340 // Notification from TabContents that we have received a response from the |
330 // renderer after using the dom inspector. | 341 // renderer after using the dom inspector. |
331 DOM_INSPECT_ELEMENT_RESPONSE, | 342 DOM_INSPECT_ELEMENT_RESPONSE, |
332 | 343 |
333 // Notification from TabContents that we have received a response from the | 344 // Notification from TabContents that we have received a response from the |
334 // renderer in response to a dom automation controller action. | 345 // renderer in response to a dom automation controller action. |
335 DOM_OPERATION_RESPONSE, | 346 DOM_OPERATION_RESPONSE, |
336 | 347 |
337 // Sent when the bookmark bubble hides. The source is the profile, the | 348 // Sent when the bookmark bubble hides. The source is the profile, the |
338 // details unused. | 349 // details unused. |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 }; | 611 }; |
601 | 612 |
602 inline bool operator==(NotificationType::Type a, NotificationType b) { | 613 inline bool operator==(NotificationType::Type a, NotificationType b) { |
603 return a == b.value; | 614 return a == b.value; |
604 } | 615 } |
605 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 616 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
606 return a != b.value; | 617 return a != b.value; |
607 } | 618 } |
608 | 619 |
609 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 620 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |