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

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

Issue 1898223002: Removes most aura dependencies from WindowResizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_aura_from_window_state
Patch Set: nit and merge 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
« no previous file with comments | « ash/wm/aura/wm_root_window_controller_aura.cc ('k') | ash/wm/common/root_window_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/root_window_finder.h
diff --git a/ash/wm/coordinate_conversion.h b/ash/wm/common/root_window_finder.h
similarity index 65%
rename from ash/wm/coordinate_conversion.h
rename to ash/wm/common/root_window_finder.h
index aa4a84850b1907244a3699bf92d5691335a3440a..f35459a6c44671456fc41838291f08351bd47a7a 100644
--- a/ash/wm/coordinate_conversion.h
+++ b/ash/wm/common/root_window_finder.h
@@ -2,15 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_WM_COORDINATE_CONVERSION_H_
-#define ASH_WM_COORDINATE_CONVERSION_H_
+#ifndef ASH_WM_COMMON_ROOT_WINDOW_FINDER_H_
+#define ASH_WM_COMMON_ROOT_WINDOW_FINDER_H_
#include "ash/ash_export.h"
-namespace aura {
-class Window;
-} // namespace gfx
-
namespace gfx {
class Point;
class Rect;
@@ -19,16 +15,18 @@ class Rect;
namespace ash {
namespace wm {
+class WmWindow;
+
// Returns the RootWindow at |point| in the virtual screen coordinates.
// Returns NULL if the root window does not exist at the given
// point.
-ASH_EXPORT aura::Window* GetRootWindowAt(const gfx::Point& point);
+ASH_EXPORT WmWindow* GetRootWindowAt(const gfx::Point& point);
// Returns the RootWindow that shares the most area with |rect| in
// the virtual scren coordinates.
-ASH_EXPORT aura::Window* GetRootWindowMatching(const gfx::Rect& rect);
+ASH_EXPORT WmWindow* GetRootWindowMatching(const gfx::Rect& rect);
} // namespace wm
} // namespace ash
-#endif // ASH_WM_COORDINATE_CONVERSION_H_
+#endif // ASH_WM_COMMON_ROOT_WINDOW_FINDER_H_
« no previous file with comments | « ash/wm/aura/wm_root_window_controller_aura.cc ('k') | ash/wm/common/root_window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698