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

Unified Diff: ash/wm/common/root_window_finder.cc

Issue 2030593002: Renames ash/wm/common into ash/common/wm (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
« no previous file with comments | « ash/wm/common/root_window_finder.h ('k') | ash/wm/common/shelf/wm_shelf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/root_window_finder.cc
diff --git a/ash/wm/common/root_window_finder.cc b/ash/wm/common/root_window_finder.cc
deleted file mode 100644
index eb2cead1f110a1d0b92e9634792214c1916d6050..0000000000000000000000000000000000000000
--- a/ash/wm/common/root_window_finder.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/wm/common/root_window_finder.h"
-
-#include "ash/wm/common/wm_lookup.h"
-#include "ash/wm/common/wm_root_window_controller.h"
-#include "ash/wm/common/wm_window.h"
-#include "ui/display/display.h"
-#include "ui/display/screen.h"
-#include "ui/gfx/geometry/point.h"
-#include "ui/gfx/geometry/rect.h"
-
-namespace ash {
-namespace wm {
-
-WmWindow* GetRootWindowAt(const gfx::Point& point) {
- const display::Display& display =
- display::Screen::GetScreen()->GetDisplayNearestPoint(point);
- DCHECK(display.is_valid());
- WmRootWindowController* root_window_controller =
- WmLookup::Get()->GetRootWindowControllerWithDisplayId(display.id());
- return root_window_controller ? root_window_controller->GetWindow() : nullptr;
-}
-
-WmWindow* GetRootWindowMatching(const gfx::Rect& rect) {
- const display::Display& display =
- display::Screen::GetScreen()->GetDisplayMatching(rect);
- WmRootWindowController* root_window_controller =
- WmLookup::Get()->GetRootWindowControllerWithDisplayId(display.id());
- return root_window_controller ? root_window_controller->GetWindow() : nullptr;
-}
-
-} // namespace wm
-} // namespace ash
« no previous file with comments | « ash/wm/common/root_window_finder.h ('k') | ash/wm/common/shelf/wm_shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698