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

Unified Diff: ash/system/web_notification/web_notification_tray.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/web_notification/web_notification_tray.cc
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc
index 91ae20c33e44e7b764385cda9640fa20ac689d33..52504eda4038fdd0656dde03ea3c0df3faf7e57f 100644
--- a/ash/system/web_notification/web_notification_tray.cc
+++ b/ash/system/web_notification/web_notification_tray.cc
@@ -19,6 +19,7 @@
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_utils.h"
#include "ash/system/web_notification/ash_popup_alignment_delegate.h"
+#include "ash/wm/common/shelf/wm_shelf_util.h"
#include "base/auto_reset.h"
#include "base/i18n/number_formatting.h"
#include "base/i18n/rtl.h"
@@ -223,7 +224,7 @@ bool WebNotificationTray::ShowMessageCenterInternal(bool show_settings) {
// Assume the status area and bubble bottoms are aligned when vertical.
aura::Window* status_area_window = status_area_widget()->GetNativeView();
const int max_height =
- IsHorizontalAlignment(GetShelfLayoutManager()->GetAlignment())
+ wm::IsHorizontalAlignment(GetShelfLayoutManager()->GetAlignment())
? GetShelfLayoutManager()->GetIdealBounds().y()
: status_area_window->GetBoundsInRootWindow().bottom();

Powered by Google App Engine
This is Rietveld 408576698