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

Unified Diff: ash/shelf/shelf_layout_manager.h

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: rebase Created 3 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 | « ash/shelf/shelf_controller.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.h
diff --git a/ash/shelf/shelf_layout_manager.h b/ash/shelf/shelf_layout_manager.h
index eb5740f0eef4c63c5142fdc691c5b816db57334c..6715b44561b9fc58c3015ea62a2155e2ac831209 100644
--- a/ash/shelf/shelf_layout_manager.h
+++ b/ash/shelf/shelf_layout_manager.h
@@ -10,7 +10,7 @@
#include "ash/ash_export.h"
#include "ash/public/cpp/shelf_types.h"
#include "ash/session/session_observer.h"
-#include "ash/shelf/wm_shelf.h"
+#include "ash/shelf/shelf.h"
#include "ash/shell_observer.h"
#include "ash/wm/lock_state_observer.h"
#include "ash/wm/wm_snap_to_pixel_layout_manager.h"
@@ -37,10 +37,10 @@ namespace ash {
enum class AnimationChangeType;
class PanelLayoutManagerTest;
+class Shelf;
class ShelfLayoutManagerObserver;
class ShelfLayoutManagerTest;
class ShelfWidget;
-class WmShelf;
// ShelfLayoutManager is the layout manager responsible for the shelf and
// status widgets. The shelf is given the total available width and told the
@@ -57,7 +57,7 @@ class ASH_EXPORT ShelfLayoutManager
public wm::WmSnapToPixelLayoutManager,
public SessionObserver {
public:
- ShelfLayoutManager(ShelfWidget* shelf_widget, WmShelf* wm_shelf);
+ ShelfLayoutManager(ShelfWidget* shelf_widget, Shelf* shelf);
~ShelfLayoutManager() override;
bool updating_bounds() const { return updating_bounds_; }
@@ -159,7 +159,7 @@ class ASH_EXPORT ShelfLayoutManager
// A helper function for choosing values specific to a shelf alignment.
template <typename T>
T SelectValueForShelfAlignment(T bottom, T left, T right) const {
- switch (wm_shelf_->GetAlignment()) {
+ switch (shelf_->alignment()) {
case SHELF_ALIGNMENT_BOTTOM:
case SHELF_ALIGNMENT_BOTTOM_LOCKED:
return bottom;
@@ -174,7 +174,7 @@ class ASH_EXPORT ShelfLayoutManager
template <typename T>
T PrimaryAxisValue(T horizontal, T vertical) const {
- return wm_shelf_->IsHorizontalAlignment() ? horizontal : vertical;
+ return shelf_->IsHorizontalAlignment() ? horizontal : vertical;
}
// Returns how the shelf background should be painted.
@@ -308,7 +308,7 @@ class ASH_EXPORT ShelfLayoutManager
State state_;
ShelfWidget* shelf_widget_;
- WmShelf* wm_shelf_;
+ Shelf* shelf_;
// Do any windows overlap the shelf? This is maintained by WorkspaceManager.
bool window_overlaps_shelf_;
« no previous file with comments | « ash/shelf/shelf_controller.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698