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

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

Issue 12313118: Refactor: Shelf Widget (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: safer shutdown (status_area_widget_) Created 7 years, 9 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_unittest.cc ('k') | ash/wm/panels/panel_window_resizer_unittest.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 0f82db56b41dfb4e1b4252a1e0e4d61cf47bb912..e306f29411bcc3ba85c4bc4ef58639947c21a03c 100644
--- a/ash/wm/panels/panel_window_resizer.cc
+++ b/ash/wm/panels/panel_window_resizer.cc
@@ -6,7 +6,8 @@
#include "ash/launcher/launcher.h"
#include "ash/root_window_controller.h"
-#include "ash/shelf_types.h"
+#include "ash/shelf/shelf_types.h"
+#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
#include "ash/wm/panels/panel_layout_manager.h"
@@ -102,8 +103,8 @@ PanelWindowResizer::PanelWindowResizer(const Details& details)
bool PanelWindowResizer::AttachToLauncher(gfx::Rect* bounds) {
bool should_attach = false;
if (panel_layout_manager_) {
- gfx::Rect launcher_bounds = panel_layout_manager_->launcher()->widget()->
- GetWindowBoundsInScreen();
+ gfx::Rect launcher_bounds = panel_layout_manager_->launcher()->
+ shelf_widget()->GetWindowBoundsInScreen();
switch (panel_layout_manager_->launcher()->alignment()) {
case SHELF_ALIGNMENT_BOTTOM:
if (bounds->bottom() >= (launcher_bounds.y() -
« no previous file with comments | « ash/wm/panels/panel_layout_manager_unittest.cc ('k') | ash/wm/panels/panel_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698