| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/notification_types.h" | 9 #include "content/public/browser/notification_types.h" |
| 10 | 10 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 // AutocompleteController, the details not used. | 340 // AutocompleteController, the details not used. |
| 341 NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, | 341 NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, |
| 342 | 342 |
| 343 // This is sent when an item of the Omnibox popup is selected. The source | 343 // This is sent when an item of the Omnibox popup is selected. The source |
| 344 // is the profile. | 344 // is the profile. |
| 345 NOTIFICATION_OMNIBOX_OPENED_URL, | 345 NOTIFICATION_OMNIBOX_OPENED_URL, |
| 346 | 346 |
| 347 // This is sent from Instant when the omnibox focus state changes. | 347 // This is sent from Instant when the omnibox focus state changes. |
| 348 NOTIFICATION_OMNIBOX_FOCUS_CHANGED, | 348 NOTIFICATION_OMNIBOX_FOCUS_CHANGED, |
| 349 | 349 |
| 350 // Sent when the Google URL for a profile has been updated. Some services | |
| 351 // cache this value and need to update themselves when it changes. See | |
| 352 // google_util::GetGoogleURLAndUpdateIfNecessary(). The source is the | |
| 353 // Profile, the details a GoogleURLTracker::UpdatedDetails containing the old | |
| 354 // and new URLs. | |
| 355 // | |
| 356 // Note that because incognito mode requests for the GoogleURLTracker are | |
| 357 // redirected to the non-incognito profile's copy, this notification will only | |
| 358 // ever fire on non-incognito profiles; thus listeners should use | |
| 359 // GetOriginalProfile() when constructing a Source to filter against. | |
| 360 NOTIFICATION_GOOGLE_URL_UPDATED, | |
| 361 | |
| 362 // Printing ---------------------------------------------------------------- | 350 // Printing ---------------------------------------------------------------- |
| 363 | 351 |
| 364 // Notification from PrintJob that an event occurred. It can be that a page | 352 // Notification from PrintJob that an event occurred. It can be that a page |
| 365 // finished printing or that the print job failed. Details is | 353 // finished printing or that the print job failed. Details is |
| 366 // PrintJob::EventDetails. Source is a PrintJob. | 354 // PrintJob::EventDetails. Source is a PrintJob. |
| 367 NOTIFICATION_PRINT_JOB_EVENT, | 355 NOTIFICATION_PRINT_JOB_EVENT, |
| 368 | 356 |
| 369 // Sent when a PrintJob has been released. | 357 // Sent when a PrintJob has been released. |
| 370 // Source is the WebContents that holds the print job. | 358 // Source is the WebContents that holds the print job. |
| 371 NOTIFICATION_PRINT_JOB_RELEASED, | 359 NOTIFICATION_PRINT_JOB_RELEASED, |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 // Note:- | 922 // Note:- |
| 935 // Currently only Content and Chrome define and use notifications. | 923 // Currently only Content and Chrome define and use notifications. |
| 936 // Custom notifications not belonging to Content and Chrome should start | 924 // Custom notifications not belonging to Content and Chrome should start |
| 937 // from here. | 925 // from here. |
| 938 NOTIFICATION_CHROME_END, | 926 NOTIFICATION_CHROME_END, |
| 939 }; | 927 }; |
| 940 | 928 |
| 941 } // namespace chrome | 929 } // namespace chrome |
| 942 | 930 |
| 943 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 931 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |