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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 // AutocompleteController, the details not used. | 346 // AutocompleteController, the details not used. |
347 NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, | 347 NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, |
348 | 348 |
349 // This is sent when an item of the Omnibox popup is selected. The source | 349 // This is sent when an item of the Omnibox popup is selected. The source |
350 // is the profile. | 350 // is the profile. |
351 NOTIFICATION_OMNIBOX_OPENED_URL, | 351 NOTIFICATION_OMNIBOX_OPENED_URL, |
352 | 352 |
353 // This is sent from Instant when the omnibox focus state changes. | 353 // This is sent from Instant when the omnibox focus state changes. |
354 NOTIFICATION_OMNIBOX_FOCUS_CHANGED, | 354 NOTIFICATION_OMNIBOX_FOCUS_CHANGED, |
355 | 355 |
356 // Sent when the Google URL for a profile has been updated. Some services | |
357 // cache this value and need to update themselves when it changes. See | |
358 // google_util::GetGoogleURLAndUpdateIfNecessary(). The source is the | |
359 // Profile, the details a GoogleURLTracker::UpdatedDetails containing the old | |
360 // and new URLs. | |
361 // | |
362 // Note that because incognito mode requests for the GoogleURLTracker are | |
363 // redirected to the non-incognito profile's copy, this notification will only | |
364 // ever fire on non-incognito profiles; thus listeners should use | |
365 // GetOriginalProfile() when constructing a Source to filter against. | |
366 NOTIFICATION_GOOGLE_URL_UPDATED, | |
367 | |
368 // Printing ---------------------------------------------------------------- | 356 // Printing ---------------------------------------------------------------- |
369 | 357 |
370 // Notification from PrintJob that an event occurred. It can be that a page | 358 // Notification from PrintJob that an event occurred. It can be that a page |
371 // finished printing or that the print job failed. Details is | 359 // finished printing or that the print job failed. Details is |
372 // PrintJob::EventDetails. Source is a PrintJob. | 360 // PrintJob::EventDetails. Source is a PrintJob. |
373 NOTIFICATION_PRINT_JOB_EVENT, | 361 NOTIFICATION_PRINT_JOB_EVENT, |
374 | 362 |
375 // Sent when a PrintJob has been released. | 363 // Sent when a PrintJob has been released. |
376 // Source is the WebContents that holds the print job. | 364 // Source is the WebContents that holds the print job. |
377 NOTIFICATION_PRINT_JOB_RELEASED, | 365 NOTIFICATION_PRINT_JOB_RELEASED, |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 // Note:- | 928 // Note:- |
941 // Currently only Content and Chrome define and use notifications. | 929 // Currently only Content and Chrome define and use notifications. |
942 // Custom notifications not belonging to Content and Chrome should start | 930 // Custom notifications not belonging to Content and Chrome should start |
943 // from here. | 931 // from here. |
944 NOTIFICATION_CHROME_END, | 932 NOTIFICATION_CHROME_END, |
945 }; | 933 }; |
946 | 934 |
947 } // namespace chrome | 935 } // namespace chrome |
948 | 936 |
949 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ | 937 #endif // CHROME_BROWSER_CHROME_NOTIFICATION_TYPES_H_ |
OLD | NEW |