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

Side by Side Diff: ash/wm/panels/panel_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/panels/panel_layout_manager_unittest.cc ('k') | ash/wm/panels/panel_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_PANELS_PANEL_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_
6 #define ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ 6 #define ASH_WM_PANELS_PANEL_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void UpdateLauncherPosition(); 61 void UpdateLauncherPosition();
62 62
63 // Last pointer location in screen coordinates. 63 // Last pointer location in screen coordinates.
64 gfx::Point last_location_; 64 gfx::Point last_location_;
65 65
66 // Wraps a window resizer and adds panel detaching / reattaching and snapping 66 // Wraps a window resizer and adds panel detaching / reattaching and snapping
67 // to launcher behavior during drags. 67 // to launcher behavior during drags.
68 std::unique_ptr<WindowResizer> next_window_resizer_; 68 std::unique_ptr<WindowResizer> next_window_resizer_;
69 69
70 // Panel container window. 70 // Panel container window.
71 aura::Window* panel_container_; 71 wm::WmWindow* panel_container_;
72 aura::Window* initial_panel_container_; 72 wm::WmWindow* initial_panel_container_;
73 73
74 // Set to true once Drag() is invoked and the bounds of the window change. 74 // Set to true once Drag() is invoked and the bounds of the window change.
75 bool did_move_or_resize_; 75 bool did_move_or_resize_;
76 76
77 // True if the window started attached to the launcher. 77 // True if the window started attached to the launcher.
78 const bool was_attached_; 78 const bool was_attached_;
79 79
80 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_; 80 base::WeakPtrFactory<PanelWindowResizer> weak_ptr_factory_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer); 82 DISALLOW_COPY_AND_ASSIGN(PanelWindowResizer);
83 }; 83 };
84 84
85 } // namespace ash 85 } // namespace ash
86 86
87 #endif // ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_ 87 #endif // ASH_WM_PANELS_PANEL_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_layout_manager_unittest.cc ('k') | ash/wm/panels/panel_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698