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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js

Issue 2497723002: Show the tutorial during OOBE (Closed)
Patch Set: Fix test. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
index 2469aebac6fbd661f7ee73068b92949c83fa5296..0a9086591822a34a78d14b23c30521bad19ae39a 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/panel.js
@@ -139,6 +139,18 @@ Panel.init = function() {
}, false);
Panel.searchInput_.addEventListener('blur', Panel.onSearchInputBlur, false);
+
+ // If OOBE is showing, automatically trigger the tutorial.
+ chrome.automation.getDesktop(function(desktop) {
+ var loadCompleteType = chrome.automation.EventType.loadComplete;
+ var watchForOobe = function(evt) {
+ if (evt.target.url == 'chrome://oobe/oobe') {
+ desktop.removeEventListener(loadCompleteType, watchForOobe, false);
+ Panel.onTutorial();
+ }
+ };
+ desktop.addEventListener(loadCompleteType, watchForOobe, false);
+ });
};
/**
« no previous file with comments | « chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698