blob: 43545e7a277c2b5b6d3a1cd7df82ac32d53e0a27 [file] [log] [blame]
// Copyright (c) 2012 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.
#include "ui/aura/window.h"
#include "ui/wm/core/wm_core_export.h"
namespace wm {
// Indicates an elevation should be chosen based on the window. This is used
// by wm::ShadowController, but is not a valid elevation to pass to wm::Shadow.
constexpr int kShadowElevationDefault = -1;
// Different types of drop shadows that can be drawn under a window by the
// shell. Used as a value for the kShadowElevationKey property.
constexpr int kShadowElevationNone = 0;
// Standard shadow elevations used by the the aura window manager. The value is
// used to initialize an instance of wm::Shadow and controls the offset and blur
// of the shadow style created by gfx::ShadowValue::MakeMdShadowValues().
constexpr int kShadowElevationMenuOrTooltip = 6;
constexpr int kShadowElevationInactiveWindow = 8;
constexpr int kShadowElevationActiveWindow = 24;
WM_CORE_EXPORT void SetShadowElevation(aura::Window* window, int elevation);
// Returns the default shadow elevaltion value for |window|.
WM_CORE_EXPORT int GetDefaultShadowElevationForWindow(
const aura::Window* window);
// Returns the shadow elevation property value for |window|, converting
// |kShadowElevationDefault| to the appropriate value.
WM_CORE_EXPORT int GetShadowElevationConvertDefault(const aura::Window* window);
// A property key describing the drop shadow that should be displayed under the
// window. A null value is interpreted as using the default.
WM_CORE_EXPORT extern const aura::WindowProperty<int>* const
} // namespace wm