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

Unified Diff: ash/wm/workspace/workspace_window_resizer.h

Issue 9455063: Makes windows scale slightly when dragging the caption. Also wired (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes tests Created 8 years, 10 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/window_resizer.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d32b0be1e5571b39f67fc2f6e07fe580716e1cbd..4815291362417d972e0dc36b37e009f1966b8858 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -25,6 +25,13 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
int grid_size);
virtual ~WorkspaceWindowResizer();
+ // Sets whether windows should be scaled when dragging from the caption.
+ static void SetScaleWindowsForTest(bool value);
+
+ // WindowResizer overrides:
+ virtual void CompleteDrag() OVERRIDE;
+ virtual void RevertDrag() OVERRIDE;
+
protected:
// WindowResizer overrides:
virtual gfx::Rect GetBoundsForDrag(const gfx::Point& location) OVERRIDE;
@@ -43,6 +50,11 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
// Returns true if the window touches the bottom of the work area.
bool WindowTouchesBottomOfScreen() const;
+ // True if we scaled the window.
+ const bool scale_window_;
+
+ static bool scale_windows_;
+
DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
};
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698