diff options
Diffstat (limited to 'ash/touch/touch_observer_hud.cc')
-rw-r--r-- | ash/touch/touch_observer_hud.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/ash/touch/touch_observer_hud.cc b/ash/touch/touch_observer_hud.cc index f3f0b35..87d6d4e 100644 --- a/ash/touch/touch_observer_hud.cc +++ b/ash/touch/touch_observer_hud.cc @@ -86,6 +86,12 @@ void TouchObserverHUD::OnWidgetDestroying(views::Widget* widget) { delete this; } +void TouchObserverHUD::OnDisplayBoundsChanged(const gfx::Display& display) { + if (display.id() != display_id_) + return; + widget_->SetSize(display.size()); +} + void TouchObserverHUD::OnDisplayAdded(const gfx::Display& new_display) {} void TouchObserverHUD::OnDisplayRemoved(const gfx::Display& old_display) { @@ -94,14 +100,6 @@ void TouchObserverHUD::OnDisplayRemoved(const gfx::Display& old_display) { widget_->CloseNow(); } -void TouchObserverHUD::OnDisplayMetricsChanged(const gfx::Display& display, - uint32_t metrics) { - if (display.id() != display_id_ || !(metrics & DISPLAY_METRIC_BOUNDS)) - return; - - widget_->SetSize(display.size()); -} - #if defined(OS_CHROMEOS) void TouchObserverHUD::OnDisplayModeChanged( const ui::DisplayConfigurator::DisplayStateList& outputs) { |