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

Unified Diff: ash/shelf/shelf.h

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp 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 side-by-side diff with in-line comments
Download patch
Index: ash/shelf/shelf.h
diff --git a/ash/shelf/shelf.h b/ash/shelf/shelf.h
index f88dcd8136eac3918a9f88a9b9902d1aa553afdc..b7baf9e6a7e2708a2922a3dbb9d25de0e976ee8a 100644
--- a/ash/shelf/shelf.h
+++ b/ash/shelf/shelf.h
@@ -10,9 +10,9 @@
#include <memory>
#include "ash/ash_export.h"
-#include "ash/shelf/shelf_constants.h"
+#include "ash/common/shelf/shelf_constants.h"
+#include "ash/common/shelf/shelf_types.h"
#include "ash/shelf/shelf_locking_manager.h"
-#include "ash/shelf/shelf_types.h"
#include "ash/shelf/shelf_widget.h"
#include "base/macros.h"
#include "ui/gfx/geometry/size.h"
@@ -72,8 +72,8 @@ class ASH_EXPORT Shelf {
// does not exist or does not have a shelf.
static Shelf* ForDisplayId(int64_t display_id);
- void SetAlignment(wm::ShelfAlignment alignment);
- wm::ShelfAlignment alignment() const { return alignment_; }
+ void SetAlignment(ShelfAlignment alignment);
+ ShelfAlignment alignment() const { return alignment_; }
bool IsHorizontalAlignment() const;
// Sets the ShelfAutoHideBehavior. See enum description for details.
@@ -90,12 +90,12 @@ class ASH_EXPORT Shelf {
template <typename T>
T SelectValueForShelfAlignment(T bottom, T left, T right) const {
switch (alignment_) {
- case wm::SHELF_ALIGNMENT_BOTTOM:
- case wm::SHELF_ALIGNMENT_BOTTOM_LOCKED:
+ case SHELF_ALIGNMENT_BOTTOM:
+ case SHELF_ALIGNMENT_BOTTOM_LOCKED:
return bottom;
- case wm::SHELF_ALIGNMENT_LEFT:
+ case SHELF_ALIGNMENT_LEFT:
return left;
- case wm::SHELF_ALIGNMENT_RIGHT:
+ case SHELF_ALIGNMENT_RIGHT:
return right;
}
NOTREACHED();
@@ -167,7 +167,7 @@ class ASH_EXPORT Shelf {
ShelfView* shelf_view_;
ShelfLockingManager shelf_locking_manager_;
- wm::ShelfAlignment alignment_ = wm::SHELF_ALIGNMENT_BOTTOM;
+ ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM;
ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER;
DISALLOW_COPY_AND_ASSIGN(Shelf);

Powered by Google App Engine
This is Rietveld 408576698