OLD | NEW |
---|---|
(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 class ASH_EXPORT WmShelfAura : public WmShelf, | |
James Cook
2016/04/26 15:22:34
nit: Class comment please
sky
2016/04/26 16:26:02
Done.
| |
22 public ShelfLayoutManagerObserver { | |
23 public: | |
24 explicit WmShelfAura(Shelf* shelf); | |
25 ~WmShelfAura() override; | |
26 | |
27 private: | |
28 // WmShelf: | |
29 WmWindow* GetWindow() override; | |
30 ShelfAlignment GetAlignment() override; | |
31 ShelfBackgroundType GetBackgroundType() override; | |
32 void UpdateVisibilityState() override; | |
33 void AddObserver(WmShelfObserver* observer) override; | |
34 void RemoveObserver(WmShelfObserver* observer) override; | |
35 | |
36 // ShelfLayoutManagerObserver: | |
37 void WillDeleteShelf() override; | |
38 void OnBackgroundUpdated(wm::ShelfBackgroundType background_type, | |
39 BackgroundAnimatorChangeType change_type) override; | |
40 | |
41 Shelf* shelf_; | |
42 base::ObserverList<WmShelfObserver> observers_; | |
43 // ShelfLayoutManager is cached separately as it may be destroyed before | |
44 // WmShelfAura. | |
45 ShelfLayoutManager* shelf_layout_manager_; | |
46 | |
47 DISALLOW_COPY_AND_ASSIGN(WmShelfAura); | |
48 }; | |
49 | |
50 } // namespace wm | |
51 } // namespace ash | |
52 | |
53 #endif // ASH_WM_AURA_WM_SHELF_AURA_H_ | |
OLD | NEW |