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

Unified Diff: ash/system/tray/system_tray.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/tray/system_tray.h ('k') | ash/system/tray/system_tray_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray.cc
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc
index 7f0c48b901560931f45d88cff905a8672c0f3138..60e475a9718136d3ff7ba4f4b24a4d59d59e1658 100644
--- a/ash/system/tray/system_tray.cc
+++ b/ash/system/tray/system_tray.cc
@@ -5,8 +5,8 @@
#include "ash/system/tray/system_tray.h"
#include "ash/ash_switches.h"
+#include "ash/common/shelf/wm_shelf_util.h"
#include "ash/common/shell_window_ids.h"
-#include "ash/common/wm/shelf/wm_shelf_util.h"
#include "ash/metrics/user_metrics_recorder.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_util.h"
@@ -315,14 +315,14 @@ void SystemTray::UpdateAfterLoginStatusChange(user::LoginStatus login_status) {
// Items default to SHELF_ALIGNMENT_BOTTOM. Update them if the initial
// position of the shelf differs.
- if (!wm::IsHorizontalAlignment(shelf_alignment()))
+ if (!IsHorizontalAlignment(shelf_alignment()))
UpdateAfterShelfAlignmentChange(shelf_alignment());
SetVisible(true);
PreferredSizeChanged();
}
-void SystemTray::UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment) {
+void SystemTray::UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) {
for (SystemTrayItem* item : items_)
item->UpdateAfterShelfAlignmentChange(alignment);
}
@@ -415,7 +415,7 @@ base::string16 SystemTray::GetAccessibleNameForTray() {
int SystemTray::GetTrayXOffset(SystemTrayItem* item) const {
// Don't attempt to align the arrow if the shelf is on the left or right.
- if (!wm::IsHorizontalAlignment(shelf_alignment()))
+ if (!IsHorizontalAlignment(shelf_alignment()))
return TrayBubbleView::InitParams::kArrowDefaultOffset;
std::map<SystemTrayItem*, views::View*>::const_iterator it =
@@ -613,7 +613,7 @@ base::string16 SystemTray::GetAccessibleTimeString(
now, hour_type, base::kKeepAmPm);
}
-void SystemTray::SetShelfAlignment(wm::ShelfAlignment alignment) {
+void SystemTray::SetShelfAlignment(ShelfAlignment alignment) {
if (alignment == shelf_alignment())
return;
TrayBackgroundView::SetShelfAlignment(alignment);
@@ -716,7 +716,7 @@ bool SystemTray::PerformAction(const ui::Event& event) {
if (event.IsMouseEvent() || event.type() == ui::ET_GESTURE_TAP) {
const ui::LocatedEvent& located_event =
static_cast<const ui::LocatedEvent&>(event);
- if (wm::IsHorizontalAlignment(shelf_alignment())) {
+ if (IsHorizontalAlignment(shelf_alignment())) {
gfx::Point point(located_event.x(), 0);
ConvertPointToWidget(this, &point);
arrow_offset = point.x();
« no previous file with comments | « ash/system/tray/system_tray.h ('k') | ash/system/tray/system_tray_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698