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

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

Issue 1918883002: Makes Panel related classes use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@phantom_window_controller
Patch Set: feedback Created 4 years, 8 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
« no previous file with comments | « ash/wm/dock/docked_window_resizer_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 <memory> 8 #include <memory>
9 9
10 #include "ash/wm/window_resizer.h" 10 #include "ash/wm/window_resizer.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 explicit DragWindowResizer(WindowResizer* next_window_resizer, 45 explicit DragWindowResizer(WindowResizer* next_window_resizer,
46 wm::WindowState* window_state); 46 wm::WindowState* window_state);
47 47
48 // Updates the bounds of the drag window for window dragging. 48 // Updates the bounds of the drag window for window dragging.
49 void UpdateDragWindow(const gfx::Rect& bounds_in_parent, 49 void UpdateDragWindow(const gfx::Rect& bounds_in_parent,
50 const gfx::Point& drag_location_in_screen); 50 const gfx::Point& drag_location_in_screen);
51 51
52 // Returns true if we should allow the mouse pointer to warp. 52 // Returns true if we should allow the mouse pointer to warp.
53 bool ShouldAllowMouseWarp(); 53 bool ShouldAllowMouseWarp();
54 54
55 aura::Window* GetAuraTarget();
56
55 std::unique_ptr<WindowResizer> next_window_resizer_; 57 std::unique_ptr<WindowResizer> next_window_resizer_;
56 58
57 // Shows a semi-transparent image of the window being dragged. 59 // Shows a semi-transparent image of the window being dragged.
58 std::unique_ptr<DragWindowController> drag_window_controller_; 60 std::unique_ptr<DragWindowController> drag_window_controller_;
59 61
60 gfx::Point last_mouse_location_; 62 gfx::Point last_mouse_location_;
61 63
62 // Current instance for use by the DragWindowResizerTest. 64 // Current instance for use by the DragWindowResizerTest.
63 static DragWindowResizer* instance_; 65 static DragWindowResizer* instance_;
64 66
65 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_; 67 base::WeakPtrFactory<DragWindowResizer> weak_ptr_factory_;
66 68
67 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer); 69 DISALLOW_COPY_AND_ASSIGN(DragWindowResizer);
68 }; 70 };
69 71
70 } // namespace ash 72 } // namespace ash
71 73
72 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_ 74 #endif // ASH_WM_DRAG_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/dock/docked_window_resizer_unittest.cc ('k') | ash/wm/drag_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698