Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Unified Diff: ash/touch/touch_observer_hud.cc

Issue 294963004: Revert of Add OnDisplayMetricsChanged in DisplayObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_orientation
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/touch/touch_observer_hud.h ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_observer_hud.cc
diff --git a/ash/touch/touch_observer_hud.cc b/ash/touch/touch_observer_hud.cc
index f3f0b352708b819b5dadfced4084bd2fe24802bc..87d6d4ee50d5c0f3c17807de8f0b9fc5de3d70e0 100644
--- a/ash/touch/touch_observer_hud.cc
+++ b/ash/touch/touch_observer_hud.cc
@@ -86,20 +86,18 @@
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) {
if (old_display.id() != display_id_)
return;
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)
« no previous file with comments | « ash/touch/touch_observer_hud.h ('k') | ash/wm/maximize_mode/maximize_mode_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698