| Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/notifications.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/notifications.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/notifications.js
|
| index d5f3f30d5702c75b489f752abb03212b92a05921..e07e88b7bf735b00a81b0c42172c5fef1f61c20d 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/notifications.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/notifications.js
|
| @@ -66,3 +66,17 @@ Notifications.onStartup = function() {
|
|
|
| new UpdateNotification().show();
|
| };
|
| +
|
| +/**
|
| + * Runs notifications that should be shown for mode changes.
|
| + */
|
| +Notifications.onModeChange = function() {
|
| + // Only run on background page.
|
| + if (document.location.href.indexOf('background.html') == -1)
|
| + return;
|
| +
|
| + if (ChromeVoxState.instance.mode !== ChromeVoxMode.FORCE_NEXT)
|
| + return;
|
| +
|
| + new UpdateNotification().show();
|
| +};
|
|
|