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

Unified Diff: components/dom_distiller/core/dom_distiller_request_view_base.h

Issue 1225183002: Font size in DomDistiller prefs syncs with local scaling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge master again 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: components/dom_distiller/core/dom_distiller_request_view_base.h
diff --git a/components/dom_distiller/core/dom_distiller_request_view_base.h b/components/dom_distiller/core/dom_distiller_request_view_base.h
index af63af4aa558a4a8bf6806b50e34ec471cdde65d..c35b9255ffe045cb6829a1e525f0057fd17ce038 100644
--- a/components/dom_distiller/core/dom_distiller_request_view_base.h
+++ b/components/dom_distiller/core/dom_distiller_request_view_base.h
@@ -40,14 +40,18 @@ class DomDistillerRequestViewBase : public ViewRequestDelegate,
protected:
// DistilledPagePrefs::Observer implementation:
+ void OnChangeTheme(DistilledPagePrefs::Theme new_theme) override;
void OnChangeFontFamily(
DistilledPagePrefs::FontFamily new_font_family) override;
- void OnChangeTheme(DistilledPagePrefs::Theme new_theme) override;
+ void OnChangeFontScaling(float scaling) override;
// Sends JavaScript to the attached Viewer, buffering data if the viewer isn't
// ready.
virtual void SendJavaScript(const std::string& buffer) = 0;
+ // Sends JavaScript common to normal and error pages.
+ void SendCommonJavaScript();
+
// The handle to the view request towards the DomDistillerService. It
// needs to be kept around to ensure the distillation request finishes.
scoped_ptr<ViewerHandle> viewer_handle_;

Powered by Google App Engine
This is Rietveld 408576698