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

Unified Diff: ash/wm/window_util.h

Issue 2905893002: chromeos: convert more ash/wm code to aura::Window (Closed)
Patch Set: moar cleanup Created 3 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/wm/window_util.h
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index 27c8d5d652759f939207f3a8fc604b71821e0bc8..d1b95504b2dd98662e2040255ae282347ea2acf9 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -15,6 +15,10 @@ namespace aura {
class Window;
}
+namespace gfx {
+class Point;
+}
+
namespace ui {
class Event;
}
@@ -67,6 +71,11 @@ ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window);
ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary(
aura::Window* container);
+// Convenience for window->delegate()->GetNonClientComponent(location) that
+// returns HTNOWHERE if window->delegate() is null.
+ASH_EXPORT int GetNonClientComponent(aura::Window* window,
+ const gfx::Point& location);
+
} // namespace wm
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698