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.
21 lines
878 B
C++
21 lines
878 B
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/.
|
|
|
|
#ifndef BRAVE_COMPONENTS_SPEEDREADER_COMMON_FEATURES_H_
|
|
#define BRAVE_COMPONENTS_SPEEDREADER_COMMON_FEATURES_H_
|
|
|
|
#include "base/feature_list.h"
|
|
#include "base/metrics/field_trial_params.h"
|
|
|
|
namespace speedreader::features {
|
|
BASE_DECLARE_FEATURE(kSpeedreaderFeature);
|
|
extern const base::FeatureParam<int> kSpeedreaderMinOutLengthParam;
|
|
extern const base::FeatureParam<bool> kSpeedreaderTTS;
|
|
extern const base::FeatureParam<bool> kSpeedreaderDebugView;
|
|
extern const base::FeatureParam<bool> kSpeedreaderExplicitPref;
|
|
} // namespace speedreader::features
|
|
|
|
#endif // BRAVE_COMPONENTS_SPEEDREADER_COMMON_FEATURES_H_
|