Files
Brian Johnson 7989acf16f [Speedreader] Cleanup pref/feature/method naming (#31415)
Rename pref/features to try to make them more clear. `Enable` means that the site will open in Speedreader automatically. `Allow` means it may open in Speedreader depending on whether it's a site specific override or allow for all readable urls is true and the url looks readable.
2025-09-30 08:07:18 -07:00

27 lines
1.0 KiB
C++

// Copyright (c) 2020 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// you can obtain one at http://mozilla.org/MPL/2.0/.
#include "brave/components/speedreader/common/features.h"
namespace speedreader::features {
BASE_FEATURE(kSpeedreaderFeature,
"Speedreader",
base::FEATURE_ENABLED_BY_DEFAULT);
const base::FeatureParam<int> kSpeedreaderMinOutLengthParam{
&kSpeedreaderFeature, "min_out_length", 1000};
const base::FeatureParam<bool> kSpeedreaderTTS{&kSpeedreaderFeature, "tts",
false};
const base::FeatureParam<bool> kSpeedreaderDebugView{&kSpeedreaderFeature,
"debug_view", false};
const base::FeatureParam<bool> kSpeedreaderExplicitPref{&kSpeedreaderFeature,
"explicit_pref", true};
} // namespace speedreader::features