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

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

Issue 2103043003: Remove legacy PDF JSON interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo after merge Created 4 years, 6 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 | « chrome/browser/resources/pdf/pdf.js ('k') | chrome/test/data/pdf/basic_plugin_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf_scripting_api.js
diff --git a/chrome/browser/resources/pdf/pdf_scripting_api.js b/chrome/browser/resources/pdf/pdf_scripting_api.js
index 28bf7959755721843cd07b6dd9437869751d1535..712e390207e2cb443611cab2cfcf26eddbfb633b 100644
--- a/chrome/browser/resources/pdf/pdf_scripting_api.js
+++ b/chrome/browser/resources/pdf/pdf_scripting_api.js
@@ -76,12 +76,6 @@ function PDFScriptingAPI(window, plugin) {
if (this.loadCallback_)
this.loadCallback_(this.loadState_ == LoadState.SUCCESS);
break;
- case 'getAccessibilityJSONReply':
- if (this.accessibilityCallback_) {
- this.accessibilityCallback_(event.data.json);
- this.accessibilityCallback_ = null;
- }
- break;
case 'getSelectedTextReply':
if (this.selectedTextCallback_) {
this.selectedTextCallback_(event.data.selectedText);
@@ -190,30 +184,6 @@ PDFScriptingAPI.prototype = {
},
/**
- * Get accessibility JSON for the document. May only be called after document
- * load.
- * @param {Function} callback a callback to be called with the accessibility
- * json that has been retrieved.
- * @param {number} [page] the 0-indexed page number to get accessibility data
- * for. If this is not provided, data about the entire document is
- * returned.
- * @return {boolean} true if the function is successful, false if there is an
- * outstanding request for accessibility data that has not been answered.
- */
- getAccessibilityJSON: function(callback, page) {
- if (this.accessibilityCallback_)
- return false;
- this.accessibilityCallback_ = callback;
- var message = {
- type: 'getAccessibilityJSON',
- };
- if (page || page == 0)
- message.page = page;
- this.sendMessage_(message);
- return true;
- },
-
- /**
* Select all the text in the document. May only be called after document
* load.
*/
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('k') | chrome/test/data/pdf/basic_plugin_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698