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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js

Issue 1362223003: Improve braille related message descriptions and clean up message handling in Chromevox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputtypeexception
Patch Set: Move another braille message to Msgs.Untranslated Created 5 years, 3 months 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/chromevox/injected/pdf_processor.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js
index 1ba8973ba16308d4964ca1e2436b282525ba8925..92650ce0bb219ceb0ae8f1d3ad8a014517d9464b 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/pdf_processor.js
@@ -144,8 +144,7 @@ cvox.PdfProcessor.onMessage = function(message) {
var src = cvox.PdfProcessor.pdfEmbed.src;
var filename = src.substr(src.lastIndexOf('/') + 1);
document.title = filename;
- var html = cvox.ChromeVox.msgs.getMsg(
- 'pdf_header', [filename, src + '#original']);
+ var html = Msgs.getMsg('pdf_header', [filename, src + '#original']);
headerDiv.innerHTML = html;
// Set up a handler to reload the page when 'Show original' is clicked.
var showLink = headerDiv.getElementsByTagName('a')[0];
@@ -164,7 +163,7 @@ cvox.PdfProcessor.onMessage = function(message) {
if (!info.copyable) {
var alert = document.createElement('div');
alert.setAttribute('role', 'alert');
- alert.innerText = cvox.ChromeVox.msgs.getMsg('copy_protected_pdf');
+ alert.innerText = Msgs.getMsg('copy_protected_pdf');
cvox.PdfProcessor.documentDiv.appendChild(alert);
cvox.PdfProcessor.pdfEmbed.parentElement.appendChild(
cvox.PdfProcessor.documentDiv);

Powered by Google App Engine
This is Rietveld 408576698