Add onChanged to StorageArea
This property exists on both chrome.storage and each individual
storage areas.
@@ -8104,13 +8104,25 @@ ProxyConfig.prototype.mode;
* Listener will receive an object that maps each key to its StorageChange,
* and the namespace ("sync" or "local") of the storage area the changes
* are for.
- * @see https://developer.chrome.com/extensions/storage.html
+ * @see https://developer.chrome.com/extensions/storage#event-onChanged
* @interface
* @extends {ChromeBaseEvent<function(!Object<string, !StorageChange>, string)>}
*/
function StorageChangeEvent() {}
+/**
+ * The event listener for StorageArea receives an Object mapping each
+ * key that changed to its corresponding StorageChange for that item.
+ *
+ * Listener will receive an object that maps each key to its StorageChange.
+ * @see https://developer.chrome.com/extensions/storage#type-StorageArea
+ * @interface
+ * @extends {ChromeBaseEvent<function(!Object<string, !StorageChange>)>}
+ */
+function StorageAreaChangeEvent() {}
+
+
/**
* @see https://developer.chrome.com/extensions/storage.html#type-StorageChange
* @constructor
@@ -8186,6 +8198,12 @@ StorageArea.prototype.remove = function(keys, opt_callback) {};
StorageArea.prototype.clear = function(opt_callback) {};
+/**
+ * Fired when one or more items change.
+ * @type {!StorageAreaChangeEvent}
+ */
+StorageArea.prototype.onChanged;
+
/**
* @see https://developer.chrome.com/extensions/types.html#type-ChromeSetting
