| 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/window_tree_host_manager.h" | 7 #include "ash/display/window_tree_host_manager.h" |
| 8 #include "ash/screen_util.h" | 8 #include "ash/screen_util.h" |
| 9 #include "ash/shelf/shelf_constants.h" | 9 #include "ash/shelf/shelf_constants.h" |
| 10 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 void AshPopupAlignmentDelegate::OnDisplayWorkAreaInsetsChanged() { | 124 void AshPopupAlignmentDelegate::OnDisplayWorkAreaInsetsChanged() { |
| 125 UpdateWorkArea(); | 125 UpdateWorkArea(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void AshPopupAlignmentDelegate::WillChangeVisibilityState( | 128 void AshPopupAlignmentDelegate::WillChangeVisibilityState( |
| 129 ShelfVisibilityState new_state) { | 129 ShelfVisibilityState new_state) { |
| 130 UpdateWorkArea(); | 130 UpdateWorkArea(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void AshPopupAlignmentDelegate::OnAutoHideStateChanged( | 133 void AshPopupAlignmentDelegate::OnAutoHideStateChanged( |
| 134 ShelfLayoutManager* layout_manager, |
| 134 ShelfAutoHideState new_state) { | 135 ShelfAutoHideState new_state) { |
| 135 UpdateWorkArea(); | 136 UpdateWorkArea(); |
| 136 } | 137 } |
| 137 | 138 |
| 138 void AshPopupAlignmentDelegate::OnDisplayAdded( | 139 void AshPopupAlignmentDelegate::OnDisplayAdded( |
| 139 const display::Display& new_display) {} | 140 const display::Display& new_display) {} |
| 140 | 141 |
| 141 void AshPopupAlignmentDelegate::OnDisplayRemoved( | 142 void AshPopupAlignmentDelegate::OnDisplayRemoved( |
| 142 const display::Display& old_display) {} | 143 const display::Display& old_display) {} |
| 143 | 144 |
| 144 void AshPopupAlignmentDelegate::OnDisplayMetricsChanged( | 145 void AshPopupAlignmentDelegate::OnDisplayMetricsChanged( |
| 145 const display::Display& display, | 146 const display::Display& display, |
| 146 uint32_t metrics) { | 147 uint32_t metrics) { |
| 147 if (GetCurrentDisplay().id() == display.id()) | 148 if (GetCurrentDisplay().id() == display.id()) |
| 148 UpdateWorkArea(); | 149 UpdateWorkArea(); |
| 149 } | 150 } |
| 150 | 151 |
| 151 } // namespace ash | 152 } // namespace ash |
| OLD | NEW |