| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef ASH_WM_OVERVIEW_OVERVIEW_CONSTANTS_H_ |
| #define ASH_WM_OVERVIEW_OVERVIEW_CONSTANTS_H_ |
| |
| #include "ash/ash_export.h" |
| |
| namespace ash { |
| |
| // The time duration for transformation animations. |
| constexpr base::TimeDelta kTransition = base::TimeDelta::FromMilliseconds(300); |
| |
| // In the conceptual overview table, the window margin is the space reserved |
| // around the window within the cell. This margin does not overlap so the |
| // closest distance between adjacent windows will be twice this amount. |
| constexpr int kWindowMargin = 5; |
| |
| // Cover the transformed window including the gaps between the windows with a |
| // transparent shield to block the input events from reaching the transformed |
| // window while in overview. |
| constexpr int kOverviewMargin = kWindowMargin * 2; |
| |
| // Height of an item header. |
| constexpr int kHeaderHeightDp = 40; |
| |
| // The opacity of the shield widget that is used to darken the background of |
| // the grid. |
| constexpr float kShieldOpacity = 0.4f; |
| |
| // The amount of rounding on window edges in overview mode. |
| constexpr int kOverviewWindowRoundingDp = 4; |
| |
| // Amount of blur to apply on the wallpaper when we enter or exit overview |
| // mode. |
| constexpr float kWallpaperBlurSigma = 10.f; |
| constexpr float kWallpaperClearBlurSigma = 0.f; |
| |
| // Amount of time we wait to unpause the occlusion tracker after a overview item |
| // is finished dragging. Waits a bit longer than the overview item animation. |
| constexpr int kOcclusionPauseDurationForDragMs = 300; |
| |
| } // namespace ash |
| |
| #endif // ASH_WM_OVERVIEW_OVERVIEW_CONSTANTS_H_ |