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

Unified Diff: ash/system/tray/tray_item_view.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/tray_image_item.cc ('k') | ash/system/tray/tray_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_item_view.cc
diff --git a/ash/system/tray/tray_item_view.cc b/ash/system/tray/tray_item_view.cc
index 5fe35ec32a12e16776757d9ced715e77f4cffa70..f7d4652b8ae2e456709269b7cd26acb02e74306f 100644
--- a/ash/system/tray/tray_item_view.cc
+++ b/ash/system/tray/tray_item_view.cc
@@ -4,8 +4,8 @@
#include "ash/system/tray/tray_item_view.h"
-#include "ash/common/wm/shelf/wm_shelf_util.h"
-#include "ash/shelf/shelf_types.h"
+#include "ash/common/shelf/shelf_types.h"
+#include "ash/common/shelf/wm_shelf_util.h"
#include "ash/shelf/shelf_util.h"
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/system_tray_item.h"
@@ -87,13 +87,13 @@ int TrayItemView::GetAnimationDurationMS() {
gfx::Size TrayItemView::GetPreferredSize() const {
gfx::Size size = DesiredSize();
- if (wm::IsHorizontalAlignment(owner()->system_tray()->shelf_alignment()))
+ if (IsHorizontalAlignment(owner()->system_tray()->shelf_alignment()))
size.set_height(kTrayIconHeight);
else
size.set_width(kTrayIconWidth);
if (!animation_.get() || !animation_->is_animating())
return size;
- if (wm::IsHorizontalAlignment(owner()->system_tray()->shelf_alignment())) {
+ if (IsHorizontalAlignment(owner()->system_tray()->shelf_alignment())) {
size.set_width(std::max(1,
static_cast<int>(size.width() * animation_->GetCurrentValue())));
} else {
@@ -113,7 +113,7 @@ void TrayItemView::ChildPreferredSizeChanged(views::View* child) {
void TrayItemView::AnimationProgressed(const gfx::Animation* animation) {
gfx::Transform transform;
- if (wm::IsHorizontalAlignment(owner()->system_tray()->shelf_alignment())) {
+ if (IsHorizontalAlignment(owner()->system_tray()->shelf_alignment())) {
transform.Translate(0, animation->CurrentValueBetween(
static_cast<double>(height()) / 2, 0.));
} else {
« no previous file with comments | « ash/system/tray/tray_image_item.cc ('k') | ash/system/tray/tray_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698