Index: chrome/browser/ui/views/ash/window_positioner.h |
diff --git a/chrome/browser/ui/views/ash/window_positioner.h b/chrome/browser/ui/views/ash/window_positioner.h |
index 599ac53891eda483fbbba04b8670e9c07ee94758..fd84450feaf8a13528e7fe8112dcbb8a2926da0c 100644 |
--- a/chrome/browser/ui/views/ash/window_positioner.h |
+++ b/chrome/browser/ui/views/ash/window_positioner.h |
@@ -31,11 +31,17 @@ class WindowPositioner { |
// Find a smart way to position the popup window. If there is no space this |
// function will return an empty rectangle. |
gfx::Rect SmartPopupPosition(const gfx::Rect& old_pos, |
- const gfx::Rect& work_space); |
+ const gfx::Rect& work_area, |
+ int grid); |
// Find the next available cascading popup position (on the given screen). |
gfx::Rect NormalPopupPosition(const gfx::Rect& old_pos, |
- const gfx::Rect& work_space); |
+ const gfx::Rect& work_area); |
+ |
+ // Align the location to the grid / snap to the right / bottom corner. |
+ gfx::Rect AlignPopupPosition(const gfx::Rect &pos, |
+ const gfx::Rect &work_area, |
+ int grid); |
// Constants to identify the type of resize. |
static const int kBoundsChange_None; |