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

Side by Side Diff: ash/common/shelf/wm_shelf.cc

Issue 2268823002: mash: Move more shelf files to ash/common/shelf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. 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/common/shelf/wm_shelf.h ('k') | ash/common/system/status_area_layout_manager.h » ('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/common/shelf/shelf.h"
6 #include "ash/common/shelf/shelf_layout_manager.h"
5 #include "ash/common/shelf/wm_shelf.h" 7 #include "ash/common/shelf/wm_shelf.h"
6 #include "ash/common/shelf/wm_shelf_observer.h" 8 #include "ash/common/shelf/wm_shelf_observer.h"
7 #include "ash/common/wm_lookup.h" 9 #include "ash/common/wm_lookup.h"
8 #include "ash/shelf/shelf.h"
9 #include "ash/shelf/shelf_layout_manager.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 void WmShelf::SetShelf(Shelf* shelf) { 14 void WmShelf::SetShelf(Shelf* shelf) {
15 DCHECK(!shelf_); 15 DCHECK(!shelf_);
16 DCHECK(shelf); 16 DCHECK(shelf);
17 shelf_ = shelf; 17 shelf_ = shelf;
18 } 18 }
19 19
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 void WmShelf::OnBackgroundUpdated(ShelfBackgroundType background_type, 194 void WmShelf::OnBackgroundUpdated(ShelfBackgroundType background_type,
195 BackgroundAnimatorChangeType change_type) { 195 BackgroundAnimatorChangeType change_type) {
196 if (background_type == GetBackgroundType()) 196 if (background_type == GetBackgroundType())
197 return; 197 return;
198 FOR_EACH_OBSERVER(WmShelfObserver, observers_, 198 FOR_EACH_OBSERVER(WmShelfObserver, observers_,
199 OnBackgroundTypeChanged(background_type, change_type)); 199 OnBackgroundTypeChanged(background_type, change_type));
200 } 200 }
201 201
202 } // namespace ash 202 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/shelf/wm_shelf.h ('k') | ash/common/system/status_area_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698