summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorshashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-17 11:02:53 +0000
committershashishekhar@chromium.org <shashishekhar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-17 11:02:53 +0000
commit8859a701c51cb8172e6e58f66cd7140f3aa9a708 (patch)
tree91f2a8c5ab46983a061fbe65a79da16014b63db1 /third_party
parent39699140299fd70d13c53a446976318f683f57b3 (diff)
downloadchromium_src-8859a701c51cb8172e6e58f66cd7140f3aa9a708.zip
chromium_src-8859a701c51cb8172e6e58f66cd7140f3aa9a708.tar.gz
chromium_src-8859a701c51cb8172e6e58f66cd7140f3aa9a708.tar.bz2
Support for distilling prior pages in an article.
If distillation is triggered on a page other than the first page, the distiller only distills the subsequent pages in the article. Add support for distilling prior pages. This only adds support to the C++ side, the javascript is still missing the heuristic to figure out previous pages. BUG=288015 TEST=Included. Review URL: https://codereview.chromium.org/167963003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/readability/js/readability.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/readability/js/readability.js b/third_party/readability/js/readability.js
index 9cdbb30..130ea29 100644
--- a/third_party/readability/js/readability.js
+++ b/third_party/readability/js/readability.js
@@ -1744,10 +1744,12 @@ var readability = {
// corresponds to a URL listed at index k in the array returned.
(function () {
readability.init();
- var result = new Array(3);
+ var result = new Array(4);
result[0] = readability.getArticleTitle();
result[1] = readability.getDistilledArticleHTML();
result[2] = readability.getNextPageLink();
+ // TODO(shashishekhar): Add actual previous page link here.
+ result[3] = '';
return result.concat(readability.getImages());
}())