OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 // is the ExtensionInstallUI, the details are NoDetails. | 512 // is the ExtensionInstallUI, the details are NoDetails. |
513 EXTENSION_WILL_SHOW_CONFIRM_DIALOG, | 513 EXTENSION_WILL_SHOW_CONFIRM_DIALOG, |
514 | 514 |
515 // Used to monitor web cache usage by notifying whenever the | 515 // Used to monitor web cache usage by notifying whenever the |
516 // CacheManagerHost observes new UsageStats. The source will be the | 516 // CacheManagerHost observes new UsageStats. The source will be the |
517 // RenderProcessHost that corresponds to the new statistics. Details are a | 517 // RenderProcessHost that corresponds to the new statistics. Details are a |
518 // UsageStats object sent by the renderer, and should be copied - ptr not | 518 // UsageStats object sent by the renderer, and should be copied - ptr not |
519 // guaranteed to be valid after the notification. | 519 // guaranteed to be valid after the notification. |
520 WEB_CACHE_STATS_OBSERVED, | 520 WEB_CACHE_STATS_OBSERVED, |
521 | 521 |
522 // The focused element inside a page has changed. The source is the render | 522 // The focused element inside a page has changed. The source is the |
523 // view host for the page. The details are a Details<const bool> that | 523 // TabContents containing the render view host for the page. The details is |
524 // indicates whether or not an editable node was focused. | 524 // a Details<const bool> that indicates whether or not an editable node was |
| 525 // focused. |
525 FOCUS_CHANGED_IN_PAGE, | 526 FOCUS_CHANGED_IN_PAGE, |
526 | 527 |
527 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The | 528 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The |
528 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was | 529 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was |
529 // invoked on. The details are a std::pair<int, Value*> with the int giving | 530 // invoked on. The details are a std::pair<int, Value*> with the int giving |
530 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the | 531 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the |
531 // Value the results of the javascript expression. The Value is owned by | 532 // Value the results of the javascript expression. The Value is owned by |
532 // RenderViewHost and may be a Null Value. | 533 // RenderViewHost and may be a Null Value. |
533 EXECUTE_JAVASCRIPT_RESULT, | 534 EXECUTE_JAVASCRIPT_RESULT, |
534 | 535 |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 }; | 1329 }; |
1329 | 1330 |
1330 inline bool operator==(NotificationType::Type a, NotificationType b) { | 1331 inline bool operator==(NotificationType::Type a, NotificationType b) { |
1331 return a == b.value; | 1332 return a == b.value; |
1332 } | 1333 } |
1333 inline bool operator!=(NotificationType::Type a, NotificationType b) { | 1334 inline bool operator!=(NotificationType::Type a, NotificationType b) { |
1334 return a != b.value; | 1335 return a != b.value; |
1335 } | 1336 } |
1336 | 1337 |
1337 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ | 1338 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ |
OLD | NEW |