OLD | NEW |
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 #ifndef MASH_WM_BRIDGE_WM_SHELF_MUS_H_ | 5 #ifndef ASH_MUS_BRIDGE_WM_SHELF_MUS_H_ |
6 #define MASH_WM_BRIDGE_WM_SHELF_MUS_H_ | 6 #define ASH_MUS_BRIDGE_WM_SHELF_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "ash/common/wm/shelf/wm_shelf.h" | 12 #include "ash/common/wm/shelf/wm_shelf.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 | 15 |
16 namespace mash { | 16 namespace ash { |
17 namespace wm { | 17 namespace mus { |
18 | 18 |
19 class ShelfLayoutManager; | 19 class ShelfLayoutManager; |
20 | 20 |
21 // WmShelf implementation for mus. | 21 // WmShelf implementation for mus. |
22 class WmShelfMus : public ash::wm::WmShelf { | 22 class WmShelfMus : public wm::WmShelf { |
23 public: | 23 public: |
24 explicit WmShelfMus(ShelfLayoutManager* shelf_layout_manager); | 24 explicit WmShelfMus(ShelfLayoutManager* shelf_layout_manager); |
25 ~WmShelfMus() override; | 25 ~WmShelfMus() override; |
26 | 26 |
27 // ash::wm::WmShelf: | 27 // wm::WmShelf: |
28 ash::wm::WmWindow* GetWindow() override; | 28 wm::WmWindow* GetWindow() override; |
29 ash::wm::ShelfAlignment GetAlignment() const override; | 29 wm::ShelfAlignment GetAlignment() const override; |
30 ash::wm::ShelfBackgroundType GetBackgroundType() const override; | 30 wm::ShelfBackgroundType GetBackgroundType() const override; |
31 void UpdateVisibilityState() override; | 31 void UpdateVisibilityState() override; |
32 ash::ShelfVisibilityState GetVisibilityState() const override; | 32 ShelfVisibilityState GetVisibilityState() const override; |
33 void UpdateIconPositionForWindow(ash::wm::WmWindow* window) override; | 33 void UpdateIconPositionForWindow(wm::WmWindow* window) override; |
34 gfx::Rect GetScreenBoundsOfItemIconForWindow( | 34 gfx::Rect GetScreenBoundsOfItemIconForWindow(wm::WmWindow* window) override; |
35 ash::wm::WmWindow* window) override; | 35 void AddObserver(wm::WmShelfObserver* observer) override; |
36 void AddObserver(ash::wm::WmShelfObserver* observer) override; | 36 void RemoveObserver(wm::WmShelfObserver* observer) override; |
37 void RemoveObserver(ash::wm::WmShelfObserver* observer) override; | |
38 | 37 |
39 private: | 38 private: |
40 base::ObserverList<ash::wm::WmShelfObserver> observers_; | 39 base::ObserverList<wm::WmShelfObserver> observers_; |
41 | 40 |
42 ShelfLayoutManager* shelf_layout_manager_; | 41 ShelfLayoutManager* shelf_layout_manager_; |
43 | 42 |
44 DISALLOW_COPY_AND_ASSIGN(WmShelfMus); | 43 DISALLOW_COPY_AND_ASSIGN(WmShelfMus); |
45 }; | 44 }; |
46 | 45 |
47 } // namespace wm | 46 } // namespace mus |
48 } // namespace mash | 47 } // namespace ash |
49 | 48 |
50 #endif // MASH_WM_BRIDGE_WM_SHELF_MUS_H_ | 49 #endif // ASH_MUS_BRIDGE_WM_SHELF_MUS_H_ |
OLD | NEW |