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

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

Issue 23471004: Only support left/right maximizing at 50% width when the --ash-enable-alternate-caption-button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 76176b1a2b4a77fa7b1ad3b4a75eafded2a7e282..3b39974e3de0f01f7a1bff1e3f66854e59673e5c 100644
--- a/ash/wm/workspace/workspace_window_resizer.h
+++ b/ash/wm/workspace/workspace_window_resizer.h
@@ -18,7 +18,6 @@ namespace ash {
namespace internal {
class PhantomWindowController;
-class SnapSizer;
class WindowSize;
// WindowResizer implementation for workspaces. This enforces that windows are
@@ -74,17 +73,13 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
// Type of snapping.
enum SnapType {
// Snap to the left/right edge of the screen.
- SNAP_LEFT_EDGE,
- SNAP_RIGHT_EDGE,
+ SNAP_LEFT,
+ SNAP_RIGHT,
// No snap position.
SNAP_NONE
};
- // Returns the final bounds to place the window at. This differs from
- // the current when snapping.
- gfx::Rect GetFinalBounds(const gfx::Rect& bounds) const;
-
// Lays out the attached windows. |bounds| is the bounds of the main window.
void LayoutAttachedWindows(gfx::Rect* bounds);
@@ -187,9 +182,6 @@ class ASH_EXPORT WorkspaceWindowResizer : public WindowResizer {
// is a grid and the caption is being dragged.
scoped_ptr<PhantomWindowController> snap_phantom_window_controller_;
- // Used to determine the target position of a snap.
- scoped_ptr<SnapSizer> snap_sizer_;
-
// Last SnapType.
SnapType snap_type_;

Powered by Google App Engine
This is Rietveld 408576698