Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 | 139 |
| 140 // The SSL state of the browser has changed in some internal way. For | 140 // The SSL state of the browser has changed in some internal way. For |
| 141 // example, the user might have explicitly allowed some broken certificate | 141 // example, the user might have explicitly allowed some broken certificate |
| 142 // or a secure origin might have included some insecure content. Listen to | 142 // or a secure origin might have included some insecure content. Listen to |
| 143 // this notifiation if you need to keep track of our internal SSL state. | 143 // this notifiation if you need to keep track of our internal SSL state. |
| 144 // | 144 // |
| 145 // The source will be the browser context. The details will be the navigation | 145 // The source will be the browser context. The details will be the navigation |
| 146 // controller associated with the state change. | 146 // controller associated with the state change. |
| 147 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, | 147 NOTIFICATION_SSL_INTERNAL_STATE_CHANGED, |
| 148 | 148 |
| 149 // Application-wide ---------------------------------------------------------- | |
| 150 | |
| 149 #if defined(OS_MACOSX) | 151 #if defined(OS_MACOSX) |
| 150 // This message is sent when the application is made active (Mac OS X only | 152 // This message is sent when the application is made active (Mac OS X only |
| 151 // at present). No source or details are passed. | 153 // at present). No source or details are passed. |
| 152 NOTIFICATION_APP_ACTIVATED, | 154 NOTIFICATION_APP_ACTIVATED, |
| 153 #endif | 155 #endif |
| 154 | 156 |
| 155 // This message is sent when the application is terminating (the last | 157 // This message is sent when the application is terminating (the last |
| 156 // browser window has shutdown as part of an explicit user-initiated exit, | 158 // browser window has shutdown as part of an explicit user-initiated exit, |
| 157 // or the user closed the last browser window on Windows/Linux and there are | 159 // or the user closed the last browser window on Windows/Linux and there are |
| 158 // no BackgroundContents keeping the browser running). No source or details | 160 // no BackgroundContents keeping the browser running). No source or details |
| 159 // are passed. | 161 // are passed. |
| 160 NOTIFICATION_APP_TERMINATING, | 162 NOTIFICATION_APP_TERMINATING, |
| 161 | 163 |
| 162 #if defined(OS_MACOSX) | 164 // Devtools ------------------------------------------------------------------ |
| 163 // This notification is sent when the app has no key window, such as when | |
| 164 // all windows are closed but the app is still active. No source or details | |
| 165 // are provided. | |
| 166 NOTIFICATION_NO_KEY_WINDOW, | |
| 167 #endif | |
| 168 | |
| 169 // This is sent when the user has chosen to exit the app, but before any | |
| 170 // browsers have closed. This is sent if the user chooses to exit | |
| 171 // (via exit menu item or keyboard shortcut) or to restart the process | |
| 172 // (such as in flags page), not if Chrome exists by some other means | |
| 173 // (such as the user closing the last window). Note that receiving this | |
| 174 // notification does not necessarily mean the process will exit | |
| 175 // because the shutdown process can be cancelled by unload handler. | |
| 176 // Use APP_TERMINATING for such needs. | |
| 177 // The source and details are unspecified. | |
| 178 NOTIFICATION_CLOSE_ALL_BROWSERS_REQUEST, | |
| 179 | 165 |
| 180 // Indicates that a devtools window is opening. The source is the | 166 // Indicates that a devtools window is opening. The source is the |
| 181 // BrowserContext* and the details is the inspected RenderViewHost*. | 167 // BrowserContext* and the details is the inspected RenderViewHost*. |
| 182 NOTIFICATION_DEVTOOLS_WINDOW_OPENING, | 168 NOTIFICATION_DEVTOOLS_WINDOW_OPENING, |
| 183 | 169 |
| 184 // Indicates that a devtools window is closing. The source is the | 170 // Indicates that a devtools window is closing. The source is the |
| 185 // BrowserContext* and the details is the inspected RenderViewHost*. | 171 // BrowserContext* and the details is the inspected RenderViewHost*. |
| 186 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, | 172 NOTIFICATION_DEVTOOLS_WINDOW_CLOSING, |
| 187 | 173 |
| 188 // WebContents --------------------------------------------------------------- | 174 // WebContents --------------------------------------------------------------- |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 218 | 204 |
| 219 // This notification is sent when a WebContents is being destroyed. Any | 205 // This notification is sent when a WebContents is being destroyed. Any |
| 220 // object holding a reference to a WebContents can listen to that | 206 // object holding a reference to a WebContents can listen to that |
| 221 // notification to properly reset the reference. The source is a | 207 // notification to properly reset the reference. The source is a |
| 222 // Source<WebContents>. | 208 // Source<WebContents>. |
| 223 NOTIFICATION_WEB_CONTENTS_DESTROYED, | 209 NOTIFICATION_WEB_CONTENTS_DESTROYED, |
| 224 | 210 |
| 225 // A RenderViewHost was created for a WebContents. The source is the | 211 // A RenderViewHost was created for a WebContents. The source is the |
| 226 // associated WebContents, and the details is the RenderViewHost | 212 // associated WebContents, and the details is the RenderViewHost |
| 227 // pointer. | 213 // pointer. |
| 228 NOTIFICATION_RENDER_VIEW_HOST_CREATED_FOR_TAB, | 214 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, |
|
gavinp
2012/07/18 15:35:51
Drive by nit: this isn't quite "Move notifications
| |
| 229 | 215 |
| 230 // Notification than an interstitial has become associated with a tab. The | 216 // Notification than an interstitial has become associated with a tab. The |
| 231 // source is the WebContents, the details not used. | 217 // source is the WebContents, the details not used. |
| 232 NOTIFICATION_INTERSTITIAL_ATTACHED, | 218 NOTIFICATION_INTERSTITIAL_ATTACHED, |
| 233 | 219 |
| 234 // Notification than an interstitial has become detached from a tab. The | 220 // Notification than an interstitial has become detached from a tab. The |
| 235 // source is the WebContents, the details not used. | 221 // source is the WebContents, the details not used. |
| 236 NOTIFICATION_INTERSTITIAL_DETACHED, | 222 NOTIFICATION_INTERSTITIAL_DETACHED, |
| 237 | 223 |
| 238 // Indicates that a RenderProcessHost was created and its handle is now | 224 // Indicates that a RenderProcessHost was created and its handle is now |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 325 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The | 311 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The |
| 326 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was | 312 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was |
| 327 // invoked on. The details are a std::pair<int, Value*> with the int giving | 313 // invoked on. The details are a std::pair<int, Value*> with the int giving |
| 328 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the | 314 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the |
| 329 // Value the results of the javascript expression. The Value is owned by | 315 // Value the results of the javascript expression. The Value is owned by |
| 330 // RenderViewHost and may be a Null Value. | 316 // RenderViewHost and may be a Null Value. |
| 331 NOTIFICATION_EXECUTE_JAVASCRIPT_RESULT, | 317 NOTIFICATION_EXECUTE_JAVASCRIPT_RESULT, |
| 332 | 318 |
| 333 // Notification from WebContents that we have received a response from the | 319 // Notification from WebContents that we have received a response from the |
| 334 // renderer in response to a dom automation controller action. The source is | 320 // renderer in response to a dom automation controller action. The source is |
| 335 // the RenderViewHost, and hte details is a DomOperationNotificationDetails. | 321 // the RenderViewHost, and the details is a DomOperationNotificationDetails. |
| 336 NOTIFICATION_DOM_OPERATION_RESPONSE, | 322 NOTIFICATION_DOM_OPERATION_RESPONSE, |
| 337 | 323 |
| 338 // Child Processes --------------------------------------------------------- | 324 // Child Processes --------------------------------------------------------- |
| 339 | 325 |
| 340 // This notification is sent when a child process host has connected to a | 326 // This notification is sent when a child process host has connected to a |
| 341 // child process. There is no usable source, since it is sent from an | 327 // child process. There is no usable source, since it is sent from an |
| 342 // ephemeral task; register for AllSources() to receive this notification. | 328 // ephemeral task; register for AllSources() to receive this notification. |
| 343 // The details are in a Details<ChildProcessData>. | 329 // The details are in a Details<ChildProcessData>. |
| 344 NOTIFICATION_CHILD_PROCESS_HOST_CONNECTED, | 330 NOTIFICATION_CHILD_PROCESS_HOST_CONNECTED, |
| 345 | 331 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 382 // of a temporary zoom level change, the details is an empty string. | 368 // of a temporary zoom level change, the details is an empty string. |
| 383 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 369 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
| 384 | 370 |
| 385 // Custom notifications used by the embedder should start from here. | 371 // Custom notifications used by the embedder should start from here. |
| 386 NOTIFICATION_CONTENT_END, | 372 NOTIFICATION_CONTENT_END, |
| 387 }; | 373 }; |
| 388 | 374 |
| 389 } // namespace content | 375 } // namespace content |
| 390 | 376 |
| 391 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 377 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
| OLD | NEW |