OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/system/web_notification/ash_popup_alignment_delegate.h" | 5 #include "ash/system/web_notification/ash_popup_alignment_delegate.h" |
6 | 6 |
7 #include "ash/display/display_controller.h" | 7 #include "ash/display/display_controller.h" |
8 #include "ash/shelf/shelf_constants.h" | 8 #include "ash/shelf/shelf_constants.h" |
9 #include "ash/shelf/shelf_layout_manager.h" | 9 #include "ash/shelf/shelf_layout_manager.h" |
10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 const gfx::Display& new_display) { | 163 const gfx::Display& new_display) { |
164 } | 164 } |
165 | 165 |
166 void AshPopupAlignmentDelegate::OnDisplayRemoved( | 166 void AshPopupAlignmentDelegate::OnDisplayRemoved( |
167 const gfx::Display& old_display) { | 167 const gfx::Display& old_display) { |
168 } | 168 } |
169 | 169 |
170 void AshPopupAlignmentDelegate::OnDisplayMetricsChanged( | 170 void AshPopupAlignmentDelegate::OnDisplayMetricsChanged( |
171 const gfx::Display& display, | 171 const gfx::Display& display, |
172 uint32_t metrics) { | 172 uint32_t metrics) { |
| 173 UpdateShelf(); |
173 if (display.id() == display_id_ && shelf_) | 174 if (display.id() == display_id_ && shelf_) |
174 OnAutoHideStateChanged(shelf_->auto_hide_state()); | 175 OnAutoHideStateChanged(shelf_->auto_hide_state()); |
175 } | 176 } |
176 | 177 |
177 } // namespace ash | 178 } // namespace ash |
OLD | NEW |