OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // are Details<std::string> and the source is Source<RenderViewHost>. | 212 // are Details<std::string> and the source is Source<RenderViewHost>. |
213 TAB_LANGUAGE_DETERMINED, | 213 TAB_LANGUAGE_DETERMINED, |
214 | 214 |
215 // The user has changed the browser theme. | 215 // The user has changed the browser theme. |
216 BROWSER_THEME_CHANGED, | 216 BROWSER_THEME_CHANGED, |
217 | 217 |
218 // Fired when the active window changes. This is currently only used on | 218 // Fired when the active window changes. This is currently only used on |
219 // Linux. | 219 // Linux. |
220 ACTIVE_WINDOW_CHANGED, | 220 ACTIVE_WINDOW_CHANGED, |
221 | 221 |
| 222 // Sent when the renderer returns focus to the browser, as part of focus |
| 223 // traversal. The source is the browser, there are no details. |
| 224 FOCUS_RETURNED_TO_BROWSER, |
| 225 |
222 // Application-modal dialogs ----------------------------------------------- | 226 // Application-modal dialogs ----------------------------------------------- |
223 | 227 |
224 // Sent after an application-modal dialog has been shown. The source | 228 // Sent after an application-modal dialog has been shown. The source |
225 // is the dialog. | 229 // is the dialog. |
226 APP_MODAL_DIALOG_SHOWN, | 230 APP_MODAL_DIALOG_SHOWN, |
227 | 231 |
228 // Sent after an application-modal dialog has been closed. The source | 232 // Sent after an application-modal dialog has been closed. The source |
229 // is the dialog. | 233 // is the dialog. |
230 APP_MODAL_DIALOG_CLOSED, | 234 APP_MODAL_DIALOG_CLOSED, |
231 | 235 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // object holding a reference to a TabContents can listen to that | 318 // object holding a reference to a TabContents can listen to that |
315 // notification to properly reset the reference. The source is a | 319 // notification to properly reset the reference. The source is a |
316 // Source<TabContents>. | 320 // Source<TabContents>. |
317 TAB_CONTENTS_DESTROYED, | 321 TAB_CONTENTS_DESTROYED, |
318 | 322 |
319 // A RenderViewHost was created for a TabContents. The source is the | 323 // A RenderViewHost was created for a TabContents. The source is the |
320 // associated TabContents, and the details is the RenderViewHost | 324 // associated TabContents, and the details is the RenderViewHost |
321 // pointer. | 325 // pointer. |
322 RENDER_VIEW_HOST_CREATED_FOR_TAB, | 326 RENDER_VIEW_HOST_CREATED_FOR_TAB, |
323 | 327 |
324 | |
325 // Stuff inside the tabs --------------------------------------------------- | 328 // Stuff inside the tabs --------------------------------------------------- |
326 | 329 |
327 // This message is sent after a constrained window has been closed. The | 330 // This message is sent after a constrained window has been closed. The |
328 // source is a Source<ConstrainedWindow> with a pointer to the closed child | 331 // source is a Source<ConstrainedWindow> with a pointer to the closed child |
329 // window. (The pointer isn't usable, except for identification.) No | 332 // window. (The pointer isn't usable, except for identification.) No |
330 // details are expected. | 333 // details are expected. |
331 CWINDOW_CLOSED, | 334 CWINDOW_CLOSED, |
332 | 335 |
333 // Indicates that a RenderProcessHost is destructing. The source will be the | 336 // Indicates that a RenderProcessHost is destructing. The source will be the |
334 // RenderProcessHost that corresponds to the process. | 337 // RenderProcessHost that corresponds to the process. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // NoDetails. | 398 // NoDetails. |
396 EXTENSION_SHELF_VISIBILITY_PREF_CHANGED, | 399 EXTENSION_SHELF_VISIBILITY_PREF_CHANGED, |
397 | 400 |
398 // Used to monitor web cache usage by notifying whenever the | 401 // Used to monitor web cache usage by notifying whenever the |
399 // CacheManagerHost observes new UsageStats. The source will be the | 402 // CacheManagerHost observes new UsageStats. The source will be the |
400 // RenderProcessHost that corresponds to the new statistics. Details are a | 403 // RenderProcessHost that corresponds to the new statistics. Details are a |
401 // UsageStats object sent by the renderer, and should be copied - ptr not | 404 // UsageStats object sent by the renderer, and should be copied - ptr not |
402 // guaranteed to be valid after the notification. | 405 // guaranteed to be valid after the notification. |
403 WEB_CACHE_STATS_OBSERVED, | 406 WEB_CACHE_STATS_OBSERVED, |
404 | 407 |
| 408 // The focused element inside a page has changed. The source is the render |
| 409 // view host for the page, there are no details. |
| 410 FOCUS_CHANGED_IN_PAGE, |
| 411 |
405 // Child Processes --------------------------------------------------------- | 412 // Child Processes --------------------------------------------------------- |
406 | 413 |
407 // This notification is sent when a child process host has connected to a | 414 // This notification is sent when a child process host has connected to a |
408 // child process. There is no usable source, since it is sent from an | 415 // child process. There is no usable source, since it is sent from an |
409 // ephemeral task; register for AllSources() to receive this notification. | 416 // ephemeral task; register for AllSources() to receive this notification. |
410 // The details are in a Details<ChildProcessInfo>. | 417 // The details are in a Details<ChildProcessInfo>. |
411 CHILD_PROCESS_HOST_CONNECTED, | 418 CHILD_PROCESS_HOST_CONNECTED, |
412 | 419 |
413 // This message is sent after a ChildProcessHost is disconnected from the | 420 // This message is sent after a ChildProcessHost is disconnected from the |
414 // child process. There is no usable source, since it is sent from an | 421 // child process. There is no usable source, since it is sent from an |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 }; | 707 }; |
701 | 708 |
702 inline bool operator==(NotificationType::Type a, NotificationType b) { | 709 inline bool operator==(NotificationType::Type a, NotificationType b) { |
703 return a == b.value; | 710 return a == b.value; |
704 } | 711 } |
705 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 712 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
706 return a != b.value; | 713 return a != b.value; |
707 } | 714 } |
708 | 715 |
709 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 716 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |