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

Side by Side Diff: ash/aura/wm_shelf_aura.h

Issue 2029323002: mash: Convert AshPopupAlignmentDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/aura/wm_shelf_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 ASH_AURA_WM_SHELF_AURA_H_ 5 #ifndef ASH_AURA_WM_SHELF_AURA_H_
6 #define ASH_AURA_WM_SHELF_AURA_H_ 6 #define ASH_AURA_WM_SHELF_AURA_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/shelf/wm_shelf.h" 9 #include "ash/common/shelf/wm_shelf.h"
10 #include "ash/shelf/shelf_icon_observer.h" 10 #include "ash/shelf/shelf_icon_observer.h"
(...skipping 25 matching lines...) Expand all
36 36
37 private: 37 private:
38 void ResetShelfLayoutManager(); 38 void ResetShelfLayoutManager();
39 39
40 // WmShelf: 40 // WmShelf:
41 WmWindow* GetWindow() override; 41 WmWindow* GetWindow() override;
42 ShelfAlignment GetAlignment() const override; 42 ShelfAlignment GetAlignment() const override;
43 void SetAlignment(ShelfAlignment alignment) override; 43 void SetAlignment(ShelfAlignment alignment) override;
44 ShelfAutoHideBehavior GetAutoHideBehavior() const override; 44 ShelfAutoHideBehavior GetAutoHideBehavior() const override;
45 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) override; 45 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior) override;
46 ShelfAutoHideState GetAutoHideState() const override;
46 ShelfBackgroundType GetBackgroundType() const override; 47 ShelfBackgroundType GetBackgroundType() const override;
47 void UpdateVisibilityState() override; 48 void UpdateVisibilityState() override;
48 ShelfVisibilityState GetVisibilityState() const override; 49 ShelfVisibilityState GetVisibilityState() const override;
50 gfx::Rect GetUserWorkAreaBounds() const override;
49 void UpdateIconPositionForWindow(WmWindow* window) override; 51 void UpdateIconPositionForWindow(WmWindow* window) override;
50 gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) override; 52 gfx::Rect GetScreenBoundsOfItemIconForWindow(WmWindow* window) override;
51 void AddObserver(WmShelfObserver* observer) override; 53 void AddObserver(WmShelfObserver* observer) override;
52 void RemoveObserver(WmShelfObserver* observer) override; 54 void RemoveObserver(WmShelfObserver* observer) override;
53 55
54 // ShelfLayoutManagerObserver: 56 // ShelfLayoutManagerObserver:
55 void WillDeleteShelfLayoutManager() override; 57 void WillDeleteShelfLayoutManager() override;
58 void OnAutoHideStateChanged(ShelfAutoHideState new_state) override;
56 void OnBackgroundUpdated(ShelfBackgroundType background_type, 59 void OnBackgroundUpdated(ShelfBackgroundType background_type,
57 BackgroundAnimatorChangeType change_type) override; 60 BackgroundAnimatorChangeType change_type) override;
58 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; 61 void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
59 62
60 // ShelfIconObserver: 63 // ShelfIconObserver:
61 void OnShelfIconPositionsChanged() override; 64 void OnShelfIconPositionsChanged() override;
62 65
63 // May be null during login. 66 // May be null during login and during initialization of a secondary display.
64 Shelf* shelf_ = nullptr; 67 Shelf* shelf_ = nullptr;
65 68
66 // Cached separately because it may be destroyed before |shelf_|. 69 // Cached separately because it may be destroyed before |shelf_|.
67 ShelfLayoutManager* shelf_layout_manager_ = nullptr; 70 ShelfLayoutManager* shelf_layout_manager_ = nullptr;
68 71
69 base::ObserverList<WmShelfObserver> observers_; 72 base::ObserverList<WmShelfObserver> observers_;
70 73
71 DISALLOW_COPY_AND_ASSIGN(WmShelfAura); 74 DISALLOW_COPY_AND_ASSIGN(WmShelfAura);
72 }; 75 };
73 76
74 } // namespace ash 77 } // namespace ash
75 78
76 #endif // ASH_AURA_WM_SHELF_AURA_H_ 79 #endif // ASH_AURA_WM_SHELF_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ash/aura/wm_shelf_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698