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

Unified Diff: ash/common/wm/dock/docked_window_resizer.cc

Issue 2558963002: Move shelf item tooltip flag from delegate to item. (Closed)
Patch Set: Remove WmWindowMus::SetBoolProperty override. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/wm/container_finder.cc ('k') | ash/common/wm/drag_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/dock/docked_window_resizer.cc
diff --git a/ash/common/wm/dock/docked_window_resizer.cc b/ash/common/wm/dock/docked_window_resizer.cc
index 9d32a5b83d3bb6031cc944bf3ff7850fb88c939f..7721be9372d94f64ca13f482f34703b55d05b76e 100644
--- a/ash/common/wm/dock/docked_window_resizer.cc
+++ b/ash/common/wm/dock/docked_window_resizer.cc
@@ -12,6 +12,7 @@
#include "ash/common/wm_lookup.h"
#include "ash/common/wm_root_window_controller.h"
#include "ash/common/wm_window.h"
+#include "ash/common/wm_window_property.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ui/base/hit_test.h"
#include "ui/base/ui_base_types.h"
@@ -206,7 +207,7 @@ void DockedWindowResizer::FinishedDragging(
WmWindow* window = GetTarget();
const bool is_attached_panel =
window->GetType() == ui::wm::WINDOW_TYPE_PANEL &&
- window_state_->panel_attached();
+ window->GetBoolProperty(WmWindowProperty::PANEL_ATTACHED);
const bool is_resized =
(details().bounds_change & WindowResizer::kBoundsChange_Resizes) != 0;
« no previous file with comments | « ash/common/wm/container_finder.cc ('k') | ash/common/wm/drag_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698