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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate.cc

Issue 2033833002: ash: Remove aura dependencies from ash/system/web_notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/ash_popup_alignment_delegate.cc
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.cc b/ash/system/web_notification/ash_popup_alignment_delegate.cc
index 4f31f1f610211895e6b5162668e51464f528575a..99fd8161458770fc75dabf861f7611841da124f7 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.cc
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.cc
@@ -4,15 +4,15 @@
#include "ash/system/web_notification/ash_popup_alignment_delegate.h"
+#include "ash/common/wm/wm_lookup.h"
+#include "ash/common/wm/wm_window.h"
#include "ash/display/window_tree_host_manager.h"
-#include "ash/screen_util.h"
#include "ash/shelf/shelf_constants.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_types.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
#include "base/i18n/rtl.h"
-#include "ui/aura/window.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/geometry/rect.h"
@@ -112,8 +112,9 @@ wm::ShelfAlignment AshPopupAlignmentDelegate::GetAlignment() const {
}
display::Display AshPopupAlignmentDelegate::GetCurrentDisplay() const {
- return display::Screen::GetScreen()->GetDisplayNearestWindow(
- shelf_->shelf_widget()->GetNativeView());
+ return wm::WmLookup::Get()
+ ->GetWindowForWidget(shelf_->shelf_widget())
+ ->GetDisplayNearestWindow();
}
void AshPopupAlignmentDelegate::UpdateWorkArea() {

Powered by Google App Engine
This is Rietveld 408576698