Commit b0cdf973 authored by benwells's avatar benwells Committed by Commit bot

Add tooltip to close button in app info dialog.

BUG=468726

Review URL: https://codereview.chromium.org/1028933002

Cr-Commit-Position: refs/heads/master@{#322453}
parent 5d131a1f
......@@ -7,12 +7,14 @@
#include <algorithm>
#include "ui/base/hit_test.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/path.h"
#include "ui/gfx/screen.h"
#include "ui/gfx/skia_util.h"
#include "ui/native_theme/native_theme.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/strings/grit/ui_strings.h"
#include "ui/views/bubble/bubble_border.h"
#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/image_view.h"
......@@ -103,6 +105,7 @@ LabelButton* BubbleFrameView::CreateCloseButton(ButtonListener* listener) {
*rb.GetImageNamed(IDR_CLOSE_DIALOG_P).ToImageSkia());
close->SetBorder(nullptr);
close->SetSize(close->GetPreferredSize());
close->SetTooltipText(l10n_util::GetStringUTF16(IDS_APP_CLOSE));
return close;
}
......
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