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

Unified Diff: ash/shelf/shelf.cc

Issue 2029323002: mash: Convert AshPopupAlignmentDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments 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/shelf/shelf.h ('k') | ash/system/web_notification/ash_popup_alignment_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf.cc
diff --git a/ash/shelf/shelf.cc b/ash/shelf/shelf.cc
index cbc1e15c4b9f37fb03aeeacba823d785f5afedbb..5b7b1ba0ee6e542571c9845b79d9234caf54a385 100644
--- a/ash/shelf/shelf.cc
+++ b/ash/shelf/shelf.cc
@@ -15,7 +15,6 @@
#include "ash/common/shell_window_ids.h"
#include "ash/focus_cycler.h"
#include "ash/root_window_controller.h"
-#include "ash/root_window_settings.h"
#include "ash/screen_util.h"
#include "ash/shelf/shelf_delegate.h"
#include "ash/shelf/shelf_layout_manager.h"
@@ -73,18 +72,6 @@ Shelf* Shelf::ForWindow(const aura::Window* window) {
return shelf_widget ? shelf_widget->shelf() : nullptr;
}
-// static
-Shelf* Shelf::ForDisplayId(int64_t display_id) {
- for (aura::Window* window : Shell::GetInstance()->GetAllRootWindows()) {
- RootWindowSettings* settings = GetRootWindowSettings(window);
- if (settings->display_id == display_id && settings->controller) {
- ShelfWidget* shelf_widget = settings->controller->shelf_widget();
- return shelf_widget ? shelf_widget->shelf() : nullptr;
- }
- }
- return nullptr;
-}
-
void Shelf::SetAlignment(ShelfAlignment alignment) {
if (alignment_ == alignment)
return;
« no previous file with comments | « ash/shelf/shelf.h ('k') | ash/system/web_notification/ash_popup_alignment_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698