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

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

Issue 1277183003: Add ChromeVox panel and implement caption display functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN build Created 5 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
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
index 424cfda10bcb01386fbbc7b38e31ab672dcf291b..8f812bb76bd2b2450057312fff239dde034fe11a 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -353,8 +353,7 @@ Background.prototype = {
}
break;
case 'showOptionsPage':
- var optionsPage = {url: 'chromevox/background/options.html'};
- chrome.tabs.create(optionsPage);
+ chrome.runtime.openOptionsPage();
break;
case 'toggleChromeVoxVersion':
var newMode;
@@ -412,6 +411,14 @@ Background.prototype = {
},
/**
+ * Open the options page in a new tab.
+ */
+ showOptionsPage: function() {
+ var optionsPage = {url: 'chromevox/background/options.html'};
+ chrome.tabs.create(optionsPage);
+ },
+
+ /**
* Handles a braille command.
* @param {!cvox.BrailleKeyEvent} evt
* @param {!cvox.NavBraille} content

Powered by Google App Engine
This is Rietveld 408576698