[a11y] Add reduced animations to kiosk mode quick settings
Adds reduced animations setting to kiosk mode quick settings (which is accessible from the floating accessibility menu in kiosk mode). Setting is not added in login or lock screen. Screenshots: http://screenshot/3tJSrn2SKby2RQ8 http://screenshot/BViXoTQ5oXcWJkW Bug: b/344570149 Test: new, manual Change-Id: I0500d1ffb4a16f884915fa98d58fd7452db85941 AX-Relnotes: N/A (behind flag) Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5593906 Commit-Queue: David Yeung <dayeung@chromium.org> Auto-Submit: Katie Dektar <katie@chromium.org> Commit-Queue: Katie Dektar <katie@chromium.org> Reviewed-by: Kyungjun Lee <kyungjunlee@google.com> Reviewed-by: David Yeung <dayeung@chromium.org> Reviewed-by: Mark Schillaci <mschillaci@google.com> Cr-Commit-Position: refs/heads/main@{#1310206}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
45a9155ac1
commit
06358a866d
ash
chrome/browser
tools/metrics
ui/accessibility
@ -1929,6 +1929,22 @@ bool AccessibilityController::IsEnterpriseIconVisibleForStickyKeys() {
|
||||
return sticky_keys().IsEnterpriseIconVisible();
|
||||
}
|
||||
|
||||
bool AccessibilityController::IsReducedAnimationsSettingVisibleInTray() {
|
||||
if (!::features::IsAccessibilityReducedAnimationsInKioskEnabled()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Only visible in kiosk mode.
|
||||
if (!Shell::Get()->session_controller()->IsRunningInAppMode()) {
|
||||
return false;
|
||||
}
|
||||
return reduced_animations().IsVisibleInTray();
|
||||
}
|
||||
|
||||
bool AccessibilityController::IsEnterpriseIconVisibleForReducedAnimations() {
|
||||
return reduced_animations().IsEnterpriseIconVisible();
|
||||
}
|
||||
|
||||
bool AccessibilityController::IsVirtualKeyboardSettingVisibleInTray() {
|
||||
return virtual_keyboard().IsVisibleInTray();
|
||||
}
|
||||
|
@ -344,6 +344,9 @@ class ASH_EXPORT AccessibilityController : public SessionObserver,
|
||||
bool IsStickyKeysSettingVisibleInTray();
|
||||
bool IsEnterpriseIconVisibleForStickyKeys();
|
||||
|
||||
bool IsReducedAnimationsSettingVisibleInTray();
|
||||
bool IsEnterpriseIconVisibleForReducedAnimations();
|
||||
|
||||
// Switch access may be disabled in prefs but still running when the disable
|
||||
// dialog is displaying.
|
||||
bool IsSwitchAccessRunning() const;
|
||||
|
@ -1493,6 +1493,9 @@ You can also use the keyboard shortcut. First, highlight text, then press <ph na
|
||||
<message name="IDS_ASH_STATUS_TRAY_ACCESSIBILITY_STICKY_KEYS" desc="The label used in the additional settings of accessibility menu of the system tray to toggle on/off sticky keys.">
|
||||
Sticky keys
|
||||
</message>
|
||||
<message name="IDS_ASH_STATUS_TRAY_ACCESSIBILITY_REDUCED_ANIMATIONS" desc="The label used in the additional settings of accessibility menu of the system tray to toggle on/off reduced animations.">
|
||||
Reduced animations
|
||||
</message>
|
||||
<message name="IDS_ASH_STATUS_TRAY_ACCESSIBILITY_TAP_DRAGGING" desc="The label used in the additional settings of accessibility menu of the system tray to toggle on/off tap dragging.">
|
||||
Tap dragging
|
||||
</message>
|
||||
|
@ -0,0 +1 @@
|
||||
90135852dbdc7f1fd00c924ddccfa126abf4aee3
|
@ -365,6 +365,7 @@ aggregate_vector_icons("ash_vector_icons") {
|
||||
"quick_settings_a11y_highlight_text_caret.icon",
|
||||
"quick_settings_a11y_large_mouse_cursor.icon",
|
||||
"quick_settings_a11y_mono_audio.icon",
|
||||
"quick_settings_a11y_reduced_animations.icon",
|
||||
"quick_settings_a11y_sticky_keys.icon",
|
||||
"quick_settings_cast.icon",
|
||||
"quick_settings_cast_connected.icon",
|
||||
|
@ -0,0 +1,42 @@
|
||||
// Copyright 2024 The Chromium Authors
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
CANVAS_DIMENSIONS, 24,
|
||||
FILL_RULE_NONZERO,
|
||||
MOVE_TO, 15, 2,
|
||||
R_CUBIC_TO, -2.71f, 0, -5.05f, 1.54f, -6.22f, 3.78f,
|
||||
R_CUBIC_TO, -1.28f, 0.67f, -2.34f, 1.72f, -3, 3,
|
||||
CUBIC_TO, 3.54f, 9.95f, 2, 12.29f, 2, 15,
|
||||
R_CUBIC_TO, 0, 3.87f, 3.13f, 7, 7, 7,
|
||||
R_CUBIC_TO, 2.71f, 0, 5.05f, -1.54f, 6.22f, -3.78f,
|
||||
R_CUBIC_TO, 1.28f, -0.67f, 2.34f, -1.72f, 3, -3,
|
||||
CUBIC_TO, 20.46f, 14.05f, 22, 11.71f, 22, 9,
|
||||
R_CUBIC_TO, 0, -3.87f, -3.13f, -7, -7, -7,
|
||||
CLOSE,
|
||||
MOVE_TO, 9, 20,
|
||||
R_CUBIC_TO, -2.76f, 0, -5, -2.24f, -5, -5,
|
||||
R_CUBIC_TO, 0, -1.12f, 0.37f, -2.16f, 1, -3,
|
||||
R_CUBIC_TO, 0, 3.87f, 3.13f, 7, 7, 7,
|
||||
R_CUBIC_TO, -0.84f, 0.63f, -1.88f, 1, -3, 1,
|
||||
CLOSE,
|
||||
R_MOVE_TO, 3, -3,
|
||||
R_CUBIC_TO, -2.76f, 0, -5, -2.24f, -5, -5,
|
||||
R_CUBIC_TO, 0, -1.12f, 0.37f, -2.16f, 1, -3,
|
||||
R_CUBIC_TO, 0, 3.86f, 3.13f, 6.99f, 7, 7,
|
||||
R_CUBIC_TO, -0.84f, 0.63f, -1.88f, 1, -3, 1,
|
||||
CLOSE,
|
||||
R_MOVE_TO, 4.7f, -3.3f,
|
||||
R_CUBIC_TO, -0.53f, 0.19f, -1.1f, 0.3f, -1.7f, 0.3f,
|
||||
R_CUBIC_TO, -2.76f, 0, -5, -2.24f, -5, -5,
|
||||
R_CUBIC_TO, 0, -0.6f, 0.11f, -1.17f, 0.3f, -1.7f,
|
||||
R_CUBIC_TO, 0.53f, -0.19f, 1.1f, -0.3f, 1.7f, -0.3f,
|
||||
R_CUBIC_TO, 2.76f, 0, 5, 2.24f, 5, 5,
|
||||
R_CUBIC_TO, 0, 0.6f, -0.11f, 1.17f, -0.3f, 1.7f,
|
||||
CLOSE,
|
||||
MOVE_TO, 19, 12,
|
||||
R_CUBIC_TO, 0, -3.86f, -3.13f, -6.99f, -7, -7,
|
||||
R_CUBIC_TO, 0.84f, -0.63f, 1.87f, -1, 3, -1,
|
||||
R_CUBIC_TO, 2.76f, 0, 5, 2.24f, 5, 5,
|
||||
R_CUBIC_TO, 0, 1.12f, -0.37f, 2.16f, -1, 3,
|
||||
CLOSE
|
@ -256,6 +256,12 @@ void AccessibilityDetailedView::OnAccessibilityStatusChanged() {
|
||||
bool checked = controller->sticky_keys().enabled();
|
||||
UpdateFeatureState(checked, sticky_keys_view_, sticky_keys_top_view_);
|
||||
}
|
||||
|
||||
if (controller->IsReducedAnimationsSettingVisibleInTray()) {
|
||||
bool checked = controller->reduced_animations().enabled();
|
||||
UpdateFeatureState(checked, reduced_animations_view_,
|
||||
reduced_animations_top_view_);
|
||||
}
|
||||
}
|
||||
|
||||
void AccessibilityDetailedView::AppendAccessibilityList() {
|
||||
@ -353,6 +359,10 @@ void AccessibilityDetailedView::AddEnabledFeatures(views::View* container) {
|
||||
controller->sticky_keys().enabled()) {
|
||||
sticky_keys_top_view_ = AddStickyKeysView(container);
|
||||
}
|
||||
if (controller->IsReducedAnimationsSettingVisibleInTray() &&
|
||||
controller->reduced_animations().enabled()) {
|
||||
reduced_animations_top_view_ = AddReducedAnimationsView(container);
|
||||
}
|
||||
}
|
||||
|
||||
void AccessibilityDetailedView::AddAllFeatures(views::View* container) {
|
||||
@ -433,6 +443,10 @@ void AccessibilityDetailedView::AddAllFeatures(views::View* container) {
|
||||
if (controller->IsStickyKeysSettingVisibleInTray()) {
|
||||
sticky_keys_view_ = AddStickyKeysView(container);
|
||||
}
|
||||
|
||||
if (controller->IsReducedAnimationsSettingVisibleInTray()) {
|
||||
reduced_animations_view_ = AddReducedAnimationsView(container);
|
||||
}
|
||||
}
|
||||
|
||||
HoverHighlightView* AccessibilityDetailedView::AddSpokenFeedbackView(
|
||||
@ -629,6 +643,17 @@ HoverHighlightView* AccessibilityDetailedView::AddStickyKeysView(
|
||||
checked, controller->IsEnterpriseIconVisibleForStickyKeys());
|
||||
}
|
||||
|
||||
HoverHighlightView* AccessibilityDetailedView::AddReducedAnimationsView(
|
||||
views::View* container) {
|
||||
auto* controller = Shell::Get()->accessibility_controller();
|
||||
bool checked = controller->reduced_animations().enabled();
|
||||
return AddScrollListFeatureItem(
|
||||
container, kQuickSettingsA11yReducedAnimationsIcon,
|
||||
l10n_util::GetStringUTF16(
|
||||
IDS_ASH_STATUS_TRAY_ACCESSIBILITY_REDUCED_ANIMATIONS),
|
||||
checked, controller->IsEnterpriseIconVisibleForReducedAnimations());
|
||||
}
|
||||
|
||||
HoverHighlightView* AccessibilityDetailedView::AddScrollListFeatureItem(
|
||||
views::View* container,
|
||||
const gfx::VectorIcon& icon,
|
||||
@ -858,6 +883,16 @@ void AccessibilityDetailedView::HandleViewClicked(views::View* view) {
|
||||
base::UmaHistogramBoolean("Accessibility.CrosStatusArea.StickyKeys",
|
||||
new_state);
|
||||
controller->sticky_keys().SetEnabled(new_state);
|
||||
} else if ((view == reduced_animations_top_view_ ||
|
||||
view == reduced_animations_view_) &&
|
||||
!controller->IsEnterpriseIconVisibleForReducedAnimations()) {
|
||||
bool new_state = !controller->reduced_animations().enabled();
|
||||
RecordAction(
|
||||
new_state ? UserMetricsAction("StatusArea_ReducedAnimationsEnabled")
|
||||
: UserMetricsAction("StatusArea_ReducedAnimationsDisabled"));
|
||||
base::UmaHistogramBoolean("Accessibility.CrosStatusArea.ReducedAnimations",
|
||||
new_state);
|
||||
controller->reduced_animations().SetEnabled(new_state);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,7 @@ class ASH_EXPORT AccessibilityDetailedView
|
||||
HoverHighlightView* AddHighlightMouseCursorView(views::View* container);
|
||||
HoverHighlightView* AddHighlightKeyboardFocusView(views::View* container);
|
||||
HoverHighlightView* AddStickyKeysView(views::View* container);
|
||||
HoverHighlightView* AddReducedAnimationsView(views::View* container);
|
||||
|
||||
// Adds a HoverHighlightView to the scroll list and returns it.
|
||||
HoverHighlightView* AddScrollListFeatureItem(views::View* container,
|
||||
@ -143,6 +144,7 @@ class ASH_EXPORT AccessibilityDetailedView
|
||||
raw_ptr<HoverHighlightView> highlight_mouse_cursor_view_ = nullptr;
|
||||
raw_ptr<HoverHighlightView> highlight_keyboard_focus_view_ = nullptr;
|
||||
raw_ptr<HoverHighlightView> sticky_keys_view_ = nullptr;
|
||||
raw_ptr<HoverHighlightView> reduced_animations_view_ = nullptr;
|
||||
|
||||
// Views that appear in the top section listing enabled items. Created if the
|
||||
// feature is enabled, otherwise nullptr. Owned by views hierarchy.
|
||||
@ -164,6 +166,7 @@ class ASH_EXPORT AccessibilityDetailedView
|
||||
raw_ptr<HoverHighlightView> highlight_mouse_cursor_top_view_ = nullptr;
|
||||
raw_ptr<HoverHighlightView> highlight_keyboard_focus_top_view_ = nullptr;
|
||||
raw_ptr<HoverHighlightView> sticky_keys_top_view_ = nullptr;
|
||||
raw_ptr<HoverHighlightView> reduced_animations_top_view_ = nullptr;
|
||||
|
||||
raw_ptr<views::Button> help_view_ = nullptr;
|
||||
raw_ptr<views::Button> settings_view_ = nullptr;
|
||||
|
@ -123,6 +123,11 @@ void EnableColorCorrection(bool enabled) {
|
||||
enabled);
|
||||
}
|
||||
|
||||
void EnableReducedAnimations(bool enabled) {
|
||||
Shell::Get()->accessibility_controller()->reduced_animations().SetEnabled(
|
||||
enabled);
|
||||
}
|
||||
|
||||
speech::LanguageCode en_us() {
|
||||
return speech::LanguageCode::kEnUs;
|
||||
}
|
||||
@ -155,7 +160,8 @@ class AccessibilityDetailedViewTest : public AshTestBase,
|
||||
AccessibilityDetailedViewTest() {
|
||||
scoped_feature_list_.InitWithFeatures(
|
||||
{media::kLiveCaption, ash::features::kOnDeviceSpeechRecognition,
|
||||
::features::kAccessibilityFaceGaze},
|
||||
::features::kAccessibilityFaceGaze,
|
||||
::features::kAccessibilityReducedAnimationsInKiosk},
|
||||
{});
|
||||
}
|
||||
AccessibilityDetailedViewTest(const AccessibilityDetailedViewTest&) = delete;
|
||||
@ -252,6 +258,10 @@ class AccessibilityDetailedViewTest : public AshTestBase,
|
||||
ClickView(detailed_menu_->sticky_keys_view_);
|
||||
}
|
||||
|
||||
void ClickReducedAnimationsOnDetailMenu() {
|
||||
ClickView(detailed_menu_->reduced_animations_view_);
|
||||
}
|
||||
|
||||
void ClickSwitchAccessOnDetailMenu() {
|
||||
ClickView(detailed_menu_->switch_access_view_);
|
||||
}
|
||||
@ -336,6 +346,10 @@ class AccessibilityDetailedViewTest : public AshTestBase,
|
||||
return detailed_menu_->sticky_keys_view_;
|
||||
}
|
||||
|
||||
bool IsReducedAnimationsShownOnDetailMenu() const {
|
||||
return detailed_menu_->reduced_animations_view_;
|
||||
}
|
||||
|
||||
bool IsSwitchAccessShownOnDetailMenu() const {
|
||||
return detailed_menu_->switch_access_view_;
|
||||
}
|
||||
@ -461,6 +475,11 @@ class AccessibilityDetailedViewTest : public AshTestBase,
|
||||
detailed_menu_->sticky_keys_view_);
|
||||
}
|
||||
|
||||
bool IsReducedAnimationsEnabledOnDetailMenu() const {
|
||||
return IsEnabledOnDetailMenu(controller_->reduced_animations().enabled(),
|
||||
detailed_menu_->reduced_animations_view_);
|
||||
}
|
||||
|
||||
bool IsSwitchAccessEnabledOnDetailMenu() const {
|
||||
return IsEnabledOnDetailMenu(controller_->switch_access().enabled(),
|
||||
detailed_menu_->switch_access_view_);
|
||||
@ -475,6 +494,14 @@ class AccessibilityDetailedViewTest : public AshTestBase,
|
||||
return detailed_menu_->GetClassName();
|
||||
}
|
||||
|
||||
void SetUpKioskSession() {
|
||||
auto* session_controller = Shell::Get()->session_controller();
|
||||
SessionInfo info;
|
||||
info.state = session_controller->GetSessionState();
|
||||
info.is_running_in_app_mode = true;
|
||||
session_controller->SetSessionInfo(info);
|
||||
}
|
||||
|
||||
AccessibilityController* controller() { return controller_; }
|
||||
AccessibilityDetailedView* detailed_menu() { return detailed_menu_; }
|
||||
views::View* scroll_content() { return detailed_menu_->scroll_content(); }
|
||||
@ -526,6 +553,9 @@ class AccessibilityDetailedViewTest : public AshTestBase,
|
||||
views::View* sticky_keys_view() const {
|
||||
return detailed_menu_->sticky_keys_view_;
|
||||
}
|
||||
views::View* reduced_animations_view() const {
|
||||
return detailed_menu_->reduced_animations_view_;
|
||||
}
|
||||
views::View* switch_access_view() const {
|
||||
return detailed_menu_->switch_access_view_;
|
||||
}
|
||||
@ -582,6 +612,9 @@ class AccessibilityDetailedViewTest : public AshTestBase,
|
||||
HoverHighlightView* sticky_keys_top_view() const {
|
||||
return detailed_menu_->sticky_keys_top_view_;
|
||||
}
|
||||
HoverHighlightView* reduced_animations_top_view() const {
|
||||
return detailed_menu_->reduced_animations_top_view_;
|
||||
}
|
||||
HoverHighlightView* switch_access_top_view() const {
|
||||
return detailed_menu_->switch_access_top_view_;
|
||||
}
|
||||
@ -982,6 +1015,8 @@ TEST_F(AccessibilityDetailedViewTest, CheckMenuVisibilityOnDetailMenu) {
|
||||
EXPECT_TRUE(IsSwitchAccessShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsColorCorrectionShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsFaceGazeShownOnDetailMenu());
|
||||
// Reduced animations not available outside of kiosk.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Simulate screen lock.
|
||||
@ -1007,6 +1042,8 @@ TEST_F(AccessibilityDetailedViewTest, CheckMenuVisibilityOnDetailMenu) {
|
||||
EXPECT_TRUE(IsSwitchAccessShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsColorCorrectionShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsFaceGazeShownOnDetailMenu());
|
||||
// Reduced animations not available outside of kiosk.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
UnblockUserSession();
|
||||
|
||||
@ -1033,6 +1070,8 @@ TEST_F(AccessibilityDetailedViewTest, CheckMenuVisibilityOnDetailMenu) {
|
||||
EXPECT_TRUE(IsSwitchAccessShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsColorCorrectionShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsFaceGazeShownOnDetailMenu());
|
||||
// Reduced animations not available outside of kiosk.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
UnblockUserSession();
|
||||
}
|
||||
@ -1239,6 +1278,114 @@ TEST_F(AccessibilityDetailedViewTest, ClickDetailMenu) {
|
||||
EXPECT_FALSE(accessibility_controller->face_gaze().enabled());
|
||||
}
|
||||
|
||||
TEST_F(AccessibilityDetailedViewTest, KioskModeShowsReducedAnimations) {
|
||||
SetUpKioskSession();
|
||||
|
||||
CreateDetailedMenu();
|
||||
EXPECT_TRUE(IsSpokenFeedbackMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsSelectToSpeakShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsDictationShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsHighContrastMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsScreenMagnifierMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsDockedMagnifierShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsAutoclickMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsVirtualKeyboardMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsHelpAvailableOnDetailMenu());
|
||||
EXPECT_TRUE(IsSettingsAvailableOnDetailMenu());
|
||||
EXPECT_TRUE(IsLargeCursorMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsLiveCaptionShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsMonoAudioMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsCaretHighlightMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsHighlightMouseCursorMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsHighlightKeyboardFocusMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsStickyKeysMenuShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsSwitchAccessShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsColorCorrectionShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsFaceGazeShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
TEST_F(AccessibilityDetailedViewTest, KioskModeReducedAnimationsView) {
|
||||
SetUpKioskSession();
|
||||
// Enabling reduced animations.
|
||||
EnableReducedAnimations(true);
|
||||
CreateDetailedMenu();
|
||||
EXPECT_FALSE(IsSpokenFeedbackEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsSelectToSpeakEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsDictationEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsFaceGazeEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsHighContrastEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsScreenMagnifierEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsDockedMagnifierEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsLargeCursorEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsLiveCaptionEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsAutoclickEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsVirtualKeyboardEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsMonoAudioEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsCaretHighlightEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsHighlightMouseCursorEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsHighlightKeyboardFocusEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsStickyKeysEnabledOnDetailMenu());
|
||||
ASSERT_TRUE(IsReducedAnimationsShownOnDetailMenu());
|
||||
EXPECT_TRUE(IsReducedAnimationsEnabledOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling reduced animations.
|
||||
EnableReducedAnimations(false);
|
||||
CreateDetailedMenu();
|
||||
EXPECT_FALSE(IsSpokenFeedbackEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsSelectToSpeakEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsDictationEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsFaceGazeEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsHighContrastEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsScreenMagnifierEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsDockedMagnifierEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsLargeCursorEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsLiveCaptionEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsAutoclickEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsVirtualKeyboardEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsMonoAudioEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsCaretHighlightEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsHighlightMouseCursorEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsHighlightKeyboardFocusEnabledOnDetailMenu());
|
||||
EXPECT_FALSE(IsStickyKeysEnabledOnDetailMenu());
|
||||
ASSERT_TRUE(IsReducedAnimationsShownOnDetailMenu());
|
||||
EXPECT_FALSE(IsReducedAnimationsEnabledOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
TEST_F(AccessibilityDetailedViewTest, KioskModeReducedAnimationsTopView) {
|
||||
SetUpKioskSession();
|
||||
EnableReducedAnimations(true);
|
||||
CreateDetailedMenu();
|
||||
ASSERT_TRUE(reduced_animations_top_view());
|
||||
EXPECT_TRUE(IsSwitchToggled(reduced_animations_top_view()));
|
||||
EXPECT_TRUE(IsCheckedForAccessibility(reduced_animations_top_view()));
|
||||
|
||||
ClickView(reduced_animations_top_view());
|
||||
EXPECT_FALSE(IsSwitchToggled(reduced_animations_top_view()));
|
||||
EXPECT_FALSE(IsCheckedForAccessibility(reduced_animations_top_view()));
|
||||
EXPECT_FALSE(controller()->reduced_animations().enabled());
|
||||
}
|
||||
|
||||
TEST_F(AccessibilityDetailedViewTest, KioskModeClickReducedAnimations) {
|
||||
SetUpKioskSession();
|
||||
|
||||
AccessibilityController* accessibility_controller =
|
||||
Shell::Get()->accessibility_controller();
|
||||
// Confirms that the check item toggles reduced animations.
|
||||
EXPECT_FALSE(accessibility_controller->reduced_animations().enabled());
|
||||
|
||||
CreateDetailedMenu();
|
||||
ClickReducedAnimationsOnDetailMenu();
|
||||
EXPECT_TRUE(accessibility_controller->reduced_animations().enabled());
|
||||
|
||||
CreateDetailedMenu();
|
||||
ClickReducedAnimationsOnDetailMenu();
|
||||
EXPECT_FALSE(accessibility_controller->reduced_animations().enabled());
|
||||
}
|
||||
|
||||
class AccessibilityDetailedViewSodaTest
|
||||
: public AccessibilityDetailedViewTest,
|
||||
public testing::WithParamInterface<SodaFeature> {
|
||||
@ -1429,6 +1576,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, NothingCheckedByDefault) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1457,6 +1606,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, SpokenFeedback) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling spoken feedback.
|
||||
@ -1483,6 +1634,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, SpokenFeedback) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1535,6 +1688,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, SelectToSpeak) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling select to speak.
|
||||
@ -1561,6 +1716,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, SelectToSpeak) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1589,6 +1746,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, Dictation) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling dictation.
|
||||
@ -1615,6 +1774,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, Dictation) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1643,6 +1804,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, HighContrast) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling high contrast.
|
||||
@ -1669,6 +1832,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, HighContrast) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1697,6 +1862,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, FullScreenMagnifier) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling screen magnifier.
|
||||
@ -1723,6 +1890,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, FullScreenMagnifier) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1751,6 +1920,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, DockedMagnifier) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling docked magnifier.
|
||||
@ -1777,6 +1948,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, DockedMagnifier) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1805,6 +1978,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, LargeCursor) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling large cursor.
|
||||
@ -1831,6 +2006,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, LargeCursor) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1859,6 +2036,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, LiveCaption) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling Live Caption.
|
||||
@ -1885,6 +2064,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, LiveCaption) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1913,6 +2094,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, VirtualKeyboard) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disable on-screen keyboard.
|
||||
@ -1939,6 +2122,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, VirtualKeyboard) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -1967,6 +2152,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, MonoAudio) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling mono audio.
|
||||
@ -1993,6 +2180,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, MonoAudio) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -2021,6 +2210,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, CaretHighlight) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling caret highlight.
|
||||
@ -2047,6 +2238,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, CaretHighlight) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -2075,6 +2268,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, CursorHighlight) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling highlight mouse cursor.
|
||||
@ -2101,6 +2296,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, CursorHighlight) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -2129,6 +2326,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, FocusHighlight) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling highlight keyboard focus.
|
||||
@ -2155,6 +2354,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, FocusHighlight) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -2183,6 +2384,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, StickyKeys) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling sticky keys.
|
||||
@ -2209,6 +2412,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, StickyKeys) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -2341,6 +2546,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, AllFeatures) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -2369,6 +2576,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, Autoclick) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling autoclick.
|
||||
@ -2395,6 +2604,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, Autoclick) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
@ -2423,6 +2634,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, FaceGaze) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
|
||||
// Disabling facegaze.
|
||||
@ -2449,6 +2662,8 @@ TEST_F(AccessibilityDetailedViewLoginScreenTest, FaceGaze) {
|
||||
// EXPECT_FALSE(IsSwitchAccessEnabledOnDetailMenu());
|
||||
// Color correction cannot be enabled from the login screen.
|
||||
EXPECT_FALSE(IsColorCorrectionShownOnDetailMenu());
|
||||
// Reduced animations not available from the login screen.
|
||||
EXPECT_FALSE(IsReducedAnimationsShownOnDetailMenu());
|
||||
CloseDetailMenu();
|
||||
}
|
||||
|
||||
|
@ -7967,6 +7967,12 @@ const FeatureEntry kFeatureEntries[] = {
|
||||
flag_descriptions::kAccessibilityReducedAnimationsDescription, kOsCrOS,
|
||||
FEATURE_VALUE_TYPE(features::kAccessibilityReducedAnimations)},
|
||||
|
||||
{"enable-accessibility-reduced-animations-in-kiosk",
|
||||
flag_descriptions::kAccessibilityReducedAnimationsInKioskName,
|
||||
flag_descriptions::kAccessibilityReducedAnimationsInKioskDescription,
|
||||
kOsCrOS,
|
||||
FEATURE_VALUE_TYPE(features::kAccessibilityReducedAnimationsInKiosk)},
|
||||
|
||||
{"enable-accessibility-facegaze",
|
||||
flag_descriptions::kAccessibilityFaceGazeName,
|
||||
flag_descriptions::kAccessibilityFaceGazeDescription, kOsCrOS,
|
||||
|
@ -2325,6 +2325,11 @@
|
||||
"owners": [ "zork@chromium.org", "//ash/accessibility/OWNERS" ],
|
||||
"expiry_milestone": 142
|
||||
},
|
||||
{
|
||||
"name": "enable-accessibility-reduced-animations-in-kiosk",
|
||||
"owners": [ "katie@chromium.org", "//ash/accessibility/OWNERS" ],
|
||||
"expiry_milestone": 142
|
||||
},
|
||||
{
|
||||
"name": "enable-accessibility-select-to-speak-hover-text-improvements",
|
||||
"owners": [ "josiahk@chromium.org", "//ui/accessibility/OWNERS" ],
|
||||
|
@ -1144,6 +1144,12 @@ const char kAccessibilityReducedAnimationsName[] =
|
||||
const char kAccessibilityReducedAnimationsDescription[] =
|
||||
"This option enables the setting to limit movement on the screen.";
|
||||
|
||||
const char kAccessibilityReducedAnimationsInKioskName[] =
|
||||
"Reduced Animations feature toggle available in Kiosk quick settings";
|
||||
const char kAccessibilityReducedAnimationsInKioskDescription[] =
|
||||
"This option enables the quick settings option to toggle reduced "
|
||||
"animations.";
|
||||
|
||||
const char kAccessibilityFaceGazeName[] = "Experimental FaceGaze integration";
|
||||
const char kAccessibilityFaceGazeDescription[] =
|
||||
"This option enables the experimental FaceGaze ChromeOS integration";
|
||||
|
@ -677,6 +677,9 @@ extern const char kAccessibilityChromeVoxPageMigrationDescription[];
|
||||
extern const char kAccessibilityReducedAnimationsName[];
|
||||
extern const char kAccessibilityReducedAnimationsDescription[];
|
||||
|
||||
extern const char kAccessibilityReducedAnimationsInKioskName[];
|
||||
extern const char kAccessibilityReducedAnimationsInKioskDescription[];
|
||||
|
||||
extern const char kAccessibilityFaceGazeName[];
|
||||
extern const char kAccessibilityFaceGazeDescription[];
|
||||
|
||||
|
@ -38633,6 +38633,20 @@ should be able to be added at any place in this file.
|
||||
</description>
|
||||
</action>
|
||||
|
||||
<action name="StatusArea_ReducedAnimationsDisabled">
|
||||
<owner>katie@chromium.org</owner>
|
||||
<description>
|
||||
Ash system menu: Accessibility: Disable reduced animations.
|
||||
</description>
|
||||
</action>
|
||||
|
||||
<action name="StatusArea_ReducedAnimationsEnabled">
|
||||
<owner>katie@chromium.org</owner>
|
||||
<description>
|
||||
Ash system menu: Accessibility: Enable reduced animations.
|
||||
</description>
|
||||
</action>
|
||||
|
||||
<action name="StatusArea_ScreenCapture_Change_Source">
|
||||
<owner>braveyao@chromium.org</owner>
|
||||
<owner>niklase@chromium.org</owner>
|
||||
|
@ -23054,6 +23054,8 @@ from previous Chrome versions.
|
||||
<int value="1187868655" label="FloatingWorkspaceV2:disabled"/>
|
||||
<int value="1188109510" label="AssistantAudioEraser:enabled"/>
|
||||
<int value="1190035852" label="MediaRemoting:enabled"/>
|
||||
<int value="1190803434"
|
||||
label="AccessibilityReducedAnimationsInKiosk:disabled"/>
|
||||
<int value="1191531211" label="RawClipboard:disabled"/>
|
||||
<int value="1192302892" label="gesture-typing"/>
|
||||
<int value="1192447565" label="SurfaceSyncFullscreenKillswitch:disabled"/>
|
||||
@ -24375,6 +24377,8 @@ from previous Chrome versions.
|
||||
<int value="1745053254" label="ClickToCallOpenDialerDirectly:enabled"/>
|
||||
<int value="1746253146" label="AdvancedDocumentScanAPI:enabled"/>
|
||||
<int value="1747279677" label="disable-delegated-renderer"/>
|
||||
<int value="1747979127"
|
||||
label="AccessibilityReducedAnimationsInKiosk:enabled"/>
|
||||
<int value="1748481830" label="AppManagement:enabled"/>
|
||||
<int value="1749028785" label="SubresourceRedirect:disabled"/>
|
||||
<int value="1750658031" label="OmniboxBookmarkPaths:enabled"/>
|
||||
|
@ -167,6 +167,14 @@ bool IsAccessibilityFaceGazeEnabled() {
|
||||
return base::FeatureList::IsEnabled(::features::kAccessibilityFaceGaze);
|
||||
}
|
||||
|
||||
BASE_FEATURE(kAccessibilityReducedAnimationsInKiosk,
|
||||
"AccessibilityReducedAnimationsInKiosk",
|
||||
base::FEATURE_DISABLED_BY_DEFAULT);
|
||||
bool IsAccessibilityReducedAnimationsInKioskEnabled() {
|
||||
return base::FeatureList::IsEnabled(
|
||||
::features::kAccessibilityReducedAnimationsInKiosk);
|
||||
}
|
||||
|
||||
BASE_FEATURE(kExperimentalAccessibilityGoogleTtsHighQualityVoices,
|
||||
"ExperimentalAccessibilityGoogleTtsHighQualityVoices",
|
||||
base::FEATURE_ENABLED_BY_DEFAULT);
|
||||
|
@ -137,6 +137,10 @@ AX_BASE_EXPORT bool IsAccessibilityReducedAnimationsEnabled();
|
||||
AX_BASE_EXPORT BASE_DECLARE_FEATURE(kAccessibilityFaceGaze);
|
||||
AX_BASE_EXPORT bool IsAccessibilityFaceGazeEnabled();
|
||||
|
||||
// Adds reduced animations toggle to kiosk quick settings.
|
||||
AX_BASE_EXPORT BASE_DECLARE_FEATURE(kAccessibilityReducedAnimationsInKiosk);
|
||||
AX_BASE_EXPORT bool IsAccessibilityReducedAnimationsInKioskEnabled();
|
||||
|
||||
// Allow context checking with the accessibility Dictation
|
||||
// feature.
|
||||
AX_BASE_EXPORT BASE_DECLARE_FEATURE(
|
||||
|
Reference in New Issue
Block a user