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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // This notifies the observer that the drag operation ack in a drag and | 362 // This notifies the observer that the drag operation ack in a drag and |
363 // drop operation was received. The source is the RenderViewHost. | 363 // drop operation was received. The source is the RenderViewHost. |
364 // Note: Used only in testing. | 364 // Note: Used only in testing. |
365 NOTIFICATION_RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK, | 365 NOTIFICATION_RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK, |
366 | 366 |
367 // Indicates a RenderWidgetHost has been hidden or restored. The source is | 367 // Indicates a RenderWidgetHost has been hidden or restored. The source is |
368 // the RWH whose visibility changed, the details is a bool set to true if | 368 // the RWH whose visibility changed, the details is a bool set to true if |
369 // the new state is "visible." | 369 // the new state is "visible." |
370 NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, | 370 NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, |
371 | 371 |
| 372 // Sent from ~SiteInstance. The source is the SiteInstance, and the details |
| 373 // are unused. |
| 374 NOTIFICATION_SITE_INSTANCE_DELETED, |
| 375 |
372 // The focused element inside a page has changed. The source is the | 376 // The focused element inside a page has changed. The source is the |
373 // TabContents containing the render view host for the page. The details is | 377 // TabContents containing the render view host for the page. The details is |
374 // a Details<const bool> that indicates whether or not an editable node was | 378 // a Details<const bool> that indicates whether or not an editable node was |
375 // focused. | 379 // focused. |
376 NOTIFICATION_FOCUS_CHANGED_IN_PAGE, | 380 NOTIFICATION_FOCUS_CHANGED_IN_PAGE, |
377 | 381 |
378 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The | 382 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The |
379 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was | 383 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was |
380 // invoked on. The details are a std::pair<int, Value*> with the int giving | 384 // invoked on. The details are a std::pair<int, Value*> with the int giving |
381 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the | 385 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 // of a temporary zoom level change, the details is an empty string. | 444 // of a temporary zoom level change, the details is an empty string. |
441 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 445 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
442 | 446 |
443 // Custom notifications used by the embedder should start from here. | 447 // Custom notifications used by the embedder should start from here. |
444 NOTIFICATION_CONTENT_END, | 448 NOTIFICATION_CONTENT_END, |
445 }; | 449 }; |
446 | 450 |
447 } // namespace content | 451 } // namespace content |
448 | 452 |
449 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 453 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |