Chromium Code Reviews| Index: mash/wm/bridge/wm_shelf_mus.h |
| diff --git a/mash/wm/bridge/wm_shelf_mus.h b/mash/wm/bridge/wm_shelf_mus.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..069079ff86f10d3d9d469c2d21774b7052c8b692 |
| --- /dev/null |
| +++ b/mash/wm/bridge/wm_shelf_mus.h |
| @@ -0,0 +1,49 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MASH_WM_BRIDGE_WM_SHELF_MUS_H_ |
| +#define MASH_WM_BRIDGE_WM_SHELF_MUS_H_ |
| + |
| +#include <stdint.h> |
| + |
| +#include <vector> |
| + |
| +#include "ash/wm/common/shelf/wm_shelf.h" |
| +#include "base/macros.h" |
| +#include "base/observer_list.h" |
| + |
| +namespace mash { |
| +namespace wm { |
| + |
| +class ShelfLayoutManager; |
| + |
| +// WmShelf implementation for mus. |
| +class WmShelfMus : public ash::wm::WmShelf { |
| + public: |
| + explicit WmShelfMus(ShelfLayoutManager* shelf_layout_manager); |
| + ~WmShelfMus() override; |
| + |
| + // 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
|
| + ash::wm::WmWindow* GetWindow() override; |
| + ash::wm::ShelfAlignment GetAlignment() const override; |
| + ash::wm::ShelfBackgroundType GetBackgroundType() const override; |
| + void UpdateVisibilityState() override; |
| + ash::ShelfVisibilityState GetVisibilityState() const override; |
| + void UpdateIconPositionForWindow(ash::wm::WmWindow* window) override; |
| + gfx::Rect GetScreenBoundsOfItemIconForWindow( |
| + ash::wm::WmWindow* window) override; |
| + void AddObserver(ash::wm::WmShelfObserver* observer) override; |
| + void RemoveObserver(ash::wm::WmShelfObserver* observer) override; |
| + |
| + 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.
|
| + |
| + ShelfLayoutManager* shelf_layout_manager_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(WmShelfMus); |
| +}; |
| + |
| +} // namespace wm |
| +} // namespace mash |
| + |
| +#endif // MASH_WM_BRIDGE_WM_SHELF_MUS_H_ |