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

Unified Diff: ash/wm/workspace/workspace_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/workspace/workspace_window_resizer.h
diff --git a/ash/wm/workspace/workspace_window_resizer.h b/ash/wm/workspace/workspace_window_resizer.h
index 424e47d29f4890086fa5d3e49d694360e1a3eb2b..aee9b2b70b8f2812a01baeadb0a811a61286dcce 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -20,6 +20,7 @@ namespace internal {
class PhantomWindowController;
class SnapSizer;
class WindowSize;
+class WorkspaceWindowResizerTest;
// WindowResizer implementation for workspaces. This enforces that windows are
// not allowed to vertically move or resize outside of the work area. As windows
@@ -49,18 +50,19 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
int window_component,
const std::vector<aura::Window*>& attached_windows);
- // Overridden from WindowResizer:
+ // WindowResizer:
virtual void Drag(const gfx::Point& location_in_parent,
int event_flags) OVERRIDE;
virtual void CompleteDrag(int event_flags) OVERRIDE;
virtual void RevertDrag() OVERRIDE;
virtual aura::Window* GetTarget() OVERRIDE;
- const gfx::Point& GetInitialLocationInParentForTest() const {
- return details_.initial_location_in_parent;
- }
-
private:
+ friend class internal::WorkspaceWindowResizerTest;
+
+ // WindowResizer:
+ virtual const gfx::Point& GetInitialLocationForTest() const OVERRIDE;
+
WorkspaceWindowResizer(const Details& details,
const std::vector<aura::Window*>& attached_windows);

Powered by Google App Engine
This is Rietveld 408576698