Index: chrome/common/chrome_notification_types.h |
=================================================================== |
--- chrome/common/chrome_notification_types.h (revision 0) |
+++ chrome/common/chrome_notification_types.h (revision 0) |
@@ -0,0 +1,933 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
+#define CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
+#pragma once |
+ |
+#include "content/common/content_notification_types.h" |
+ |
+namespace chrome { |
+ |
+enum { |
+ NOTIFICATION_CHROME_START = content::NOTIFICATION_CONTENT_END, |
+ |
+ // Browser-window ---------------------------------------------------------- |
+ |
+ // This message is sent after a window has been opened. The source is a |
+ // Source<Browser> containing the affected Browser. No details are |
+ // expected. |
+ NOTIFICATION_BROWSER_OPENED = NOTIFICATION_CHROME_START, |
+ |
+ // This message is sent soon after BROWSER_OPENED, and indicates that |
+ // the Browser's |window_| is now non-NULL. The source is a Source<Browser> |
+ // containing the affected Browser. No details are expected. |
+ NOTIFICATION_BROWSER_WINDOW_READY, |
+ |
+ // This message is sent when a browser is closing. The source is a |
+ // Source<Browser> containing the affected Browser. Details is a boolean |
+ // that if true indicates that the application will be closed as a result of |
+ // this browser window closure (i.e. this was the last opened browser |
+ // window on win/linux). This is sent prior to BROWSER_CLOSED, and may be |
+ // sent more than once for a particular browser. |
+ NOTIFICATION_BROWSER_CLOSING, |
+ |
+ // This message is sent after a window has been closed. The source is a |
+ // Source<Browser> containing the affected Browser. Details is a boolean |
+ // that if true indicates that the last browser window has closed - this |
+ // does not indicate that the application is exiting (observers should |
+ // listen for APP_TERMINATING if they want to detect when the application |
+ // will shut down). Note that the boolean pointed to by details is only |
+ // valid for the duration of this call. |
+ NOTIFICATION_BROWSER_CLOSED, |
+ |
+ // Indicates that a top window has been closed. The source is the HWND |
+ // that was closed, no details are expected. |
+ NOTIFICATION_WINDOW_CLOSED, |
+ |
+ // Sent when an info bubble has been created but not yet shown. The source |
+ // is the InfoBubble. |
+ NOTIFICATION_INFO_BUBBLE_CREATED, |
+ |
+ // Sent when the language (English, French...) for a page has been detected. |
+ // The details Details<std::string> contain the ISO 639-1 language code and |
+ // the source is Source<TabContents>. |
+ NOTIFICATION_TAB_LANGUAGE_DETERMINED, |
+ |
+ // Sent when a page has been translated. The source is the tab for that page |
+ // (Source<TabContents>) and the details are the language the page was |
+ // originally in and the language it was translated to |
+ // (std::pair<std::string, std::string>). |
+ NOTIFICATION_PAGE_TRANSLATED, |
+ |
+ // Sent after the renderer returns a snapshot of tab contents. |
+ // The source (Source<TabContentsWrapper>) is the RenderViewHost for which |
+ // the snapshot was generated and the details (Details<const SkBitmap>) is |
+ // the actual snapshot. |
+ NOTIFICATION_TAB_SNAPSHOT_TAKEN, |
+ |
+ // The user has changed the browser theme. The source is a |
+ // Source<ThemeService>. There are no details. |
+ NOTIFICATION_BROWSER_THEME_CHANGED, |
+ |
+ // Sent when the renderer returns focus to the browser, as part of focus |
+ // traversal. The source is the browser, there are no details. |
+ NOTIFICATION_FOCUS_RETURNED_TO_BROWSER, |
+ |
+ // Application-modal dialogs ----------------------------------------------- |
+ |
+ // Sent after an application-modal dialog has been shown. The source |
+ // is the dialog. |
+ NOTIFICATION_APP_MODAL_DIALOG_SHOWN, |
+ |
+ // This message is sent when a new InfoBar has been added to a |
+ // TabContentsWrapper. The source is a Source<TabContentsWrapper> with a |
+ // pointer to the TabContentsWrapper the InfoBar was added to. The details |
+ // is a Details<InfoBarDelegate> with a pointer to the delegate that was |
+ // added. |
+ NOTIFICATION_TAB_CONTENTS_INFOBAR_ADDED, |
+ |
+ // This message is sent when an InfoBar is about to be removed from a |
+ // TabContentsWrapper. The source is a Source<TabContentsWrapper> with a |
+ // pointer to the TabContentsWrapper the InfoBar was removed from. The |
+ // details is a Details<std::pair<InfoBarDelegate*, bool> > with a pointer |
+ // to the removed delegate and whether the removal should be animated. |
+ NOTIFICATION_TAB_CONTENTS_INFOBAR_REMOVED, |
+ |
+ // This message is sent when an InfoBar is replacing another infobar in a |
+ // TabContentsWrapper. The source is a Source<TabContentsWrapper> with a |
+ // pointer to the TabContentsWrapper the InfoBar was removed from. The |
+ // details is a Details<std::pair<InfoBarDelegate*, InfoBarDelegate*> > with |
+ // pointers to the old and new delegates, respectively. |
+ NOTIFICATION_TAB_CONTENTS_INFOBAR_REPLACED, |
+ |
+ // This is sent when an externally hosted tab is created. The details |
+ // contain the ExternalTabContainer that contains the tab |
+ NOTIFICATION_EXTERNAL_TAB_CREATED, |
+ |
+ // This is sent when an externally hosted tab is closed. No details are |
+ // expected. |
+ NOTIFICATION_EXTERNAL_TAB_CLOSED, |
+ |
+ // Indicates that the new page tab has finished loading. This is used for |
+ // performance testing to see how fast we can load it after startup, and is |
+ // only called once for the lifetime of the browser. The source is unused. |
+ // Details is an integer: the number of milliseconds elapsed between |
+ // starting and finishing all painting. |
+ NOTIFICATION_INITIAL_NEW_TAB_UI_LOAD, |
+ |
+ // Used to fire notifications about how long various events took to |
+ // complete. E.g., this is used to get more fine grained timings from the |
+ // new tab page. Details is a MetricEventDurationDetails. |
+ NOTIFICATION_METRIC_EVENT_DURATION, |
+ |
+ // This notification is sent when TabContents::SetAppExtension is invoked. |
+ // The source is the ExtensionTabHelper SetAppExtension was invoked on. |
+ NOTIFICATION_TAB_CONTENTS_APPLICATION_EXTENSION_CHANGED, |
+ |
+ // Stuff inside the tabs --------------------------------------------------- |
+ |
+ // This message is sent after a constrained window has been closed. The |
+ // source is a Source<ConstrainedWindow> with a pointer to the closed child |
+ // window. (The pointer isn't usable, except for identification.) No |
+ // details are expected. |
+ NOTIFICATION_CWINDOW_CLOSED, |
+ |
+ // Notification from TabContents that we have received a response from the |
+ // renderer in response to a dom automation controller action. |
+ NOTIFICATION_DOM_OPERATION_RESPONSE, |
+ |
+ // Sent when the bookmark bubble hides. The source is the profile, the |
+ // details unused. |
+ NOTIFICATION_BOOKMARK_BUBBLE_HIDDEN, |
+ |
+ // This notification is sent when the result of a find-in-page search is |
+ // available with the browser process. The source is a Source<TabContents> |
+ // with a pointer to the TabContents. Details encompass a |
+ // FindNotificationDetail object that tells whether the match was found or |
+ // not found. |
+ NOTIFICATION_FIND_RESULT_AVAILABLE, |
+ |
+ // This is sent when the users preference for when the bookmark bar should |
+ // be shown changes. The source is the profile, and the details are |
+ // NoDetails. |
+ NOTIFICATION_BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, |
+ |
+ // Sent just before the installation confirm dialog is shown. The source |
+ // is the ExtensionInstallUI, the details are NoDetails. |
+ NOTIFICATION_EXTENSION_WILL_SHOW_CONFIRM_DIALOG, |
+ |
+ // Used to monitor web cache usage by notifying whenever the |
+ // CacheManagerHost observes new UsageStats. The source will be the |
+ // RenderProcessHost that corresponds to the new statistics. Details are a |
+ // UsageStats object sent by the renderer, and should be copied - ptr not |
+ // guaranteed to be valid after the notification. |
+ NOTIFICATION_WEB_CACHE_STATS_OBSERVED, |
+ |
+ // BackgroundContents ------------------------------------------------------ |
+ |
+ // A new background contents was opened by script. The source is the parent |
+ // profile and the details are BackgroundContentsOpenedDetails. |
+ NOTIFICATION_BACKGROUND_CONTENTS_OPENED, |
+ |
+ // The background contents navigated to a new location. The source is the |
+ // parent Profile, and the details are the BackgroundContents that was |
+ // navigated. |
+ NOTIFICATION_BACKGROUND_CONTENTS_NAVIGATED, |
+ |
+ // The background contents were closed by someone invoking window.close() |
+ // or the parent application was uninstalled. |
+ // The source is the parent profile, and the details are the |
+ // BackgroundContents. |
+ NOTIFICATION_BACKGROUND_CONTENTS_CLOSED, |
+ |
+ // The background contents is being deleted. The source is the |
+ // parent Profile, and the details are the BackgroundContents being deleted. |
+ NOTIFICATION_BACKGROUND_CONTENTS_DELETED, |
+ |
+ // The background contents has crashed. The source is the parent Profile, |
+ // and the details are the BackgroundContents. |
+ NOTIFICATION_BACKGROUND_CONTENTS_TERMINATED, |
+ |
+ // This is sent when network interception is disabled for a plugin, or the |
+ // plugin is unloaded. This should only be sent/received on the browser IO |
+ // thread or the plugin thread. The source is the plugin that is disabling |
+ // interception. No details are expected. |
+ NOTIFICATION_CHROME_PLUGIN_UNLOADED, |
+ |
+ // This is sent when a login prompt is shown. The source is the |
+ // Source<NavigationController> for the tab in which the prompt is shown. |
+ // Details are a LoginNotificationDetails which provide the LoginHandler |
+ // that should be given authentication. |
+ NOTIFICATION_AUTH_NEEDED, |
+ |
+ // This is sent when authentication credentials have been supplied (either |
+ // by the user or by an automation service), but before we've actually |
+ // received another response from the server. The source is the |
+ // Source<NavigationController> for the tab in which the prompt was shown. |
+ // Details are an AuthSuppliedLoginNotificationDetails which provide the |
+ // LoginHandler that should be given authentication as well as the supplied |
+ // username and password. |
+ NOTIFICATION_AUTH_SUPPLIED, |
+ |
+ // This is sent when an authentication request has been dismissed without |
+ // supplying credentials (either by the user or by an automation service). |
+ // The source is the Source<NavigationController> for the tab in which the |
+ // prompt was shown. Details are a LoginNotificationDetails which provide |
+ // the LoginHandler that should be cancelled. |
+ NOTIFICATION_AUTH_CANCELLED, |
+ |
+ // Saved Pages ------------------------------------------------------------- |
+ |
+ // Sent when a SavePackage finishes successfully. The source is the |
+ // SavePackage, and Details are a GURL containing address of downloaded |
+ // page. |
+ NOTIFICATION_SAVE_PACKAGE_SUCCESSFULLY_FINISHED, |
+ |
+ // History ----------------------------------------------------------------- |
+ |
+ // Sent when a history service is created on the main thread. This is sent |
+ // after history is created, but before it has finished loading. Use |
+ // HISTORY_LOADED is you need to know when loading has completed. |
+ // The source is the profile that the history service belongs to, and the |
+ // details is the pointer to the newly created HistoryService object. |
+ NOTIFICATION_HISTORY_CREATED, |
+ |
+ // Sent when a history service has finished loading. The source is the |
+ // profile that the history service belongs to, and the details is the |
+ // HistoryService. |
+ NOTIFICATION_HISTORY_LOADED, |
+ |
+ // Sent when a URL that has been typed has been added or modified. This is |
+ // used by the in-memory URL database (used by autocomplete) to track |
+ // changes to the main history system. |
+ // |
+ // The source is the profile owning the history service that changed, and |
+ // the details is history::URLsModifiedDetails that lists the modified or |
+ // added URLs. |
+ NOTIFICATION_HISTORY_TYPED_URLS_MODIFIED, |
+ |
+ // Sent when the user visits a URL. |
+ // |
+ // The source is the profile owning the history service that changed, and |
+ // the details is history::URLVisitedDetails. |
+ NOTIFICATION_HISTORY_URL_VISITED, |
+ |
+ // Sent when one or more URLs are deleted. |
+ // |
+ // The source is the profile owning the history service that changed, and |
+ // the details is history::URLsDeletedDetails that lists the deleted URLs. |
+ NOTIFICATION_HISTORY_URLS_DELETED, |
+ |
+ // Sent when a keyword search term is updated. The source is the Profile and |
+ // the details are history::KeywordSearchTermDetails |
+ NOTIFICATION_HISTORY_KEYWORD_SEARCH_TERM_UPDATED, |
+ |
+ // Sent by history when the favicon of a URL changes. The source is the |
+ // profile, and the details is history::FaviconChangeDetails (see |
+ // history_notifications.h). |
+ NOTIFICATION_FAVICON_CHANGED, |
+ |
+ // Sent by FaviconTabHelper when a tab's favicon has been successfully |
+ // updated. |
+ NOTIFICATION_FAVICON_UPDATED, |
+ |
+ // Sent after an incognito profile has been created. The details are none |
+ // and the source is the new profile. |
+ NOTIFICATION_OTR_PROFILE_CREATED, |
+ |
+ // Sent before a Profile is destroyed. The details are |
+ // none and the source is a Profile*. |
+ NOTIFICATION_PROFILE_DESTROYED, |
+ |
+ // TopSites ---------------------------------------------------------------- |
+ |
+ // Sent by TopSites when it finishes loading. The source is the profile the |
+ // details the TopSites. |
+ NOTIFICATION_TOP_SITES_LOADED, |
+ |
+ // Sent by TopSites when it has finished updating its most visited URLs |
+ // cache after querying the history service. The source is the TopSites and |
+ // the details a CancelableRequestProvider::Handle from the history service |
+ // query. |
+ // Used only in testing. |
+ NOTIFICATION_TOP_SITES_UPDATED, |
+ |
+ // Sent by TopSites when the either one of the most visited urls changed, or |
+ // one of the images changes. The source is the TopSites, the details not |
+ // used. |
+ NOTIFICATION_TOP_SITES_CHANGED, |
+ |
+ // Thumbnails--------------------------------------------------------------- |
+ |
+ // Sent by the ThumbnailGenerator whenever a render widget host |
+ // updates its backing store. The source is the |
+ // ThumbnailGenerator, and the details are the RenderWidgetHost |
+ // that notified the ThumbnailGenerator that its backing store was |
+ // updated. |
+ NOTIFICATION_THUMBNAIL_GENERATOR_SNAPSHOT_CHANGED, |
+ |
+ // Bookmarks --------------------------------------------------------------- |
+ |
+ // Sent when the starred state of a URL changes. A URL is starred if there |
+ // is at least one bookmark for it. The source is a Profile and the details |
+ // is history::URLsStarredDetails that contains the list of URLs and |
+ // whether they were starred or unstarred. |
+ NOTIFICATION_URLS_STARRED, |
+ |
+ // Sent when the bookmark bar model finishes loading. This source is the |
+ // Profile, and the details aren't used. |
+ NOTIFICATION_BOOKMARK_MODEL_LOADED, |
+ |
+ // Sent when the bookmark bubble is shown for a particular URL. The source |
+ // is the profile, the details the URL. |
+ NOTIFICATION_BOOKMARK_BUBBLE_SHOWN, |
+ |
+ // Non-history storage services -------------------------------------------- |
+ |
+ // Notification that the TemplateURLService has finished loading from the |
+ // database. The source is the TemplateURLService, and the details are |
+ // NoDetails. |
+ NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED, |
+ |
+ // Sent when a TemplateURL is removed from the model. The source is the |
+ // Profile, and the details the id of the TemplateURL being removed. |
+ NOTIFICATION_TEMPLATE_URL_REMOVED, |
+ |
+ // Notification triggered when a web application has been installed or |
+ // uninstalled. Any application view should reload its data. The source is |
+ // the profile. No details are provided. |
+ NOTIFICATION_WEB_APP_INSTALL_CHANGED, |
+ |
+ // This is sent to a pref observer when a pref is changed. The source is the |
+ // PrefService and the details a std::string of the changed path. |
+ NOTIFICATION_PREF_CHANGED, |
+ |
+ // This is broadcast after the preference subsystem has completed |
+ // asynchronous initalization of a PrefService. |
+ NOTIFICATION_PREF_INITIALIZATION_COMPLETED, |
+ |
+ // Sent when a default request context has been created, so calling |
+ // Profile::GetDefaultRequestContext() will not return NULL. This is sent |
+ // on the thread where Profile::GetRequestContext() is first called, which |
+ // should be the UI thread. |
+ NOTIFICATION_DEFAULT_REQUEST_CONTEXT_AVAILABLE, |
+ |
+ // The state of a web resource has been changed. A resource may have been |
+ // added, removed, or altered. Source is WebResourceService, and the |
+ // details are NoDetails. |
+ NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED, |
+ |
+ // Autocomplete ------------------------------------------------------------ |
+ |
+ // Sent by the autocomplete controller when done. The source is the |
+ // AutocompleteController, the details not used. |
+ NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, |
+ |
+ // This is sent when an item of the Omnibox popup is selected. The source |
+ // is the profile. |
+ NOTIFICATION_OMNIBOX_OPENED_URL, |
+ |
+ // Sent by the omnibox when it is destroyed. |
+ NOTIFICATION_OMNIBOX_DESTROYED, |
+ |
+ // Sent by the omnibox when it is focused. |
+ NOTIFICATION_OMNIBOX_FOCUSED, |
+ |
+ // Sent when the main Google URL has been updated. Some services cache |
+ // this value and need to update themselves when it changes. See |
+ // google_util::GetGoogleURLAndUpdateIfNecessary(). |
+ NOTIFICATION_GOOGLE_URL_UPDATED, |
+ |
+ // Printing ---------------------------------------------------------------- |
+ |
+ // Notification from PrintJob that an event occurred. It can be that a page |
+ // finished printing or that the print job failed. Details is |
+ // PrintJob::EventDetails. Source is a PrintJob. |
+ NOTIFICATION_PRINT_JOB_EVENT, |
+ |
+ // Sent when a PrintJob has been released. |
+ // Source is the TabContentsWrapper that holds the print job. |
+ NOTIFICATION_PRINT_JOB_RELEASED, |
+ |
+ // Shutdown ---------------------------------------------------------------- |
+ |
+ // Sent on the browser IO thread when an net::URLRequestContext is released |
+ // by its owning Profile. The source is a pointer to the |
+ // net::URLRequestContext. |
+ NOTIFICATION_URL_REQUEST_CONTEXT_RELEASED, |
+ |
+ // Sent when WM_ENDSESSION has been received, after the browsers have been |
+ // closed but before browser process has been shutdown. The source/details |
+ // are all source and no details. |
+ NOTIFICATION_SESSION_END, |
+ |
+ // User Scripts ------------------------------------------------------------ |
+ |
+ // Sent when there are new user scripts available. The details are a |
+ // pointer to SharedMemory containing the new scripts. |
+ NOTIFICATION_USER_SCRIPTS_UPDATED, |
+ |
+ // User Style Sheet -------------------------------------------------------- |
+ |
+ // Sent when the user style sheet has changed. |
+ NOTIFICATION_USER_STYLE_SHEET_UPDATED, |
+ |
+ // Extensions -------------------------------------------------------------- |
+ |
+ // Sent when a CrxInstaller finishes. Source is the CrxInstaller that |
+ // finished. No details. |
+ NOTIFICATION_CRX_INSTALLER_DONE, |
+ |
+ // Sent when the known installed extensions have all been loaded. In |
+ // testing scenarios this can happen multiple times if extensions are |
+ // unloaded and reloaded. The source is a Profile. |
+ NOTIFICATION_EXTENSIONS_READY, |
+ |
+ // Sent when a new extension is loaded. The details are an Extension, and |
+ // the source is a Profile. |
+ NOTIFICATION_EXTENSION_LOADED, |
+ |
+ // Sent when attempting to load a new extension, but they are disabled. The |
+ // details are an Extension*, and the source is a Profile*. |
+ NOTIFICATION_EXTENSION_UPDATE_DISABLED, |
+ |
+ // Sent when an extension is about to be installed so we can (in the case of |
+ // themes) alert the user with a loading dialog. The source is the download |
+ // manager and the details are the download url. |
+ NOTIFICATION_EXTENSION_READY_FOR_INSTALL, |
+ |
+ // Sent when an extension install turns out to not be a theme. |
+ NOTIFICATION_NO_THEME_DETECTED, |
+ |
+ // Sent when new extensions are installed. The details are an Extension, and |
+ // the source is a Profile. |
+ NOTIFICATION_EXTENSION_INSTALLED, |
+ |
+ // An error occured during extension install. The details are a string with |
+ // details about why the install failed. |
+ NOTIFICATION_EXTENSION_INSTALL_ERROR, |
+ |
+ // Sent when an extension install is not allowed, as indicated by |
+ // PendingExtensionInfo::ShouldAllowInstall. The details are an Extension, |
+ // and the source is a Profile. |
+ NOTIFICATION_EXTENSION_INSTALL_NOT_ALLOWED, |
+ |
+ // Sent when an extension has been uninstalled. The details are |
+ // an UninstalledExtensionInfo struct and the source is a Profile. |
+ NOTIFICATION_EXTENSION_UNINSTALLED, |
+ |
+ // Sent when an extension uninstall is not allowed because the extension is |
+ // not user manageable. The details are an Extension, and the source is a |
+ // Profile. |
+ NOTIFICATION_EXTENSION_UNINSTALL_NOT_ALLOWED, |
+ |
+ // Sent when an extension is unloaded. This happens when an extension is |
+ // uninstalled or disabled. The details are an UnloadedExtensionInfo, and |
+ // the source is a Profile. |
+ // |
+ // Note that when this notification is sent, ExtensionService has already |
+ // removed the extension from its internal state. |
+ NOTIFICATION_EXTENSION_UNLOADED, |
+ |
+ // Sent after a new ExtensionHost is created. The details are |
+ // an ExtensionHost* and the source is an ExtensionProcessManager*. |
+ NOTIFICATION_EXTENSION_HOST_CREATED, |
+ |
+ // Sent before an ExtensionHost is destroyed. The details are |
+ // an ExtensionHost* and the source is a Profile*. |
+ NOTIFICATION_EXTENSION_HOST_DESTROYED, |
+ |
+ // Sent by an ExtensionHost when it finished its initial page load. |
+ // The details are an ExtensionHost* and the source is a Profile*. |
+ NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING, |
+ |
+ // Sent by an ExtensionHost when its render view requests closing through |
+ // window.close(). The details are an ExtensionHost* and the source is a |
+ // Profile*. |
+ NOTIFICATION_EXTENSION_HOST_VIEW_SHOULD_CLOSE, |
+ |
+ // Sent after an extension render process is created and fully functional. |
+ // The details are an ExtensionHost*. |
+ NOTIFICATION_EXTENSION_PROCESS_CREATED, |
+ |
+ // Sent when extension render process ends (whether it crashes or closes). |
+ // The details are an ExtensionHost* and the source is a Profile*. Not sent |
+ // during browser shutdown. |
+ NOTIFICATION_EXTENSION_PROCESS_TERMINATED, |
+ |
+ // Sent when a background page is ready so other components can load. |
+ NOTIFICATION_EXTENSION_BACKGROUND_PAGE_READY, |
+ |
+ // Sent when a pop-up extension view is ready, so that notification may |
+ // be sent to pending callbacks. Note that this notification is sent |
+ // after all onload callbacks have been invoked in the main frame. |
+ // The details is the ExtensionHost* hosted within the popup, and the source |
+ // is a Profile*. |
+ NOTIFICATION_EXTENSION_POPUP_VIEW_READY, |
+ |
+ // Sent when a browser action's state has changed. The source is the |
+ // ExtensionAction* that changed. There are no details. |
+ NOTIFICATION_EXTENSION_BROWSER_ACTION_UPDATED, |
+ |
+ // Sent when the count of page actions has changed. Note that some of them |
+ // may not apply to the current page. The source is a LocationBar*. There |
+ // are no details. |
+ NOTIFICATION_EXTENSION_PAGE_ACTION_COUNT_CHANGED, |
+ |
+ // Sent when a browser action's visibility has changed. The source is the |
+ // ExtensionPrefs* that changed. The details are a Extension*. |
+ NOTIFICATION_EXTENSION_BROWSER_ACTION_VISIBILITY_CHANGED, |
+ |
+ // Sent when a page action's visibility has changed. The source is the |
+ // ExtensionAction* that changed. The details are a TabContents*. |
+ NOTIFICATION_EXTENSION_PAGE_ACTION_VISIBILITY_CHANGED, |
+ |
+ // Sent by an extension to notify the browser about the results of a unit |
+ // test. |
+ NOTIFICATION_EXTENSION_TEST_PASSED, |
+ NOTIFICATION_EXTENSION_TEST_FAILED, |
+ |
+ // Sent by extension test javascript code, typically in a browser test. The |
+ // sender is a std::string representing the extension id, and the details |
+ // are a std::string with some message. This is particularly useful when you |
+ // want to have C++ code wait for javascript code to do something. |
+ NOTIFICATION_EXTENSION_TEST_MESSAGE, |
+ |
+ // Sent when an bookmarks extensions API function was successfully invoked. |
+ // The source is the id of the extension that invoked the function, and the |
+ // details are a pointer to the const BookmarksFunction in question. |
+ NOTIFICATION_EXTENSION_BOOKMARKS_API_INVOKED, |
+ |
+ // Sent when an omnibox extension has sent back omnibox suggestions. The |
+ // source is the profile, and the details are an ExtensionOmniboxSuggestions |
+ // object. |
+ NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, |
+ |
+ // Sent when the user accepts the input in an extension omnibox keyword |
+ // session. The source is the profile. |
+ NOTIFICATION_EXTENSION_OMNIBOX_INPUT_ENTERED, |
+ |
+ // Sent when an omnibox extension has updated the default suggestion. The |
+ // source is the profile. |
+ NOTIFICATION_EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED, |
+ |
+ // Sent when an extension changes a preference value. The source is the |
+ // profile, and the details are an ExtensionPrefStore::ExtensionPrefDetails |
+ // object. |
+ NOTIFICATION_EXTENSION_PREF_CHANGED, |
+ |
+ // Sent when the extension updater starts checking for updates to installed |
+ // extensions. The source is a Profile, and there are no details. |
+ NOTIFICATION_EXTENSION_UPDATING_STARTED, |
+ |
+ // Sent when the extension updater is finished checking for updates to |
+ // installed extensions. The source is a Profile, and there are no details. |
+ // NOTE: It's possible that there are extension updates still being |
+ // installed by the extension service at the time this notification fires. |
+ NOTIFICATION_EXTENSION_UPDATING_FINISHED, |
+ |
+ // The extension updater found an update and will attempt to download and |
+ // install it. The source is a Profile, and the details are an extension id |
+ // (const std::string). |
+ NOTIFICATION_EXTENSION_UPDATE_FOUND, |
+ |
+ // An installed app changed notification state (added or removed |
+ // notifications). The source is a Profile, and the details are a string |
+ // with the extension id of the app. |
+ NOTIFICATION_APP_NOTIFICATION_STATE_CHANGED, |
+ |
+ // Desktop Notifications --------------------------------------------------- |
+ |
+ // This notification is sent when a balloon is connected to a renderer |
+ // process to render the balloon contents. The source is a |
+ // Source<BalloonHost> with a pointer to the the balloon. A |
+ // NOTIFY_BALLOON_DISCONNECTED is guaranteed before the source pointer |
+ // becomes junk. No details expected. |
+ NOTIFICATION_NOTIFY_BALLOON_CONNECTED, |
+ |
+ // This message is sent after a balloon is disconnected from the renderer |
+ // process. The source is a Source<BalloonHost> with a pointer to the |
+ // balloon host (the pointer is usable). No details are expected. |
+ NOTIFICATION_NOTIFY_BALLOON_DISCONNECTED, |
+ |
+ // Web Database Service ---------------------------------------------------- |
+ |
+ // This notification is sent whenever autofill entries are |
+ // changed. The detail of this notification is a list of changes |
+ // represented by a vector of AutofillChange. Each change |
+ // includes a change type (add, update, or remove) as well as the |
+ // key of the entry that was affected. |
+ NOTIFICATION_AUTOFILL_ENTRIES_CHANGED, |
+ |
+ // Sent when an AutofillProfile has been added/removed/updated in the |
+ // WebDatabase. The detail is an AutofillProfileChange. |
+ NOTIFICATION_AUTOFILL_PROFILE_CHANGED, |
+ |
+ // Sent when an Autofill CreditCard has been added/removed/updated in the |
+ // WebDatabase. The detail is an AutofillCreditCardChange. |
+ NOTIFICATION_AUTOFILL_CREDIT_CARD_CHANGED, |
+ |
+ // This notification is sent whenever the web database service has finished |
+ // loading the web database. No details are expected. |
+ NOTIFICATION_WEB_DATABASE_LOADED, |
+ |
+ // Upgrade notifications --------------------------------------------------- |
+ |
+ // Sent when Chrome detects that it has been upgraded behind the scenes. |
+ // NOTE: The detection mechanism is asynchronous, so this event may arrive |
+ // quite some time after the upgrade actually happened. No details are |
+ // expected. |
+ NOTIFICATION_UPGRADE_DETECTED, |
+ |
+ // Sent when Chrome believes an update has been installed and available for |
+ // long enough with the user shutting down to let it take effect. See |
+ // upgrade_detector.cc for details on how long it waits. No details are |
+ // expected. |
+ NOTIFICATION_UPGRADE_RECOMMENDED, |
+ |
+ // Software incompatibility notifications ---------------------------------- |
+ |
+ // Sent when Chrome has finished compiling the list of loaded modules (and |
+ // other modules of interest). No details are expected. |
+ NOTIFICATION_MODULE_LIST_ENUMERATED, |
+ |
+ // Sent when Chrome is done scanning the module list and when the user has |
+ // acknowledged the module incompatibility. No details are expected. |
+ NOTIFICATION_MODULE_INCOMPATIBILITY_BADGE_CHANGE, |
+ |
+ // Accessibility Notifications --------------------------------------------- |
+ |
+ // Notification that a window in the browser UI (not the web content) |
+ // was opened, for propagating to an accessibility extension. |
+ // Details will be an AccessibilityWindowInfo. |
+ NOTIFICATION_ACCESSIBILITY_WINDOW_OPENED, |
+ |
+ // Notification that a window in the browser UI was closed. |
+ // Details will be an AccessibilityWindowInfo. |
+ NOTIFICATION_ACCESSIBILITY_WINDOW_CLOSED, |
+ |
+ // Notification that a control in the browser UI was focused. |
+ // Details will be an AccessibilityControlInfo. |
+ NOTIFICATION_ACCESSIBILITY_CONTROL_FOCUSED, |
+ |
+ // Notification that a control in the browser UI had its action taken, |
+ // like pressing a button or toggling a checkbox. |
+ // Details will be an AccessibilityControlInfo. |
+ NOTIFICATION_ACCESSIBILITY_CONTROL_ACTION, |
+ |
+ // Notification that text box in the browser UI had text change. |
+ // Details will be an AccessibilityControlInfo. |
+ NOTIFICATION_ACCESSIBILITY_TEXT_CHANGED, |
+ |
+ // Notification that a pop-down menu was opened, for propagating |
+ // to an accessibility extension. |
+ // Details will be an AccessibilityMenuInfo. |
+ NOTIFICATION_ACCESSIBILITY_MENU_OPENED, |
+ |
+ // Notification that a pop-down menu was closed, for propagating |
+ // to an accessibility extension. |
+ // Details will be an AccessibilityMenuInfo. |
+ NOTIFICATION_ACCESSIBILITY_MENU_CLOSED, |
+ |
+ // Content Settings -------------------------------------------------------- |
+ |
+ // Sent when content settings change. The source is a HostContentSettings |
+ // object, the details are ContentSettingsNotificationsDetails. |
+ NOTIFICATION_CONTENT_SETTINGS_CHANGED, |
+ |
+ // Sent when the collect cookies dialog is shown. The source is a |
+ // TabSpecificContentSettings object, there are no details. |
+ NOTIFICATION_COLLECTED_COOKIES_SHOWN, |
+ |
+ // Sent when the default setting for desktop notifications has changed. |
+ // The source is the DesktopNotificationService, the details are None. |
+ NOTIFICATION_DESKTOP_NOTIFICATION_DEFAULT_CHANGED, |
+ |
+ // Sent when a non-default setting in the the notification content settings |
+ // map has changed. The source is the DesktopNotificationService, the |
+ // details are None. |
+ NOTIFICATION_DESKTOP_NOTIFICATION_SETTINGS_CHANGED, |
+ |
+ // Sent when the geolocation settings change. The source is the |
+ // GeolocationContentSettingsMap object, the details are |
+ // ContentSettingsNotificationsDetails. |
+ NOTIFICATION_GEOLOCATION_SETTINGS_CHANGED, |
+ |
+ // Sent when content settings change for a tab. The source is a TabContents |
+ // object, the details are None. |
+ NOTIFICATION_TAB_CONTENT_SETTINGS_CHANGED, |
+ |
+ // Sync -------------------------------------------------------------------- |
+ |
+ // Sent when the syncer is blocked configuring. |
+ NOTIFICATION_SYNC_CONFIGURE_BLOCKED, |
+ |
+ // The sync service has started the configuration process. |
+ NOTIFICATION_SYNC_CONFIGURE_START, |
+ |
+ // The sync service is finished the configuration process. |
+ NOTIFICATION_SYNC_CONFIGURE_DONE, |
+ |
+ // The session service has been saved. This notification type is only sent |
+ // if there were new SessionService commands to save, and not for no-op save |
+ // operations. |
+ NOTIFICATION_SESSION_SERVICE_SAVED, |
+ |
+ // A foreign session has been updated. If a new tab page is open, the |
+ // foreign session handler needs to update the new tab page's foreign |
+ // session data. |
+ NOTIFICATION_FOREIGN_SESSION_UPDATED, |
+ |
+ // Foreign sessions has been disabled. New tabs should not display foreign |
+ // session data. |
+ NOTIFICATION_FOREIGN_SESSION_DISABLED, |
+ |
+ // Cookies ----------------------------------------------------------------- |
+ |
+ // Sent when a cookie changes. The source is a Profile object, the details |
+ // are a ChromeCookieDetails object. |
+ NOTIFICATION_COOKIE_CHANGED, |
+ |
+ // Sidebar ----------------------------------------------------------------- |
+ |
+ // Sent when the sidebar state is changed. |
+ // The source is a SidebarManager instance, the details are the changed |
+ // SidebarContainer object. |
+ NOTIFICATION_SIDEBAR_CHANGED, |
+ |
+ // Token Service ----------------------------------------------------------- |
+ |
+ // When the token service has a new token available for a service, one of |
+ // these notifications is issued per new token. |
+ // The source is a TokenService on the Profile. The details are a |
+ // TokenAvailableDetails object. |
+ NOTIFICATION_TOKEN_AVAILABLE, |
+ |
+ // When there aren't any additional tokens left to load, this notification |
+ // is sent. |
+ // The source is a TokenService on the profile. There are no details. |
+ NOTIFICATION_TOKEN_LOADING_FINISHED, |
+ |
+ // If a token request failed, one of these is issued per failed request. |
+ // The source is a TokenService on the Profile. The details are a |
+ // TokenRequestFailedDetails object. |
+ NOTIFICATION_TOKEN_REQUEST_FAILED, |
+ |
+ // When a service has a new token they got from a frontend that the |
+ // TokenService should know about, fire this notification. The details |
+ // are a TokenAvailableDetails object. |
+ NOTIFICATION_TOKEN_UPDATED, |
+ |
+ // Sent when a user signs into Google services such as sync. |
+ // The source is the Profile. The details are a GoogleServiceSignin object. |
+ NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL, |
+ |
+ // Sent when a user fails to sign into Google services such as sync. |
+ // The source is the Profile. The details are a GoogleServiceAuthError |
+ // object. |
+ NOTIFICATION_GOOGLE_SIGNIN_FAILED, |
+ |
+ // Autofill Notifications -------------------------------------------------- |
+ |
+ // Sent when a popup with Autofill suggestions is shown in the renderer. |
+ // The source is the corresponding RenderViewHost. There are not details. |
+ NOTIFICATION_AUTOFILL_DID_SHOW_SUGGESTIONS, |
+ |
+ // Sent when a form is previewed or filled with Autofill suggestions. |
+ // The source is the corresponding RenderViewHost. There are not details. |
+ NOTIFICATION_AUTOFILL_DID_FILL_FORM_DATA, |
+ |
+ // Download Notifications -------------------------------------------------- |
+ |
+ // Sent when a download is initiated. It is possible that the download will |
+ // not actually begin due to the DownloadRequestLimiter cancelling it |
+ // prematurely. |
+ // The source is the corresponding RenderViewHost. There are no details. |
+ NOTIFICATION_DOWNLOAD_INITIATED, |
+ |
+ // Sent when a page generation to MHTML has finished. |
+ // The source is the corresponding RenderViewHost. The details is a |
+ // MHTMLGenerationManager::NotificationDetails. |
+ NOTIFICATION_MHTML_GENERATED, |
+ |
+ // Misc -------------------------------------------------------------------- |
+ |
+#if defined(OS_CHROMEOS) |
+ // Sent when a chromium os user logs in. |
+ NOTIFICATION_LOGIN_USER_CHANGED, |
+ |
+ // Sent when user image is updated. |
+ NOTIFICATION_LOGIN_USER_IMAGE_CHANGED, |
+ |
+ // Sent when a chromium os user attempts to log in. The source is |
+ // all and the details are AuthenticationNotificationDetails. |
+ NOTIFICATION_LOGIN_AUTHENTICATION, |
+ |
+ // Sent when a panel state changed. |
+ NOTIFICATION_PANEL_STATE_CHANGED, |
+ |
+ // Sent when the window manager's layout mode has changed. |
+ NOTIFICATION_LAYOUT_MODE_CHANGED, |
+ |
+ // Sent when the wizard's content view is destroyed. The source and details |
+ // are not used. |
+ NOTIFICATION_WIZARD_CONTENT_VIEW_DESTROYED, |
+ |
+ // Sent when the screen lock state has changed. The source is |
+ // ScreenLocker and the details is a bool specifing that the |
+ // screen is locked. When details is a false, the source object |
+ // is being deleted, so the receiver shouldn't use the screen locker |
+ // object. |
+ NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, |
+ |
+ // Sent when the network state has changed on UI thread. |
+ // The source is AllSources and the details is NetworkStateDetails defined |
+ // in chrome/browser/chromeos/network_state_notifier.h. |
+ // TODO(oshima): Port this to all platforms. |
+ NOTIFICATION_NETWORK_STATE_CHANGED, |
+ |
+ // Sent when an attempt to acquire the public key of the owner of a chromium |
+ // os device has succeeded. |
+ NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED, |
+ |
+ // Sent when an attempt to acquire the public key of the owner of a chromium |
+ // os device has failed. |
+ NOTIFICATION_OWNER_KEY_FETCH_ATTEMPT_FAILED, |
+ |
+ // Sent after UserManager checked ownership status of logged in user. |
+ NOTIFICATION_OWNERSHIP_CHECKED, |
+ |
+ // This is sent to a ChromeOS settings observer when a system setting is |
+ // changed. The source is the CrosSettings and the details a std::string of |
+ // the changed setting. |
+ NOTIFICATION_SYSTEM_SETTING_CHANGED, |
+ |
+ // Sent by SIM unlock dialog when it has finished with the process of |
+ // updating RequirePin setting. RequirePin setting might have been changed |
+ // to a new value or update might have been canceled. |
+ // In either case notification is sent and details contain a bool |
+ // that represents current value. |
+ NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED, |
+ |
+ // Sent by SIM unlock dialog when it has finished the EnterPin or |
+ // EnterPuk dialog, either because the user cancelled, or entered a |
+ // PIN or PUK. |
+ NOTIFICATION_ENTER_PIN_ENDED, |
+ |
+#endif |
+ |
+#if defined(TOOLKIT_VIEWS) |
+ // Sent when a bookmark's context menu is shown. Used to notify |
+ // tests that the context menu has been created and shown. |
+ NOTIFICATION_BOOKMARK_CONTEXT_MENU_SHOWN, |
+#endif |
+ |
+ // Sent when the tab's closeable state has changed due to increase/decrease |
+ // in number of tabs in browser or increase/decrease in number of browsers. |
+ // Details<bool> contain the closeable flag while source is AllSources. |
+ // This is only sent from ChromeOS's TabCloseableStateWatcher. |
+ NOTIFICATION_TAB_CLOSEABLE_STATE_CHANGED, |
+ |
+ // Sent each time the InstantController is updated. |
+ NOTIFICATION_INSTANT_CONTROLLER_UPDATED, |
+ |
+ // Sent each time the InstantController shows the InstantLoader. |
+ NOTIFICATION_INSTANT_CONTROLLER_SHOWN, |
+ |
+ // Sent when the instant loader determines whether the page supports the |
+ // instant API or not. The details is a boolean indicating if the page |
+ // supports instant. The source is not used. |
+ NOTIFICATION_INSTANT_SUPPORT_DETERMINED, |
+ |
+ // Password Store ---------------------------------------------------------- |
+ // This notification is sent whenenever login entries stored in the password |
+ // store are changed. The detail of this notification is a list of changes |
+ // represented by a vector of PasswordStoreChange. Each change includes a |
+ // change type (ADD, UPDATE, or REMOVE) as well as the |
+ // |webkit_glue::PasswordForm|s that were affected. |
+ NOTIFICATION_LOGINS_CHANGED, |
+ |
+ // Sent when the applications in the NTP app launcher have been reordered. |
+ NOTIFICATION_EXTENSION_LAUNCHER_REORDERED, |
+ |
+#if defined(OS_CHROMEOS) |
+ // Sent when WebSocketProxy started accepting connections. |
+ NOTIFICATION_WEB_SOCKET_PROXY_STARTED, |
+#endif |
+ |
+ // Sent when a new web store promo has been loaded. |
+ NOTIFICATION_WEB_STORE_PROMO_LOADED, |
+ |
+#if defined(TOUCH_UI) |
+ // Sent when an API for hiding the keyboard is invoked from JavaScript code. |
+ NOTIFICATION_HIDE_KEYBOARD_INVOKED, |
+ |
+ // Sent when an API for set height of the keyboard is invoked from |
+ // JavaScript code. |
+ NOTIFICATION_SET_KEYBOARD_HEIGHT_INVOKED, |
+ |
+ // Sent when an editable element is touched, such as text box, password |
+ // field, and omnibox. |
+ NOTIFICATION_EDITABLE_ELEMENT_TOUCHED, |
+#endif |
+ |
+ // Protocol Handler Registry ----------------------------------------------- |
+ // Sent when a ProtocolHandlerRegistry is changed. |
+ NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED, |
+ |
+ // Sent when the cached profile info has changed. |
+ NOTIFICATION_PROFILE_CACHED_INFO_CHANGED, |
+ |
+ // Note:- |
+ // Currently only Content and Chrome define and use notifications. |
+ // Custom notifications not belonging to Content and Chrome should start |
+ // from here. |
+ NOTIFICATION_CHROME_END, |
+}; |
+ |
+} // namespace chrome |
+ |
+ |
+#endif // CHROME_COMMON_CHROME_NOTIFICATION_TYPES_H_ |
Property changes on: chrome\common\chrome_notification_types.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |