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

Unified Diff: ash/wm/window_resizer.h

Issue 13896026: Stick windows to sides of workspaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dock with zero width (exposing DragWindowResizer for tests, rebase) Created 7 years, 6 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/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ash/wm/panels/panel_window_resizer_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698