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

Unified Diff: ash/wm/drag_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 (drag resizer instance) 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/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/drag_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/drag_window_resizer.h
diff --git a/ash/wm/drag_window_resizer.h b/ash/wm/drag_window_resizer.h
index 817588274a18fedeb400d9374201cfcb37350359..4aa6e29f3fe26ef620653b5a040777130168044b 100644
--- a/ash/wm/drag_window_resizer.h
+++ b/ash/wm/drag_window_resizer.h
@@ -29,15 +29,12 @@ class ASH_EXPORT DragWindowResizer : public WindowResizer {
const gfx::Point& location,
int window_component);
- // WindowResizer overides:
+ // WindowResizer:
virtual void Drag(const gfx::Point& location, 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;
- }
+ virtual const gfx::Point& GetInitialLocation() const OVERRIDE;
private:
FRIEND_TEST_ALL_PREFIXES(DragWindowResizerTest, DragWindowController);
@@ -68,6 +65,9 @@ class ASH_EXPORT DragWindowResizer : public WindowResizer {
// been deleted.
bool* destroyed_;
+ // Last instance created - for use by the DragWindowResizerTest.
sky 2013/06/17 20:37:23 Last instance created -> Current instance
varkha 2013/06/18 03:22:27 While it is not possible with user interaction I t
flackr 2013/06/18 13:35:03 It is actually possible by dragging one window wit
+ static DragWindowResizer* instance_;
+
DISALLOW_COPY_AND_ASSIGN(DragWindowResizer);
};
« no previous file with comments | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/drag_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698