Commit 78213fc9 authored by Toni Barzic's avatar Toni Barzic Committed by Commit Bot

Call base implementation from SearchBoxImageButton::OnFocus

View::OnFocus has logic that should not be skipped for
SearchBoxImageButton - for example, it sends focus change notification
to accessibility stack.

BUG=1113884

Change-Id: I0f14833b9b0158f0fb25c8876ea45b84a74d42d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2481551Reviewed-by: default avatarAlex Newcomer <newcomer@chromium.org>
Commit-Queue: Toni Baržić <tbarzic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#818116}
parent 3a473747
......@@ -119,9 +119,15 @@ class SearchBoxImageButton : public views::ImageButton {
return Button::OnKeyPressed(event);
}
void OnFocus() override { SchedulePaint(); }
void OnFocus() override {
views::ImageButton::OnFocus();
SchedulePaint();
}
void OnBlur() override { SchedulePaint(); }
void OnBlur() override {
views::ImageButton::OnBlur();
SchedulePaint();
}
// views::InkDropHostView:
std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override {
......
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