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

Unified Diff: ash/mus/property_util.cc

Issue 2203003003: Get AcceleratorControllerTest working with mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 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
Index: ash/mus/property_util.cc
diff --git a/ash/mus/property_util.cc b/ash/mus/property_util.cc
index e06a6eda2d975dd7fefa316baa996eb002aa45f6..39efee2553a351144f914e7c23eb51530b79f223 100644
--- a/ash/mus/property_util.cc
+++ b/ash/mus/property_util.cc
@@ -82,6 +82,12 @@ bool GetRequestedContainer(const ui::Window* window,
return true;
}
+void SetResizeBehavior(ui::Window::SharedProperties* properties,
+ int32_t resize_behavior) {
+ (*properties)[ui::mojom::WindowManager::kResizeBehavior_Property] =
+ mojo::ConvertTo<std::vector<uint8_t>>(resize_behavior);
+}
+
int32_t GetResizeBehavior(const ui::Window* window) {
if (window->HasSharedProperty(
ui::mojom::WindowManager::kResizeBehavior_Property)) {

Powered by Google App Engine
This is Rietveld 408576698