| Index: ash/sticky_keys/sticky_keys_overlay.cc
|
| diff --git a/ash/sticky_keys/sticky_keys_overlay.cc b/ash/sticky_keys/sticky_keys_overlay.cc
|
| index 464d9f684567166abb0b56576568fad8a1cb3289..0766ba25ad2e7cdda2ac5ed875254de6622073e0 100644
|
| --- a/ash/sticky_keys/sticky_keys_overlay.cc
|
| +++ b/ash/sticky_keys/sticky_keys_overlay.cc
|
| @@ -109,7 +109,6 @@
|
|
|
| // views::WidgetDelegateView overrides:
|
| void OnPaint(gfx::Canvas* canvas) override;
|
| - void DeleteDelegate() override;
|
|
|
| void SetKeyState(ui::EventFlags modifier, StickyKeyState state);
|
|
|
| @@ -165,13 +164,6 @@
|
| paint.setColor(SkColorSetARGB(0xB3, 0x55, 0x55, 0x55));
|
| canvas->DrawRoundRect(GetLocalBounds(), 2, paint);
|
| views::WidgetDelegateView::OnPaint(canvas);
|
| -}
|
| -
|
| -void StickyKeysOverlayView::DeleteDelegate() {
|
| - // The ownership of a WidgetDelegateView is kind of tricky. It has the
|
| - // lifetime semantics of both a View and a WidgetDelegate. We should just rely
|
| - // on the Views semantics and do nothing here. This object will be deleted
|
| - // when the parent widget is deleted.
|
| }
|
|
|
| void StickyKeysOverlayView::SetKeyState(ui::EventFlags modifier,
|
| @@ -287,10 +279,6 @@
|
| return overlay_view_->GetKeyState(modifier);
|
| }
|
|
|
| -views::Widget* StickyKeysOverlay::GetWidgetForTesting() {
|
| - return overlay_widget_.get();
|
| -}
|
| -
|
| gfx::Rect StickyKeysOverlay::CalculateOverlayBounds() {
|
| int x = is_visible_ ? kHorizontalOverlayOffset : -widget_size_.width();
|
| return gfx::Rect(gfx::Point(x, kVerticalOverlayOffset), widget_size_);
|
|
|