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

Side by Side Diff: ash/wm/workspace/workspace_window_resizer.h

Issue 9566014: Attempt 2: Allows tab dragging when maximized on aura. To fix it I made it so (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/workspace/workspace_manager.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/wm/window_resizer.h" 9 #include "ash/wm/window_resizer.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 25 matching lines...) Expand all
36 static void ClearHeightBeforeObscured(aura::Window* window); 36 static void ClearHeightBeforeObscured(aura::Window* window);
37 static int GetHeightBeforeObscured(aura::Window* window); 37 static int GetHeightBeforeObscured(aura::Window* window);
38 38
39 // Adjusts the bounds to enforce that windows are vertically contained in the 39 // Adjusts the bounds to enforce that windows are vertically contained in the
40 // work area. 40 // work area.
41 void AdjustBounds(gfx::Rect* bounds) const; 41 void AdjustBounds(gfx::Rect* bounds) const;
42 42
43 // Returns true if the window touches the bottom of the work area. 43 // Returns true if the window touches the bottom of the work area.
44 bool WindowTouchesBottomOfScreen() const; 44 bool WindowTouchesBottomOfScreen() const;
45 45
46 // True if the window size (height) should be constrained.
47 const bool constrain_size_;
48
46 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); 49 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
47 }; 50 };
48 51
49 } // namespace internal 52 } // namespace internal
50 } // namespace ash 53 } // namespace ash
51 54
52 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 55 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_manager.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698