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

Side by Side Diff: ash/wm/window_resizer.h

Issue 11411344: Extract the code for supporing extended desktop from WorkspaceWindowResizer into DragWindowResizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win_aura error Created 8 years 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/drag_window_resizer_unittest.cc ('k') | ash/wm/workspace/workspace_window_resizer.h » ('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_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WINDOW_RESIZER_H_
6 #define ASH_WM_WINDOW_RESIZER_H_ 6 #define ASH_WM_WINDOW_RESIZER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 int* delta_x); 117 int* delta_x);
118 118
119 // Returns the height of the drag. 119 // Returns the height of the drag.
120 static int GetHeightForDrag(const Details& details, 120 static int GetHeightForDrag(const Details& details,
121 int min_height, 121 int min_height,
122 int* delta_y); 122 int* delta_y);
123 }; 123 };
124 124
125 // Creates a WindowResizer for |window|. This can return a scoped_ptr 125 // Creates a WindowResizer for |window|. This can return a scoped_ptr
126 // initialized with NULL if |window| should not be resized nor dragged. 126 // initialized with NULL if |window| should not be resized nor dragged.
127 scoped_ptr<WindowResizer> CreateWindowResizer( 127 ASH_EXPORT scoped_ptr<WindowResizer> CreateWindowResizer(
128 aura::Window* window, 128 aura::Window* window,
129 const gfx::Point& point_in_parent, 129 const gfx::Point& point_in_parent,
130 int window_component); 130 int window_component);
131 131
132 } // namespace aura 132 } // namespace aura
133 133
134 #endif // ASH_WM_WINDOW_RESIZER_H_ 134 #endif // ASH_WM_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/workspace/workspace_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698