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

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

Issue 10827022: Fix coordinates in tab detach &drag code and multi window resizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 5 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
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 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/wm/window_resizer.h" 10 #include "ash/wm/window_resizer.h"
(...skipping 19 matching lines...) Expand all
30 static const int kMinOnscreenSize; 30 static const int kMinOnscreenSize;
31 31
32 // Min height we'll force on screen when dragging the caption. 32 // Min height we'll force on screen when dragging the caption.
33 // TODO: this should come from a property on the window. 33 // TODO: this should come from a property on the window.
34 static const int kMinOnscreenHeight; 34 static const int kMinOnscreenHeight;
35 35
36 virtual ~WorkspaceWindowResizer(); 36 virtual ~WorkspaceWindowResizer();
37 37
38 static WorkspaceWindowResizer* Create( 38 static WorkspaceWindowResizer* Create(
39 aura::Window* window, 39 aura::Window* window,
40 const gfx::Point& location, 40 const gfx::Point& location_in_parent,
41 int window_component, 41 int window_component,
42 const std::vector<aura::Window*>& attached_windows); 42 const std::vector<aura::Window*>& attached_windows);
43 43
44 // Returns true if the drag will result in changing the window in anyway. 44 // Returns true if the drag will result in changing the window in anyway.
45 bool is_resizable() const { return details_.is_resizable; } 45 bool is_resizable() const { return details_.is_resizable; }
46 46
47 const gfx::Point& initial_location_in_parent() const { 47 const gfx::Point& initial_location_in_parent() const {
48 return details_.initial_location_in_parent; 48 return details_.initial_location_in_parent;
49 } 49 }
50 50
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // the screen. 167 // the screen.
168 int num_mouse_moves_since_bounds_change_; 168 int num_mouse_moves_since_bounds_change_;
169 169
170 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); 170 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
171 }; 171 };
172 172
173 } // namespace internal 173 } // namespace internal
174 } // namespace ash 174 } // namespace ash
175 175
176 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 176 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_filter.cc ('k') | ash/wm/workspace/workspace_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698