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

Side by Side Diff: ash/system/web_notification/ash_popup_alignment_delegate.cc

Issue 2007003002: mash: Preliminary support for shelf auto-hide (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shutdown
Patch Set: cleanup Created 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698