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

Side by Side Diff: ash/aura/wm_shelf_aura.cc

Issue 2190773003: [ABANDONED] Simplify ash shelf dimmer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore an EventHandler object; fix behavior tests. Created 4 years, 4 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
« no previous file with comments | « ash/aura/wm_shelf_aura.h ('k') | ash/common/shelf/app_list_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/aura/wm_shelf_aura.h ('k') | ash/common/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698