OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 // Sent by the autocomplete edit when it is destroyed. | 520 // Sent by the autocomplete edit when it is destroyed. |
521 AUTOCOMPLETE_EDIT_DESTROYED, | 521 AUTOCOMPLETE_EDIT_DESTROYED, |
522 | 522 |
523 // Sent when the main Google URL has been updated. Some services cache | 523 // Sent when the main Google URL has been updated. Some services cache |
524 // this value and need to update themselves when it changes. See | 524 // this value and need to update themselves when it changes. See |
525 // google_util::GetGoogleURLAndUpdateIfNecessary(). | 525 // google_util::GetGoogleURLAndUpdateIfNecessary(). |
526 GOOGLE_URL_UPDATED, | 526 GOOGLE_URL_UPDATED, |
527 | 527 |
528 // Printing ---------------------------------------------------------------- | 528 // Printing ---------------------------------------------------------------- |
529 | 529 |
530 // Notification from a PrintedDocument that it has been updated. It may be | |
531 // that a printed page has just been generated or that the document's | |
532 // number of pages has been calculated. Details is the new page or NULL if | |
533 // only the number of pages in the document has been updated. | |
534 PRINTED_DOCUMENT_UPDATED, | |
535 | |
536 // Notification from PrintJob that an event occured. It can be that a page | 530 // Notification from PrintJob that an event occured. It can be that a page |
537 // finished printing or that the print job failed. Details is | 531 // finished printing or that the print job failed. Details is |
538 // PrintJob::EventDetails. | 532 // PrintJob::EventDetails. |
539 PRINT_JOB_EVENT, | 533 PRINT_JOB_EVENT, |
540 | 534 |
541 // Shutdown ---------------------------------------------------------------- | 535 // Shutdown ---------------------------------------------------------------- |
542 | 536 |
543 // Sent on the browser IO thread when an URLRequestContext is released by | 537 // Sent on the browser IO thread when an URLRequestContext is released by |
544 // its owning Profile. The source is a pointer to the URLRequestContext. | 538 // its owning Profile. The source is a pointer to the URLRequestContext. |
545 URL_REQUEST_CONTEXT_RELEASED, | 539 URL_REQUEST_CONTEXT_RELEASED, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 }; | 620 }; |
627 | 621 |
628 inline bool operator==(NotificationType::Type a, NotificationType b) { | 622 inline bool operator==(NotificationType::Type a, NotificationType b) { |
629 return a == b.value; | 623 return a == b.value; |
630 } | 624 } |
631 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 625 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
632 return a != b.value; | 626 return a != b.value; |
633 } | 627 } |
634 | 628 |
635 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 629 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |