Chromium Code Reviews| Index: ash/wm/window_resizer.h |
| diff --git a/ash/wm/window_resizer.h b/ash/wm/window_resizer.h |
| index bc46df85e31a51b9adb9d2932678303db03eee87..c14eca580ffe1bbd6a6e015432104bf392ad6b39 100644 |
| --- a/ash/wm/window_resizer.h |
| +++ b/ash/wm/window_resizer.h |
| @@ -51,6 +51,9 @@ class ASH_EXPORT WindowResizer { |
| // Returns the target window the resizer was created for. |
| virtual aura::Window* GetTarget() = 0; |
| + // See comment for |Details::initial_location_in_parent|. |
| + virtual const gfx::Point& GetInitialLocationForTest() const = 0; |
|
flackr
2013/06/14 18:31:50
This should be protected since it's only for tests
varkha
2013/06/14 22:13:09
Done.
|
| + |
| protected: |
| struct Details { |
| Details(); |
| @@ -129,6 +132,18 @@ ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer( |
| const gfx::Point& point_in_parent, |
| int window_component); |
| -} // namespace aura |
| +namespace internal { |
| +class DragWindowResizer; |
| + |
| +// Creates a WindowResizer for |window|. |
| +// This internal creator exposes DragWindowResizer for use by tests. |
| +ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizerExposeDragResizer( |
| + aura::Window* window, |
| + const gfx::Point& point_in_parent, |
| + int window_component, |
| + DragWindowResizer** drag_resizer); |
| +} // namespace internal |
| + |
| +} // namespace ash |
| #endif // ASH_WM_WINDOW_RESIZER_H_ |