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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2211463002: mash: Move ShelfWindowWatcher[ItemDelegate] to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add TODO comments with bug for WmWindowMus ShelfItemDetails support. Created 4 years, 4 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/aura/wm_window_aura.h ('k') | ash/common/shelf/shelf_window_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 23a1556ac094bf00ee9298df981e2303bd5e49c4..f6eda0933978aad10e9b9b425613877160e07fc1 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -291,6 +291,16 @@ ShelfItemDetails* WmWindowAura::GetShelfItemDetails() {
return window_->GetProperty(kShelfItemDetailsKey);
}
+void WmWindowAura::SetShelfItemDetails(const ShelfItemDetails& details) {
+ // |item_details| is owned by |window_|.
+ ShelfItemDetails* item_details = new ShelfItemDetails(details);
+ window_->SetProperty(kShelfItemDetailsKey, item_details);
+}
+
+void WmWindowAura::ClearShelfItemDetails() {
+ window_->ClearProperty(kShelfItemDetailsKey);
+}
+
const wm::WindowState* WmWindowAura::GetWindowState() const {
return ash::wm::GetWindowState(window_);
}
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/shelf/shelf_window_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698