Commit 1c2f0d01 authored by Katie D's avatar Katie D Committed by Commit Bot

Adds tooltips for new Accessibility trays: Select-to-Speak and Dictation.

Change-Id: Ia95b34635305bd2e0d7d4ce4c006fc8e9fd65aae
Reviewed-on: https://chromium-review.googlesource.com/1091500Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Katie Dektar <katie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565405}
parent 6192fabc
...@@ -31,6 +31,8 @@ DictationButtonTray::DictationButtonTray(Shelf* shelf) ...@@ -31,6 +31,8 @@ DictationButtonTray::DictationButtonTray(Shelf* shelf)
const int horizontal_padding = (kTrayItemSize - off_image_.width()) / 2; const int horizontal_padding = (kTrayItemSize - off_image_.width()) / 2;
icon_->SetBorder(views::CreateEmptyBorder( icon_->SetBorder(views::CreateEmptyBorder(
gfx::Insets(vertical_padding, horizontal_padding))); gfx::Insets(vertical_padding, horizontal_padding)));
icon_->SetTooltipText(
l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_ACCESSIBILITY_DICTATION));
tray_container()->AddChildView(icon_); tray_container()->AddChildView(icon_);
Shell::Get()->AddShellObserver(this); Shell::Get()->AddShellObserver(this);
Shell::Get()->accessibility_controller()->AddObserver(this); Shell::Get()->accessibility_controller()->AddObserver(this);
......
...@@ -41,6 +41,8 @@ SelectToSpeakTray::SelectToSpeakTray(Shelf* shelf) ...@@ -41,6 +41,8 @@ SelectToSpeakTray::SelectToSpeakTray(Shelf* shelf)
const int horizontal_padding = (kTrayItemSize - inactive_image_.width()) / 2; const int horizontal_padding = (kTrayItemSize - inactive_image_.width()) / 2;
icon_->SetBorder(views::CreateEmptyBorder( icon_->SetBorder(views::CreateEmptyBorder(
gfx::Insets(vertical_padding, horizontal_padding))); gfx::Insets(vertical_padding, horizontal_padding)));
icon_->SetTooltipText(l10n_util::GetStringUTF16(
IDS_ASH_STATUS_TRAY_ACCESSIBILITY_SELECT_TO_SPEAK));
tray_container()->AddChildView(icon_); tray_container()->AddChildView(icon_);
CheckStatusAndUpdateIcon(); CheckStatusAndUpdateIcon();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment