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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // change. There are no details. | 166 // change. There are no details. |
167 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, | 167 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, |
168 | 168 |
169 // The user accepted or dismissed a SSL client authentication request. | 169 // The user accepted or dismissed a SSL client authentication request. |
170 // The source is a Source<SSLClientAuthHandler>. Details is a | 170 // The source is a Source<SSLClientAuthHandler>. Details is a |
171 // SSLClientAuthNotificationDetails which records specifies which | 171 // SSLClientAuthNotificationDetails which records specifies which |
172 // SSLCertRequestInfo the request was for and which X509Certificate was | 172 // SSLCertRequestInfo the request was for and which X509Certificate was |
173 // selected (if any). | 173 // selected (if any). |
174 NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED, | 174 NOTIFICATION_SSL_CLIENT_AUTH_CERT_SELECTED, |
175 | 175 |
176 // Notification that a view was removed from a view hierarchy. The source | |
177 // is the view, the details is the parent view. | |
178 NOTIFICATION_VIEW_REMOVED, | |
179 | |
180 // This message is sent when the last window considered to be an | |
181 // "application window" has been closed. Dependent/dialog/utility windows | |
182 // can use this as a way to know that they should also close. No source or | |
183 // details are passed. | |
184 NOTIFICATION_ALL_APPWINDOWS_CLOSED, | |
185 | |
186 #if defined(OS_MACOSX) | 176 #if defined(OS_MACOSX) |
187 // This message is sent when the application is made active (Mac OS X only | 177 // This message is sent when the application is made active (Mac OS X only |
188 // at present). No source or details are passed. | 178 // at present). No source or details are passed. |
189 NOTIFICATION_APP_ACTIVATED, | 179 NOTIFICATION_APP_ACTIVATED, |
190 #endif | 180 #endif |
191 | 181 |
192 // This message is sent when the application is terminating (the last | 182 // This message is sent when the application is terminating (the last |
193 // browser window has shutdown as part of an explicit user-initiated exit, | 183 // browser window has shutdown as part of an explicit user-initiated exit, |
194 // or the user closed the last browser window on Windows/Linux and there are | 184 // or the user closed the last browser window on Windows/Linux and there are |
195 // no BackgroundContents keeping the browser running). No source or details | 185 // no BackgroundContents keeping the browser running). No source or details |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 306 |
317 // Indicates that the render view host has received an accessibility tree | 307 // Indicates that the render view host has received an accessibility tree |
318 // update, either partial or full, from the render view. The source is the | 308 // update, either partial or full, from the render view. The source is the |
319 // RenderViewHost, the details are not used. | 309 // RenderViewHost, the details are not used. |
320 NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, | 310 NOTIFICATION_RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, |
321 | 311 |
322 // This is sent when a RenderWidgetHost is being destroyed. The source is | 312 // This is sent when a RenderWidgetHost is being destroyed. The source is |
323 // the RenderWidgetHost, the details are not used. | 313 // the RenderWidgetHost, the details are not used. |
324 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, | 314 NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, |
325 | 315 |
326 // Sent when the widget is about to paint. The source is the | |
327 // RenderWidgetHost, the details are not used. | |
328 NOTIFICATION_RENDER_WIDGET_HOST_WILL_PAINT, | |
329 | |
330 // Sent after the widget has painted. The source is the RenderWidgetHost, | 316 // Sent after the widget has painted. The source is the RenderWidgetHost, |
331 // the details are not used. | 317 // the details are not used. |
332 NOTIFICATION_RENDER_WIDGET_HOST_DID_PAINT, | 318 NOTIFICATION_RENDER_WIDGET_HOST_DID_PAINT, |
333 | 319 |
334 // This notifies the observer that a PaintAtSizeACK was received. The source | 320 // This notifies the observer that a PaintAtSizeACK was received. The source |
335 // is the RenderWidgetHost, the details are an instance of | 321 // is the RenderWidgetHost, the details are an instance of |
336 // RenderWidgetHost::PaintAtSizeAckDetails. | 322 // RenderWidgetHost::PaintAtSizeAckDetails. |
337 NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK, | 323 NOTIFICATION_RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK, |
338 | 324 |
339 // This notifies the observer that a HandleInputEventACK was received. The | 325 // This notifies the observer that a HandleInputEventACK was received. The |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 // 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. |
459 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 445 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
460 | 446 |
461 // Custom notifications used by the embedder should start from here. | 447 // Custom notifications used by the embedder should start from here. |
462 NOTIFICATION_CONTENT_END, | 448 NOTIFICATION_CONTENT_END, |
463 }; | 449 }; |
464 | 450 |
465 } // namespace content | 451 } // namespace content |
466 | 452 |
467 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ | 453 #endif // CONTENT_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |