| 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_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 5 #ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| 6 #define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 6 #define CHROME_COMMON_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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 // ExtensionAction* that changed. The details are the Profile* that the | 566 // ExtensionAction* that changed. The details are the Profile* that the |
| 567 // browser action belongs to. | 567 // browser action belongs to. |
| 568 NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED, | 568 NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED, |
| 569 | 569 |
| 570 // Sent when the count of page actions has changed. Note that some of them | 570 // Sent when the count of page actions has changed. Note that some of them |
| 571 // may not apply to the current page. The source is a LocationBar*. There | 571 // may not apply to the current page. The source is a LocationBar*. There |
| 572 // are no details. | 572 // are no details. |
| 573 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, | 573 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, |
| 574 | 574 |
| 575 // Sent when a browser action's visibility has changed. The source is the | 575 // Sent when a browser action's visibility has changed. The source is the |
| 576 // ExtensionPrefs* that changed. The details are a Extension*. | 576 // ExtensionPrefs* that changed, and the details are a std::string with the |
| 577 // extension's ID. |
| 577 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, | 578 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, |
| 578 | 579 |
| 579 // Sent when a page action's visibility has changed. The source is the | 580 // Sent when a page action's visibility has changed. The source is the |
| 580 // ExtensionAction* that changed. The details are a WebContents*. | 581 // ExtensionAction* that changed. The details are a WebContents*. |
| 581 NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, | 582 NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, |
| 582 | 583 |
| 583 // Sent when a system indicator action's state has changed. The source is the | 584 // Sent when a system indicator action's state has changed. The source is the |
| 584 // Profile* that the browser action belongs to. The details are the | 585 // Profile* that the browser action belongs to. The details are the |
| 585 // ExtensionAction* that changed. | 586 // ExtensionAction* that changed. |
| 586 NOTIFICATION_EXTENSION_SYSTEM_INDICATOR_UPDATED, | 587 NOTIFICATION_EXTENSION_SYSTEM_INDICATOR_UPDATED, |
| 587 | 588 |
| 588 // Sent when an extension command has been removed. The source is the profile | 589 // Sent when an extension command has been removed. The source is the profile |
| 589 // and the details is a std::pair of two std::string objects (an extension ID | 590 // and the details is a std::pair of two std::string objects (an extension ID |
| 590 // and the name of the command being removed). | 591 // and the name of the command being removed). |
| 591 NOTIFICATION_EXTENSION_COMMAND_REMOVED, | 592 NOTIFICATION_EXTENSION_COMMAND_REMOVED, |
| 592 | 593 |
| 593 // Sent when an extension command has been added. The source is the profile | 594 // Sent when an extension command has been added. The source is the profile |
| 594 // and the details is a std::pair of two std::string objects (an extension ID | 595 // and the details is a std::pair of two std::string objects (an extension ID |
| 595 // and the name of the command being added). | 596 // and the name of the command being added). |
| 596 NOTIFICATION_EXTENSION_COMMAND_ADDED, | 597 NOTIFICATION_EXTENSION_COMMAND_ADDED, |
| 597 | 598 |
| 598 // Sent when an extension command shortcut for a browser action is activated | 599 // Sent when an extension command shortcut for a browser action is activated |
| 599 // on Mac. The source is the profile and the details is a std::string | 600 // on Mac. The source is the profile and the details is a std::pair of a |
| 600 // containing an extension ID. | 601 // std::string containing an extension ID and a gfx::NativeWindow for the |
| 602 // associated window. |
| 601 NOTIFICATION_EXTENSION_COMMAND_BROWSER_ACTION_MAC, | 603 NOTIFICATION_EXTENSION_COMMAND_BROWSER_ACTION_MAC, |
| 602 | 604 |
| 603 // Sent when an extension command shortcut for a page action is activated | 605 // Sent when an extension command shortcut for a page action is activated |
| 604 // on Mac. The source is the profile and the details is a std::string | 606 // on Mac. The source is the profile and the details is a std::pair of a |
| 605 // containing an extension ID. | 607 // std::string containing an extension ID and a gfx::NativeWindow for the |
| 608 // associated window. |
| 606 NOTIFICATION_EXTENSION_COMMAND_PAGE_ACTION_MAC, | 609 NOTIFICATION_EXTENSION_COMMAND_PAGE_ACTION_MAC, |
| 607 | 610 |
| 608 // Sent when an extension command shortcut for a script badge is activated | 611 // Sent when an extension command shortcut for a script badge is activated |
| 609 // on Mac. The source is the profile and the details is a std::string | 612 // on Mac. The source is the profile and the details is a std::pair of a |
| 610 // containing an extension ID. | 613 // std::string containing an extension ID and a gfx::NativeWindow for the |
| 614 // associated window. |
| 611 NOTIFICATION_EXTENSION_COMMAND_SCRIPT_BADGE_MAC, | 615 NOTIFICATION_EXTENSION_COMMAND_SCRIPT_BADGE_MAC, |
| 612 | 616 |
| 613 // A new extension RenderViewHost has been registered. The details are | 617 // A new extension RenderViewHost has been registered. The details are |
| 614 // the RenderViewHost*. | 618 // the RenderViewHost*. |
| 615 NOTIFICATION_EXTENSION_VIEW_REGISTERED, | 619 NOTIFICATION_EXTENSION_VIEW_REGISTERED, |
| 616 | 620 |
| 617 // An extension RenderViewHost has been unregistered. The details are | 621 // An extension RenderViewHost has been unregistered. The details are |
| 618 // the RenderViewHost*. | 622 // the RenderViewHost*. |
| 619 NOTIFICATION_EXTENSION_VIEW_UNREGISTERED, | 623 NOTIFICATION_EXTENSION_VIEW_UNREGISTERED, |
| 620 | 624 |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1233 // Note:- | 1237 // Note:- |
| 1234 // Currently only Content and Chrome define and use notifications. | 1238 // Currently only Content and Chrome define and use notifications. |
| 1235 // Custom notifications not belonging to Content and Chrome should start | 1239 // Custom notifications not belonging to Content and Chrome should start |
| 1236 // from here. | 1240 // from here. |
| 1237 NOTIFICATION_CHROME_END, | 1241 NOTIFICATION_CHROME_END, |
| 1238 }; | 1242 }; |
| 1239 | 1243 |
| 1240 } // namespace chrome | 1244 } // namespace chrome |
| 1241 | 1245 |
| 1242 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ | 1246 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
| OLD | NEW |