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

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

Issue 657583003: Chrome OS: Ash support for >=3 displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to resolve conflicts at TOT Created 6 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
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | ash/wm/drag_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_DRAG_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_DRAG_WINDOW_RESIZER_H_
6 #define ASH_WM_DRAG_WINDOW_RESIZER_H_ 6 #define ASH_WM_DRAG_WINDOW_RESIZER_H_
7 7
8 #include "ash/wm/window_resizer.h" 8 #include "ash/wm/window_resizer.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/memory/scoped_vector.h"
11 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
12 #include "ui/gfx/point.h" 13 #include "ui/gfx/point.h"
13 14
14 namespace ash { 15 namespace ash {
15 16
16 class DragWindowController; 17 class DragWindowController;
17 18
18 // DragWindowResizer is a decorator of WindowResizer and adds the ability to 19 // DragWindowResizer is a decorator of WindowResizer and adds the ability to
19 // drag windows across displays. 20 // drag windows across displays.
20 class ASH_EXPORT DragWindowResizer : public WindowResizer { 21 class ASH_EXPORT DragWindowResizer : public WindowResizer {
(...skipping 23 matching lines...) Expand all
44 // Updates the bounds of the phantom window for window dragging. Set true on 45 // Updates the bounds of the phantom window for window dragging. Set true on
45 // |in_original_root| if the pointer is still in |window()->GetRootWindow()|. 46 // |in_original_root| if the pointer is still in |window()->GetRootWindow()|.
46 void UpdateDragWindow(const gfx::Rect& bounds, bool in_original_root); 47 void UpdateDragWindow(const gfx::Rect& bounds, bool in_original_root);
47 48
48 // Returns true if we should allow the mouse pointer to warp. 49 // Returns true if we should allow the mouse pointer to warp.
49 bool ShouldAllowMouseWarp(); 50 bool ShouldAllowMouseWarp();
50 51
51 scoped_ptr<WindowResizer> next_window_resizer_; 52 scoped_ptr<WindowResizer> next_window_resizer_;
52 53
53 // Shows a semi-transparent image of the window being dragged. 54 // Shows a semi-transparent image of the window being dragged.
54 scoped_ptr<DragWindowController> drag_window_controller_; 55 ScopedVector<DragWindowController> drag_window_controllers_;
55 56
56 gfx::Point last_mouse_location_; 57 gfx::Point last_mouse_location_;
57 58
58 // Current instance for use by the DragWindowResizerTest. 59 // Current instance for use by the DragWindowResizerTest.
59 static DragWindowResizer* instance_; 60 static DragWindowResizer* instance_;
60 61
61 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; 62 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); 64 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer);
64 }; 65 };
65 66
66 } // namespace ash 67 } // namespace ash
67 68
68 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ 69 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/display/display_manager_unittest.cc ('k') | ash/wm/drag_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698