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

Unified Diff: ash/common/shelf/shelf_widget.cc

Issue 2731663002: Remove WmWindowProperty (Closed)
Patch Set: rebase Created 3 years, 10 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/common/frame/custom_frame_view_ash.cc ('k') | ash/common/shelf/shelf_window_watcher_item_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_widget.cc
diff --git a/ash/common/shelf/shelf_widget.cc b/ash/common/shelf/shelf_widget.cc
index 797c9cfdffb61471540eda59a420cf497499056f..248b4d5ff33debf0461ad70828b7d5d5d2fd8909 100644
--- a/ash/common/shelf/shelf_widget.cc
+++ b/ash/common/shelf/shelf_widget.cc
@@ -19,8 +19,8 @@
#include "ash/common/system/status_area_widget.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
-#include "ash/common/wm_window_property.h"
#include "ash/root_window_controller.h"
+#include "ash/wm/window_properties.h"
#include "base/memory/ptr_util.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
@@ -307,7 +307,7 @@ void ShelfWidget::UpdateIconPositionForPanel(WmWindow* panel) {
WmWindow* shelf_window = WmWindow::Get(this->GetNativeWindow());
shelf_view_->UpdatePanelIconPosition(
- panel->GetIntProperty(WmWindowProperty::SHELF_ID),
+ panel->aura_window()->GetProperty(kShelfIDKey),
shelf_window->ConvertRectFromScreen(panel->GetBoundsInScreen())
.CenterPoint());
}
@@ -318,7 +318,7 @@ gfx::Rect ShelfWidget::GetScreenBoundsOfItemIconForWindow(WmWindow* window) {
if (!shelf_view_)
return gfx::Rect();
- ShelfID id = window->GetIntProperty(WmWindowProperty::SHELF_ID);
+ ShelfID id = window->aura_window()->GetProperty(kShelfIDKey);
gfx::Rect bounds(shelf_view_->GetIdealBoundsOfItemIcon(id));
gfx::Point screen_origin;
views::View::ConvertPointToScreen(shelf_view_, &screen_origin);
« no previous file with comments | « ash/common/frame/custom_frame_view_ash.cc ('k') | ash/common/shelf/shelf_window_watcher_item_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698