// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Define all the base::Features used by ui/accessibility. #ifndef UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_ #define UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_ #include "base/feature_list.h" #include "base/metrics/field_trial_params.h" #include "build/build_config.h" #include "build/chromeos_buildflags.h" #include "ui/accessibility/ax_base_export.h" // This file declares base::Features related to the ui/accessibility code. // // If your flag is for all platforms, include it in the first section. If // the flag is build-specific, include it in the appropriate section or // add a new section if needed. // // Keep all sections ordered alphabetically. // // Include the base declaration, and a bool "is...Enabled()" getter for // convenience and consistency. The bool method does not need a comment. Place a // comment above the feature flag describing what the flag does when enabled. // For example, a new entry should look like: // // // <<effect of the experiment>> // AX_BASE_EXPORT BASE_DECLARE_FEATURE(kNewFeature); // AX_BASE_EXPORT bool IsNewFeatureEnabled(); // // In the .cc file, a corresponding new entry should look like: // // BASE_FEATURE(kNewFeature, "NewFeature", // base::FEATURE_DISABLED_BY_DEFAULT); bool IsNewFeatureEnabled() { // return base::FeatureList::IsEnabled(::features::kNewFeature); // } // // Your feature name should start with "kAccessibility". There is no need to // include the words "enabled" or "experimental", as these are implied. We // include accessibility to differentiate these features from others in // Chromium. features // namespace features #endif // UI_ACCESSIBILITY_ACCESSIBILITY_FEATURES_H_