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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // Sent when a default request context has been created, so calling | 486 // Sent when a default request context has been created, so calling |
487 // Profile::GetDefaultRequestContext() will not return NULL. This is sent | 487 // Profile::GetDefaultRequestContext() will not return NULL. This is sent |
488 // on the thread where Profile::GetRequestContext() is first called, which | 488 // on the thread where Profile::GetRequestContext() is first called, which |
489 // should be the UI thread. | 489 // should be the UI thread. |
490 DEFAULT_REQUEST_CONTEXT_AVAILABLE, | 490 DEFAULT_REQUEST_CONTEXT_AVAILABLE, |
491 | 491 |
492 // Autocomplete ------------------------------------------------------------ | 492 // Autocomplete ------------------------------------------------------------ |
493 | 493 |
494 // Sent by the autocomplete controller at least once per query, each time | 494 // Sent by the autocomplete controller at least once per query, each time |
495 // new matches are available, subject to rate-limiting/coalescing to reduce | 495 // new matches are available, subject to rate-limiting/coalescing to reduce |
496 // the number of updates. There are no details. | 496 // the number of updates. The details hold the AutocompleteResult that |
| 497 // observers should use if they want to see the updated matches. |
497 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED, | 498 AUTOCOMPLETE_CONTROLLER_RESULT_UPDATED, |
498 | 499 |
499 // Sent by the autocomplete controller once per query, immediately after | 500 // Sent by the autocomplete controller once per query, immediately after |
500 // synchronous matches become available. There are no details. | 501 // synchronous matches become available. The details hold the |
| 502 // AutocompleteResult that observers should use if they want to see the |
| 503 // synchronous matches. |
501 AUTOCOMPLETE_CONTROLLER_SYNCHRONOUS_MATCHES_AVAILABLE, | 504 AUTOCOMPLETE_CONTROLLER_SYNCHRONOUS_MATCHES_AVAILABLE, |
502 | 505 |
503 // This is sent when an item of the Omnibox popup is selected. The source | 506 // This is sent when an item of the Omnibox popup is selected. The source |
504 // is the profile. | 507 // is the profile. |
505 OMNIBOX_OPENED_URL, | 508 OMNIBOX_OPENED_URL, |
506 | 509 |
507 // Sent by the autocomplete edit when it is destroyed. | 510 // Sent by the autocomplete edit when it is destroyed. |
508 AUTOCOMPLETE_EDIT_DESTROYED, | 511 AUTOCOMPLETE_EDIT_DESTROYED, |
509 | 512 |
510 // Sent when the main Google URL has been updated. Some services cache | 513 // Sent when the main Google URL has been updated. Some services cache |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 }; | 592 }; |
590 | 593 |
591 inline bool operator==(NotificationType::Type a, NotificationType b) { | 594 inline bool operator==(NotificationType::Type a, NotificationType b) { |
592 return a == b.value; | 595 return a == b.value; |
593 } | 596 } |
594 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 597 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
595 return a != b.value; | 598 return a != b.value; |
596 } | 599 } |
597 | 600 |
598 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 601 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |