Index: ash/wm/base_layout_manager.h |
diff --git a/ash/wm/base_layout_manager.h b/ash/wm/base_layout_manager.h |
index c245940df734a2e3265411e9231c554e22ee6b87..7c059c5ed307ff51172d961639be3f82d03821a2 100644 |
--- a/ash/wm/base_layout_manager.h |
+++ b/ash/wm/base_layout_manager.h |
@@ -41,6 +41,12 @@ class ASH_EXPORT BaseLayoutManager : public aura::LayoutManager, |
const WindowSet& windows() const { return windows_; } |
+ // Given a |window| and tentative |restore_bounds|, returns new bounds that |
+ // ensure that at least a few pixels of the screen background are visible |
+ // outside the edges of the window. |
+ static gfx::Rect BoundsWithScreenEdgeVisible(aura::Window* window, |
+ const gfx::Rect& restore_bounds); |
+ |
// LayoutManager overrides: |
virtual void OnWindowResized() OVERRIDE; |
virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; |