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

Unified Diff: ash/mus/property_util.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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/mus/property_util.h ('k') | ash/mus/root_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/property_util.cc
diff --git a/ash/mus/property_util.cc b/ash/mus/property_util.cc
index ea9a2e5812f289ebdc94b25b65b9aabebe1db5e1..9aa2a9f302be21f12d58b2b0fedade91f8f00b4e 100644
--- a/ash/mus/property_util.cc
+++ b/ash/mus/property_util.cc
@@ -9,6 +9,7 @@
#include "ash/mus/shadow.h"
#include "services/ui/public/cpp/property_type_converters.h"
#include "services/ui/public/cpp/window_property.h"
+#include "services/ui/public/interfaces/window_manager.mojom.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -72,13 +73,13 @@ gfx::Size GetWindowPreferredSize(const ui::Window* window) {
return gfx::Size();
}
-bool GetRequestedContainer(const ui::Window* window,
- mojom::Container* container) {
- if (!window->HasSharedProperty(mojom::kWindowContainer_Property))
+bool GetRequestedContainer(const ui::Window* window, int* container_id) {
+ if (!window->HasSharedProperty(
+ ui::mojom::WindowManager::kInitialContainerId_Property))
return false;
- *container = static_cast<mojom::Container>(
- window->GetSharedProperty<int32_t>(mojom::kWindowContainer_Property));
+ *container_id = window->GetSharedProperty<int32_t>(
+ ui::mojom::WindowManager::kInitialContainerId_Property);
return true;
}
« no previous file with comments | « ash/mus/property_util.h ('k') | ash/mus/root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698