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

Unified Diff: chrome/browser/resources/pdf/pdf.js

Issue 265283005: Add accessibility function to PDFScriptingAPI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/pdf_scripting_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index 663ee2d450c11f6936d3b80ea3feb9ff7558ae98..1e6938f374b5699ba2ae158649902e5addbe85db 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -257,12 +257,23 @@ PDFViewer.prototype = {
this.pageIndicator_.initialFadeIn();
this.toolbar_.initialFadeIn();
break;
- case 'loadProgress':
- this.updateProgress_(message.data.progress);
+ case 'getAccessibilityJSONReply':
+ this.sendScriptingMessage_(message.data);
+ break;
+ case 'getPassword':
+ // If the password screen isn't up, put it up. Otherwise we're
+ // responding to an incorrect password so deny it.
+ if (!this.passwordScreen_.active)
+ this.passwordScreen_.active = true;
+ else
+ this.passwordScreen_.deny();
break;
case 'goToPage':
this.viewport_.goToPage(message.data.page);
break;
+ case 'loadProgress':
+ this.updateProgress_(message.data.progress);
+ break;
case 'setScrollPosition':
var position = this.viewport_.position;
if (message.data.x != undefined)
@@ -271,14 +282,6 @@ PDFViewer.prototype = {
position.y = message.data.y;
this.viewport_.position = position;
break;
- case 'getPassword':
- // If the password screen isn't up, put it up. Otherwise we're
- // responding to an incorrect password so deny it.
- if (!this.passwordScreen_.active)
- this.passwordScreen_.active = true;
- else
- this.passwordScreen_.deny();
- break;
case 'setTranslatedStrings':
this.passwordScreen_.text = message.data.getPasswordString;
this.progressBar_.text = message.data.loadingString;
@@ -385,6 +388,7 @@ PDFViewer.prototype = {
});
break;
case 'loadPreviewPage':
+ case 'getAccessibilityJSON':
this.plugin_.postMessage(message.data);
break;
}
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/pdf_scripting_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698