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

Unified Diff: ios/chrome/browser/reading_list/reading_list_distiller_page.h

Issue 2730863002: Expand all Wikipedia sections on distillation. (Closed)
Patch Set: add todo Created 3 years, 10 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: ios/chrome/browser/reading_list/reading_list_distiller_page.h
diff --git a/ios/chrome/browser/reading_list/reading_list_distiller_page.h b/ios/chrome/browser/reading_list/reading_list_distiller_page.h
index 1283aeac3c4a4ee3aa75306a5345faea1cb7ebeb..4317bce8521198ca34a3d5eb2aa2c5f7ea649213 100644
--- a/ios/chrome/browser/reading_list/reading_list_distiller_page.h
+++ b/ios/chrome/browser/reading_list/reading_list_distiller_page.h
@@ -79,6 +79,15 @@ class ReadingListDistillerPage : public dom_distiller::DistillerPageIOS {
// triggers a navigation to it. Stop distillation of the page there as the new
// load will trigger a new distillation.
bool HandleGoogleCachedAMPPageJavaScriptResult(id result, id error);
+
+ // Work around the fact that articles from wikipedia has the major part of the
+ // article hidden.
+ // IsWikipediaPage will determine if the current page is a wikipedia article.
jif 2017/03/03 16:46:17 IsWikipediaPage determines if
Olivier 2017/03/03 19:49:54 Done.
+ bool IsWikipediaPage();
+ // HandleWikipediaPage set the style of collapsable parts of article to
+ // visible.
+ void HandleWikipediaPage();
jif 2017/03/03 16:46:17 HandleWikipediaPage sets
Olivier 2017/03/03 19:49:54 Done.
+
// Continue the distillation on the page that is currently loaded in
// |CurrentWebState()|.
void ContinuePageDistillation();

Powered by Google App Engine
This is Rietveld 408576698