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

Unified Diff: ash/wm/overview/window_overview.cc

Issue 259253002: 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
Index: ash/wm/overview/window_overview.cc
diff --git a/ash/wm/overview/window_overview.cc b/ash/wm/overview/window_overview.cc
index 640d21f2191b4507093cc47809b01a99634646ec..dcf3892880c8fa89f152faf3dd8f76ec2da68301 100644
--- a/ash/wm/overview/window_overview.cc
+++ b/ash/wm/overview/window_overview.cc
@@ -307,16 +307,17 @@ void WindowOverview::OnTouchEvent(ui::TouchEvent* event) {
window_selector_->SelectWindow(target);
}
-void WindowOverview::OnDisplayBoundsChanged(const gfx::Display& display) {
- PositionWindows(/* animate */ false);
-}
-
void WindowOverview::OnDisplayAdded(const gfx::Display& display) {
}
void WindowOverview::OnDisplayRemoved(const gfx::Display& display) {
}
+void WindowOverview::OnDisplayMetricsChanged(
+ const gfx::Display& display, gfx::DisplayObserver::DisplayMetrics metrics) {
+ PositionWindows(/* animate */ false);
+}
+
aura::Window* WindowOverview::GetEventTarget(ui::LocatedEvent* event) {
aura::Window* target = static_cast<aura::Window*>(event->target());
// If the target window doesn't actually contain the event location (i.e.

Powered by Google App Engine
This is Rietveld 408576698