Commit 190a3e4a authored by Allen Bauer's avatar Allen Bauer Committed by Commit Bot

Made sure "Learn More" button on "Ask Google for suggestions" dialog is able to be focused.

Ensure focusability is enabled along with the correct tool-tip.

Bug: 806706
Change-Id: Ic60278a2d57f1c23cf36c8633994eb39fc7a5417
Reviewed-on: https://chromium-review.googlesource.com/890388Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Commit-Queue: Allen Bauer <kylixrd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532535}
parent c466dc80
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
#include "chrome/browser/ui/confirm_bubble_model.h" #include "chrome/browser/ui/confirm_bubble_model.h"
#include "chrome/browser/ui/views/harmony/chrome_layout_provider.h" #include "chrome/browser/ui/views/harmony/chrome_layout_provider.h"
#include "components/constrained_window/constrained_window_views.h" #include "components/constrained_window/constrained_window_views.h"
#include "components/strings/grit/components_strings.h"
#include "components/vector_icons/vector_icons.h" #include "components/vector_icons/vector_icons.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/ui_features.h" #include "ui/base/ui_features.h"
#include "ui/views/controls/button/image_button.h" #include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/button/image_button_factory.h" #include "ui/views/controls/button/image_button_factory.h"
...@@ -44,6 +46,8 @@ ConfirmBubbleViews::ConfirmBubbleViews( ...@@ -44,6 +46,8 @@ ConfirmBubbleViews::ConfirmBubbleViews(
// Initialize the help button. // Initialize the help button.
help_button_ = CreateVectorImageButton(this); help_button_ = CreateVectorImageButton(this);
help_button_->SetFocusForPlatform();
help_button_->SetTooltipText(l10n_util::GetStringUTF16(IDS_LEARN_MORE));
SetImageFromVectorIcon(help_button_, vector_icons::kHelpOutlineIcon); SetImageFromVectorIcon(help_button_, vector_icons::kHelpOutlineIcon);
chrome::RecordDialogCreation(chrome::DialogIdentifier::CONFIRM_BUBBLE); chrome::RecordDialogCreation(chrome::DialogIdentifier::CONFIRM_BUBBLE);
......
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