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

Unified Diff: ash/system/tray/tray_image_item.cc

Issue 1929023002: Refactors WindowResizers to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/system/tray/tray_image_item.cc
diff --git a/ash/system/tray/tray_image_item.cc b/ash/system/tray/tray_image_item.cc
index fc5d750d65917c514931a5dee4b2ef00108e171d..5a4475ac17215ee4568d0c93d1bed12115274f72 100644
--- a/ash/system/tray/tray_image_item.cc
+++ b/ash/system/tray/tray_image_item.cc
@@ -8,6 +8,7 @@
#include "ash/system/tray/system_tray.h"
#include "ash/system/tray/tray_item_view.h"
#include "ash/system/tray/tray_utils.h"
+#include "ash/wm/common/shelf/wm_shelf_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"
#include "ui/views/controls/image_view.h"
@@ -75,7 +76,7 @@ void TrayImageItem::DestroyDetailedView() {
void TrayImageItem::SetItemAlignment(wm::ShelfAlignment alignment) {
// Center the item dependent on the orientation of the shelf.
- views::BoxLayout::Orientation layout = IsHorizontalAlignment(alignment)
+ views::BoxLayout::Orientation layout = wm::IsHorizontalAlignment(alignment)
? views::BoxLayout::kHorizontal
: views::BoxLayout::kVertical;
tray_view_->SetLayoutManager(new views::BoxLayout(layout, 0, 0, 0));

Powered by Google App Engine
This is Rietveld 408576698