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

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 (comments on unit tests) 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
Index: ash/wm/window_resizer.h
diff --git a/ash/wm/window_resizer.h b/ash/wm/window_resizer.h
index bc46df85e31a51b9adb9d2932678303db03eee87..6a497a9fcb47c27da4bebfaedb55040cd525e013 100644
--- a/ash/wm/window_resizer.h
+++ b/ash/wm/window_resizer.h
@@ -16,6 +16,13 @@ class Window;
namespace ash {
+namespace internal {
+
+class DragWindowResizerTest;
+class PanelWindowResizerTest;
+
+} // namespace internal
+
// WindowResizer is used by ToplevelWindowEventFilter to handle dragging, moving
// or resizing a window. All coordinates passed to this are in the parent
// windows coordinates.
@@ -52,6 +59,12 @@ class ASH_EXPORT WindowResizer {
virtual aura::Window* GetTarget() = 0;
protected:
+ friend class internal::DragWindowResizerTest;
+ friend class internal::PanelWindowResizerTest;
+
+ // See comment for |Details::initial_location_in_parent|.
+ virtual const gfx::Point& GetInitialLocationForTest() const = 0;
+
struct Details {
Details();
Details(aura::Window* window,
@@ -129,6 +142,6 @@ ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer(
const gfx::Point& point_in_parent,
int window_component);
-} // namespace aura
+} // namespace ash
#endif // ASH_WM_WINDOW_RESIZER_H_

Powered by Google App Engine
This is Rietveld 408576698