#include "components/dom_distiller/core/distilled_page_prefs.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "base/task/single_thread_task_runner.h"
#include "components/dom_distiller/core/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "components/prefs/pref_service.h"
namespace {
const float kDefaultFontScale = …;
const float kMinFontScale = …;
const float kMaxFontScale = …;
}
namespace dom_distiller {
DistilledPagePrefs::DistilledPagePrefs(PrefService* pref_service)
: … { … }
DistilledPagePrefs::~DistilledPagePrefs() = default;
void DistilledPagePrefs::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) { … }
void DistilledPagePrefs::SetFontFamily(mojom::FontFamily new_font_family) { … }
mojom::FontFamily DistilledPagePrefs::GetFontFamily() { … }
void DistilledPagePrefs::SetTheme(mojom::Theme new_theme) { … }
mojom::Theme DistilledPagePrefs::GetTheme() { … }
void DistilledPagePrefs::SetFontScaling(float scaling) { … }
float DistilledPagePrefs::GetFontScaling() { … }
void DistilledPagePrefs::AddObserver(Observer* obs) { … }
void DistilledPagePrefs::RemoveObserver(Observer* obs) { … }
void DistilledPagePrefs::NotifyOnChangeFontFamily(
mojom::FontFamily new_font_family) { … }
void DistilledPagePrefs::NotifyOnChangeTheme(mojom::Theme new_theme) { … }
void DistilledPagePrefs::NotifyOnChangeFontScaling(float scaling) { … }
}