Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: chrome/common/chrome_notification_types.h

Issue 14699002: Move BrowserAction references from ExtensionPrefs to ExtensionActionAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 // ExtensionAction* that changed. The details are the Profile* that the 564 // ExtensionAction* that changed. The details are the Profile* that the
565 // browser action belongs to. 565 // browser action belongs to.
566 NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED, 566 NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED,
567 567
568 // Sent when the count of page actions has changed. Note that some of them 568 // Sent when the count of page actions has changed. Note that some of them
569 // may not apply to the current page. The source is a LocationBar*. There 569 // may not apply to the current page. The source is a LocationBar*. There
570 // are no details. 570 // are no details.
571 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, 571 NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED,
572 572
573 // Sent when a browser action's visibility has changed. The source is the 573 // Sent when a browser action's visibility has changed. The source is the
574 // ExtensionPrefs* that changed. The details are a Extension*. 574 // ExtensionPrefs* that changed, and the details are a std::string with the
575 // extension's ID.
575 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, 576 NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED,
576 577
577 // Sent when a page action's visibility has changed. The source is the 578 // Sent when a page action's visibility has changed. The source is the
578 // ExtensionAction* that changed. The details are a WebContents*. 579 // ExtensionAction* that changed. The details are a WebContents*.
579 NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, 580 NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED,
580 581
581 // Sent when a system indicator action's state has changed. The source is the 582 // Sent when a system indicator action's state has changed. The source is the
582 // Profile* that the browser action belongs to. The details are the 583 // Profile* that the browser action belongs to. The details are the
583 // ExtensionAction* that changed. 584 // ExtensionAction* that changed.
584 NOTIFICATION_EXTENSION_SYSTEM_INDICATOR_UPDATED, 585 NOTIFICATION_EXTENSION_SYSTEM_INDICATOR_UPDATED,
585 586
586 // Sent when an extension command has been removed. The source is the profile 587 // Sent when an extension command has been removed. The source is the profile
587 // and the details is a std::pair of two std::string objects (an extension ID 588 // and the details is a std::pair of two std::string objects (an extension ID
588 // and the name of the command being removed). 589 // and the name of the command being removed).
589 NOTIFICATION_EXTENSION_COMMAND_REMOVED, 590 NOTIFICATION_EXTENSION_COMMAND_REMOVED,
590 591
591 // Sent when an extension command has been added. The source is the profile 592 // Sent when an extension command has been added. The source is the profile
592 // and the details is a std::pair of two std::string objects (an extension ID 593 // and the details is a std::pair of two std::string objects (an extension ID
593 // and the name of the command being added). 594 // and the name of the command being added).
594 NOTIFICATION_EXTENSION_COMMAND_ADDED, 595 NOTIFICATION_EXTENSION_COMMAND_ADDED,
595 596
596 // Sent when an extension command shortcut for a browser action is activated 597 // Sent when an extension command shortcut for a browser action is activated
597 // on Mac. The source is the profile and the details is a std::string 598 // on Mac. The source is the profile and the details is a std::pair of a
598 // containing an extension ID. 599 // std::string containing an extension ID and a gfx::NativeWindow for the
600 // associated window.
599 NOTIFICATION_EXTENSION_COMMAND_BROWSER_ACTION_MAC, 601 NOTIFICATION_EXTENSION_COMMAND_BROWSER_ACTION_MAC,
600 602
601 // Sent when an extension command shortcut for a page action is activated 603 // Sent when an extension command shortcut for a page action is activated
602 // on Mac. The source is the profile and the details is a std::string 604 // on Mac. The source is the profile and the details is a std::pair of a
603 // containing an extension ID. 605 // std::string containing an extension ID and a gfx::NativeWindow for the
606 // associated window.
604 NOTIFICATION_EXTENSION_COMMAND_PAGE_ACTION_MAC, 607 NOTIFICATION_EXTENSION_COMMAND_PAGE_ACTION_MAC,
605 608
606 // Sent when an extension command shortcut for a script badge is activated 609 // Sent when an extension command shortcut for a script badge is activated
607 // on Mac. The source is the profile and the details is a std::string 610 // on Mac. The source is the profile and the details is a std::pair of a
608 // containing an extension ID. 611 // std::string containing an extension ID and a gfx::NativeWindow for the
612 // associated window.
609 NOTIFICATION_EXTENSION_COMMAND_SCRIPT_BADGE_MAC, 613 NOTIFICATION_EXTENSION_COMMAND_SCRIPT_BADGE_MAC,
610 614
611 // A new extension RenderViewHost has been registered. The details are 615 // A new extension RenderViewHost has been registered. The details are
612 // the RenderViewHost*. 616 // the RenderViewHost*.
613 NOTIFICATION_EXTENSION_VIEW_REGISTERED, 617 NOTIFICATION_EXTENSION_VIEW_REGISTERED,
614 618
615 // An extension RenderViewHost has been unregistered. The details are 619 // An extension RenderViewHost has been unregistered. The details are
616 // the RenderViewHost*. 620 // the RenderViewHost*.
617 NOTIFICATION_EXTENSION_VIEW_UNREGISTERED, 621 NOTIFICATION_EXTENSION_VIEW_UNREGISTERED,
618 622
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 // Note:- 1232 // Note:-
1229 // Currently only Content and Chrome define and use notifications. 1233 // Currently only Content and Chrome define and use notifications.
1230 // Custom notifications not belonging to Content and Chrome should start 1234 // Custom notifications not belonging to Content and Chrome should start
1231 // from here. 1235 // from here.
1232 NOTIFICATION_CHROME_END, 1236 NOTIFICATION_CHROME_END,
1233 }; 1237 };
1234 1238
1235 } // namespace chrome 1239 } // namespace chrome
1236 1240
1237 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ 1241 #endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698