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

Unified Diff: ash/system/cast/tray_cast.cc

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: rebase again 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
« no previous file with comments | « ash/system/cast/tray_cast.h ('k') | ash/system/chromeos/network/tray_network.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/cast/tray_cast.cc
diff --git a/ash/system/cast/tray_cast.cc b/ash/system/cast/tray_cast.cc
index f178d549dcf774d4084b9b8800570de6af7f9030..83a8624a69e360980046e13b2a3df57ae5829629 100644
--- a/ash/system/cast/tray_cast.cc
+++ b/ash/system/cast/tray_cast.cc
@@ -4,9 +4,9 @@
#include "ash/system/cast/tray_cast.h"
-#include "ash/common/wm/shelf/wm_shelf_util.h"
+#include "ash/common/shelf/shelf_types.h"
+#include "ash/common/shelf/wm_shelf_util.h"
#include "ash/session/session_state_delegate.h"
-#include "ash/shelf/shelf_types.h"
#include "ash/shelf/shelf_util.h"
#include "ash/shell.h"
#include "ash/system/chromeos/screen_security/screen_tray_item.h"
@@ -339,7 +339,7 @@ class CastTrayView : public TrayItemView {
// Called when the tray alignment changes so that the icon can recenter
// itself.
- void UpdateAlignment(wm::ShelfAlignment alignment);
+ void UpdateAlignment(ShelfAlignment alignment);
private:
DISALLOW_COPY_AND_ASSIGN(CastTrayView);
@@ -357,9 +357,9 @@ CastTrayView::CastTrayView(SystemTrayItem* tray_item)
CastTrayView::~CastTrayView() {
}
-void CastTrayView::UpdateAlignment(wm::ShelfAlignment alignment) {
+void CastTrayView::UpdateAlignment(ShelfAlignment alignment) {
// Center the item dependent on the orientation of the shelf.
- views::BoxLayout::Orientation layout = wm::IsHorizontalAlignment(alignment)
+ views::BoxLayout::Orientation layout = IsHorizontalAlignment(alignment)
? views::BoxLayout::kVertical
: views::BoxLayout::kHorizontal;
SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0));
@@ -674,7 +674,7 @@ void TrayCast::OnCastingSessionStartedOrStopped(bool started) {
UpdatePrimaryView();
}
-void TrayCast::UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment) {
+void TrayCast::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
if (tray_)
tray_->UpdateAlignment(alignment);
}
« no previous file with comments | « ash/system/cast/tray_cast.h ('k') | ash/system/chromeos/network/tray_network.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698