| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/aura/wm_shelf_aura.h" | 5 #include "ash/aura/wm_shelf_aura.h" |
| 6 | 6 |
| 7 #include "ash/aura/wm_window_aura.h" | 7 #include "ash/aura/wm_window_aura.h" |
| 8 #include "ash/common/shelf/wm_shelf_observer.h" | 8 #include "ash/common/shelf/wm_shelf_observer.h" |
| 9 #include "ash/common/wm_window.h" | 9 #include "ash/common/wm_window.h" |
| 10 #include "ash/shelf/shelf.h" | 10 #include "ash/shelf/shelf.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 } | 81 } |
| 82 | 82 |
| 83 void WmShelfAura::UpdateAutoHideState() { | 83 void WmShelfAura::UpdateAutoHideState() { |
| 84 shelf_layout_manager_->UpdateAutoHideState(); | 84 shelf_layout_manager_->UpdateAutoHideState(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 ShelfBackgroundType WmShelfAura::GetBackgroundType() const { | 87 ShelfBackgroundType WmShelfAura::GetBackgroundType() const { |
| 88 return shelf_layout_manager_->shelf_widget()->GetBackgroundType(); | 88 return shelf_layout_manager_->shelf_widget()->GetBackgroundType(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 bool WmShelfAura::IsDimmed() const { | |
| 92 return shelf_layout_manager_->shelf_widget()->GetDimsShelf(); | |
| 93 } | |
| 94 | |
| 95 bool WmShelfAura::IsShowingOverflowBubble() const { | 91 bool WmShelfAura::IsShowingOverflowBubble() const { |
| 96 return shelf_->IsShowingOverflowBubble(); | 92 return shelf_->IsShowingOverflowBubble(); |
| 97 } | 93 } |
| 98 | 94 |
| 99 void WmShelfAura::SchedulePaint() { | 95 void WmShelfAura::SchedulePaint() { |
| 100 // Can be called during shutdown if the overflow bubble is visible. | 96 // Can be called during shutdown if the overflow bubble is visible. |
| 101 if (shelf_) | 97 if (shelf_) |
| 102 shelf_->SchedulePaint(); | 98 shelf_->SchedulePaint(); |
| 103 } | 99 } |
| 104 | 100 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 void WmShelfAura::OnAutoHideStateChanged(ShelfAutoHideState new_state) { | 186 void WmShelfAura::OnAutoHideStateChanged(ShelfAutoHideState new_state) { |
| 191 FOR_EACH_OBSERVER(WmShelfObserver, observers_, | 187 FOR_EACH_OBSERVER(WmShelfObserver, observers_, |
| 192 OnAutoHideStateChanged(new_state)); | 188 OnAutoHideStateChanged(new_state)); |
| 193 } | 189 } |
| 194 | 190 |
| 195 void WmShelfAura::OnShelfIconPositionsChanged() { | 191 void WmShelfAura::OnShelfIconPositionsChanged() { |
| 196 FOR_EACH_OBSERVER(WmShelfObserver, observers_, OnShelfIconPositionsChanged()); | 192 FOR_EACH_OBSERVER(WmShelfObserver, observers_, OnShelfIconPositionsChanged()); |
| 197 } | 193 } |
| 198 | 194 |
| 199 } // namespace ash | 195 } // namespace ash |
| OLD | NEW |