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

Unified Diff: mash/wm/bridge/wm_shelf_mus.h

Issue 1991553002: Creates mus implementation of WmShelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: private Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/BUILD.gn ('k') | mash/wm/bridge/wm_shelf_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..dfc3bdcdff7474e14e59fd56ebb78ce98c651bfb
--- /dev/null
+++ b/mash/wm/bridge/wm_shelf_mus.h
@@ -0,0 +1,50 @@
+// 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:
+ 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;
+
+ private:
+ base::ObserverList<ash::wm::WmShelfObserver> observers_;
+
+ ShelfLayoutManager* shelf_layout_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(WmShelfMus);
+};
+
+} // namespace wm
+} // namespace mash
+
+#endif // MASH_WM_BRIDGE_WM_SHELF_MUS_H_
« no previous file with comments | « mash/wm/BUILD.gn ('k') | mash/wm/bridge/wm_shelf_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698