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

Unified Diff: ash/aura/wm_shelf_aura.h

Issue 2247503002: mash: Create and show a shelf in mash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix WindowManager WmShell::Shutdown; delay PointerWatcherEventRouter teardown; cleanup shutdown wor… Created 4 years, 4 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
Index: ash/aura/wm_shelf_aura.h
diff --git a/ash/aura/wm_shelf_aura.h b/ash/aura/wm_shelf_aura.h
index 28a6cf1f054cd9ab8220d06373f1a2d9cacfa80c..5fa47bd4bf9cb0aa44101c416a41146bc6a47458 100644
--- a/ash/aura/wm_shelf_aura.h
+++ b/ash/aura/wm_shelf_aura.h
@@ -6,83 +6,27 @@
#define ASH_AURA_WM_SHELF_AURA_H_
#include "ash/ash_export.h"
-#include "ash/common/shelf/shelf_icon_observer.h"
#include "ash/common/shelf/wm_shelf.h"
-#include "ash/shelf/shelf_layout_manager_observer.h"
#include "base/macros.h"
-#include "base/observer_list.h"
namespace ash {
-class Shelf;
class ShelfBezelEventHandler;
-class ShelfLayoutManager;
// Aura implementation of WmShelf.
-class ASH_EXPORT WmShelfAura : public WmShelf,
- public ShelfLayoutManagerObserver,
- public ShelfIconObserver {
+class ASH_EXPORT WmShelfAura : public WmShelf {
public:
WmShelfAura();
~WmShelfAura() override;
- // This object is initialized in multiple steps as the RootWindowController
- // constructs the components of the shelf.
- void SetShelfLayoutManager(ShelfLayoutManager* shelf_layout_manager);
- void SetShelf(Shelf* shelf);
-
- void Shutdown();
-
- static Shelf* GetShelf(WmShelf* shelf);
-
- private:
- class AutoHideEventHandler;
-
- void ResetShelfLayoutManager();
-
// WmShelf:
- WmWindow* GetWindow() override;
- ShelfAlignment GetAlignment() const override;
- void SetAlignment(ShelfAlignment alignment) override;
- ShelfAutoHideBehavior GetAutoHideBehavior() const override;
- void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) override;
- ShelfAutoHideState GetAutoHideState() const override;
- void UpdateAutoHideState() override;
- ShelfBackgroundType GetBackgroundType() const override;
WmDimmerView* CreateDimmerView(bool disable_animations_for_test) override;
- bool IsDimmed() const override;
- void SchedulePaint() override;
- bool IsVisible() const override;
- void UpdateVisibilityState() override;
- ShelfVisibilityState GetVisibilityState() const override;
- gfx::Rect GetIdealBounds() override;
- gfx::Rect GetUserWorkAreaBounds() const override;
- void UpdateIconPositionForWindow(WmWindow* window) override;
- gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) override;
- bool ProcessGestureEvent(const ui::GestureEvent& event) override;
- void AddObserver(WmShelfObserver* observer) override;
- void RemoveObserver(WmShelfObserver* observer) override;
- void SetKeyboardBoundsForTesting(const gfx::Rect& bounds) override;
- ShelfLockingManager* GetShelfLockingManagerForTesting() override;
- ShelfView* GetShelfViewForTesting() override;
-
- // ShelfLayoutManagerObserver:
+ void SetShelfLayoutManager(ShelfLayoutManager* manager) override;
void WillDeleteShelfLayoutManager() override;
- void OnAutoHideStateChanged(ShelfAutoHideState new_state) override;
- void OnBackgroundUpdated(ShelfBackgroundType background_type,
- BackgroundAnimatorChangeType change_type) override;
void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
- // ShelfIconObserver:
- void OnShelfIconPositionsChanged() override;
-
- // May be null during login and during initialization of a secondary display.
- Shelf* shelf_ = nullptr;
-
- // Cached separately because it may be destroyed before |shelf_|.
- ShelfLayoutManager* shelf_layout_manager_ = nullptr;
-
- base::ObserverList<WmShelfObserver> observers_;
+ private:
+ class AutoHideEventHandler;
// Forwards mouse and gesture events to ShelfLayoutManager for auto-hide.
// TODO(mash): Facilitate simliar functionality in mash: crbug.com/631216

Powered by Google App Engine
This is Rietveld 408576698