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

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

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment Created 4 years, 8 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/wm/aura/wm_root_window_controller_aura.cc ('k') | ash/wm/aura/wm_shelf_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_WM_AURA_WM_SHELF_AURA_H_
6 #define ASH_WM_AURA_WM_SHELF_AURA_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/shelf/shelf_layout_manager_observer.h"
10 #include "ash/wm/common/shelf/wm_shelf.h"
11 #include "base/macros.h"
12 #include "base/observer_list.h"
13
14 namespace ash {
15
16 class Shelf;
17 class ShelfLayoutManager;
18
19 namespace wm {
20
21 // Aura implementation of WmShelf.
22 class ASH_EXPORT WmShelfAura : public WmShelf,
23 public ShelfLayoutManagerObserver {
24 public:
25 explicit WmShelfAura(Shelf* shelf);
26 ~WmShelfAura() override;
27
28 private:
29 // WmShelf:
30 WmWindow* GetWindow() override;
31 ShelfAlignment GetAlignment() override;
32 ShelfBackgroundType GetBackgroundType() override;
33 void UpdateVisibilityState() override;
34 void AddObserver(WmShelfObserver* observer) override;
35 void RemoveObserver(WmShelfObserver* observer) override;
36
37 // ShelfLayoutManagerObserver:
38 void WillDeleteShelf() override;
39 void OnBackgroundUpdated(wm::ShelfBackgroundType background_type,
40 BackgroundAnimatorChangeType change_type) override;
41
42 Shelf* shelf_;
43 base::ObserverList<WmShelfObserver> observers_;
44 // ShelfLayoutManager is cached separately as it may be destroyed before
45 // WmShelfAura.
46 ShelfLayoutManager* shelf_layout_manager_;
47
48 DISALLOW_COPY_AND_ASSIGN(WmShelfAura);
49 };
50
51 } // namespace wm
52 } // namespace ash
53
54 #endif // ASH_WM_AURA_WM_SHELF_AURA_H_
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_root_window_controller_aura.cc ('k') | ash/wm/aura/wm_shelf_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698