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

Unified Diff: ash/wm/panels/panel_window_resizer.cc

Issue 1929023002: Refactors WindowResizers to use ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move forward declaration 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panels/panel_window_resizer.cc
diff --git a/ash/wm/panels/panel_window_resizer.cc b/ash/wm/panels/panel_window_resizer.cc
index 8ece548600bfad8590c746f6ec5e5b3fa096ce22..2a6ee3cf09284e9e67e448a49642e49a68794541 100644
--- a/ash/wm/panels/panel_window_resizer.cc
+++ b/ash/wm/panels/panel_window_resizer.cc
@@ -4,20 +4,16 @@
#include "ash/wm/panels/panel_window_resizer.h"
-#include "ash/shelf/shelf.h"
-#include "ash/shelf/shelf_types.h"
-#include "ash/shelf/shelf_widget.h"
-#include "ash/shell_window_ids.h"
-#include "ash/wm/aura/wm_window_aura.h"
+#include "ash/wm/common/shelf/wm_shelf.h"
#include "ash/wm/common/window_parenting_utils.h"
#include "ash/wm/common/window_state.h"
#include "ash/wm/common/wm_root_window_controller.h"
+#include "ash/wm/common/wm_shell_window_ids.h"
#include "ash/wm/common/wm_window.h"
#include "ash/wm/panels/panel_layout_manager.h"
#include "ui/base/hit_test.h"
#include "ui/base/ui_base_types.h"
#include "ui/display/screen.h"
-#include "ui/views/widget/widget.h"
namespace ash {
@@ -122,10 +118,8 @@ bool PanelWindowResizer::AttachToLauncher(const gfx::Rect& bounds,
PanelLayoutManager* panel_layout_manager =
PanelLayoutManager::Get(panel_container_);
gfx::Rect launcher_bounds = GetTarget()->GetParent()->ConvertRectFromScreen(
- panel_layout_manager->shelf()
- ->shelf_widget()
- ->GetWindowBoundsInScreen());
- switch (panel_layout_manager->shelf()->alignment()) {
+ panel_layout_manager->shelf()->GetWindow()->GetBoundsInScreen());
+ switch (panel_layout_manager->shelf()->GetAlignment()) {
case wm::SHELF_ALIGNMENT_BOTTOM:
case wm::SHELF_ALIGNMENT_BOTTOM_LOCKED:
if (bounds.bottom() >= (launcher_bounds.y() -
@@ -202,8 +196,7 @@ void PanelWindowResizer::UpdateLauncherPosition() {
if (panel_container_) {
PanelLayoutManager::Get(panel_container_)
->shelf()
- ->UpdateIconPositionForWindow(
- wm::WmWindowAura::GetAuraWindow(GetTarget()));
+ ->UpdateIconPositionForWindow(GetTarget());
}
}
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/workspace/phantom_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698