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

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

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp Created 4 years, 6 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 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/wm/aura/wm_shelf_aura.h" 5 #include "ash/wm/aura/wm_shelf_aura.h"
6 6
7 #include "ash/common/wm/shelf/wm_shelf_observer.h" 7 #include "ash/common/shelf/wm_shelf_observer.h"
8 #include "ash/common/wm/wm_window.h" 8 #include "ash/common/wm/wm_window.h"
9 #include "ash/shelf/shelf.h" 9 #include "ash/shelf/shelf.h"
10 #include "ash/shelf/shelf_layout_manager.h" 10 #include "ash/shelf/shelf_layout_manager.h"
11 #include "ash/wm/aura/wm_window_aura.h" 11 #include "ash/wm/aura/wm_window_aura.h"
12 #include "ui/views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace wm { 15 namespace wm {
16 16
17 WmShelfAura::WmShelfAura(Shelf* shelf) 17 WmShelfAura::WmShelfAura(Shelf* shelf)
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void WmShelfAura::RemoveObserver(WmShelfObserver* observer) { 69 void WmShelfAura::RemoveObserver(WmShelfObserver* observer) {
70 observers_.RemoveObserver(observer); 70 observers_.RemoveObserver(observer);
71 } 71 }
72 72
73 void WmShelfAura::WillDeleteShelfLayoutManager() { 73 void WmShelfAura::WillDeleteShelfLayoutManager() {
74 shelf_layout_manager_->RemoveObserver(this); 74 shelf_layout_manager_->RemoveObserver(this);
75 shelf_layout_manager_ = nullptr; 75 shelf_layout_manager_ = nullptr;
76 } 76 }
77 77
78 void WmShelfAura::OnBackgroundUpdated( 78 void WmShelfAura::OnBackgroundUpdated(
79 wm::ShelfBackgroundType background_type, 79 ShelfBackgroundType background_type,
80 BackgroundAnimatorChangeType change_type) { 80 BackgroundAnimatorChangeType change_type) {
81 FOR_EACH_OBSERVER(WmShelfObserver, observers_, 81 FOR_EACH_OBSERVER(WmShelfObserver, observers_,
82 OnBackgroundUpdated(background_type, change_type)); 82 OnBackgroundUpdated(background_type, change_type));
83 } 83 }
84 84
85 void WmShelfAura::WillChangeVisibilityState(ShelfVisibilityState new_state) { 85 void WmShelfAura::WillChangeVisibilityState(ShelfVisibilityState new_state) {
86 FOR_EACH_OBSERVER(WmShelfObserver, observers_, 86 FOR_EACH_OBSERVER(WmShelfObserver, observers_,
87 WillChangeVisibilityState(new_state)); 87 WillChangeVisibilityState(new_state));
88 } 88 }
89 89
90 void WmShelfAura::OnShelfIconPositionsChanged() { 90 void WmShelfAura::OnShelfIconPositionsChanged() {
91 FOR_EACH_OBSERVER(WmShelfObserver, observers_, OnShelfIconPositionsChanged()); 91 FOR_EACH_OBSERVER(WmShelfObserver, observers_, OnShelfIconPositionsChanged());
92 } 92 }
93 93
94 } // namespace wm 94 } // namespace wm
95 } // namespace ash 95 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698