Chromium Code Reviews| 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 MASH_WM_BRIDGE_WM_SHELF_MUS_H_ | |
| 6 #define MASH_WM_BRIDGE_WM_SHELF_MUS_H_ | |
| 7 | |
| 8 #include <stdint.h> | |
| 9 | |
| 10 #include <vector> | |
| 11 | |
| 12 #include "ash/wm/common/shelf/wm_shelf.h" | |
| 13 #include "base/macros.h" | |
| 14 #include "base/observer_list.h" | |
| 15 | |
| 16 namespace mash { | |
| 17 namespace wm { | |
| 18 | |
| 19 class ShelfLayoutManager; | |
| 20 | |
| 21 // WmShelf implementation for mus. | |
| 22 class WmShelfMus : public ash::wm::WmShelf { | |
| 23 public: | |
| 24 explicit WmShelfMus(ShelfLayoutManager* shelf_layout_manager); | |
| 25 ~WmShelfMus() override; | |
| 26 | |
| 27 // ash::wm::WmShelf: | |
|
msw
2016/05/18 00:37:30
Hmm, I'm trying to understand why this is needed i
sky
2016/05/18 16:18:32
The mash wm (aka desktop_wm) is not part of ash_sy
msw
2016/05/18 17:25:35
That does make sense, thanks for the thoughtful ex
| |
| 28 ash::wm::WmWindow* GetWindow() override; | |
| 29 ash::wm::ShelfAlignment GetAlignment() const override; | |
| 30 ash::wm::ShelfBackgroundType GetBackgroundType() const override; | |
| 31 void UpdateVisibilityState() override; | |
| 32 ash::ShelfVisibilityState GetVisibilityState() const override; | |
| 33 void UpdateIconPositionForWindow(ash::wm::WmWindow* window) override; | |
| 34 gfx::Rect GetScreenBoundsOfItemIconForWindow( | |
| 35 ash::wm::WmWindow* window) override; | |
| 36 void AddObserver(ash::wm::WmShelfObserver* observer) override; | |
| 37 void RemoveObserver(ash::wm::WmShelfObserver* observer) override; | |
| 38 | |
| 39 base::ObserverList<ash::wm::WmShelfObserver> observers_; | |
|
msw
2016/05/18 00:37:30
Make these private (here or above).
sky
2016/05/18 16:18:32
Done.
| |
| 40 | |
| 41 ShelfLayoutManager* shelf_layout_manager_; | |
| 42 | |
| 43 DISALLOW_COPY_AND_ASSIGN(WmShelfMus); | |
| 44 }; | |
| 45 | |
| 46 } // namespace wm | |
| 47 } // namespace mash | |
| 48 | |
| 49 #endif // MASH_WM_BRIDGE_WM_SHELF_MUS_H_ | |
| OLD | NEW |