Commit 904ad03c authored by Jun Mukai's avatar Jun Mukai Committed by Commit Bot

Mash: propagate kAnimationsDisabled window property

Some windows, including tab-dragging window, want to suppress
the window animations. This property needs to be propagated
to Ash to take an effect.

BUG=867074
TEST=manually

Change-Id: I80847702e26cd04981cac71b02114389312d83e1
Reviewed-on: https://chromium-review.googlesource.com/1166331Reviewed-by: default avatarJun Mukai <mukai@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Commit-Queue: Jun Mukai <mukai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581896}
parent 65ac8cbb
......@@ -68,6 +68,9 @@ interface WindowManager {
// Type: bool.
const string kAlwaysOnTop_Property = "prop:always_on_top";
// A boolean determining whether animations are disabled for the window.
const string kAnimationsDisabled_Property = "prop:animations-disabled";
// The application icon; typically larger for shelf icons, etc. Type: SkBitmap
const string kAppIcon_Property = "prop:app-icon";
......
......@@ -105,6 +105,10 @@ PropertyConverter::PropertyConverter() {
client::kWindowCornerRadiusKey,
ui::mojom::WindowManager::kWindowCornerRadius_Property,
base::BindRepeating(&ValidateWindowCornerRadius));
RegisterPrimitiveProperty(
client::kAnimationsDisabledKey,
ui::mojom::WindowManager::kAnimationsDisabled_Property,
CreateAcceptAnyValueCallback());
}
PropertyConverter::~PropertyConverter() {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment