Replace WM shadow types (on/off) and styles (small/inactive/active)
with elevation values instead.
This is necessary to allow different windows of the same UI or WM window
type to specify different shadow appearances. This also makes more
sense in that active windows aren't the only ones to get big shadows.
Concretely, this is a requirement for updating Toast shadows.
BUG=608852,676223
[email protected]
Review-Url: https://codereview.chromium.org/2596743002
Cr-Commit-Position: refs/heads/master@{#441441}
diff --git a/chrome/browser/chromeos/accessibility/chromevox_panel.cc b/chrome/browser/chromeos/accessibility/chromevox_panel.cc
index e3ec9a14..ae0a95e3 100644
--- a/chrome/browser/chromeos/accessibility/chromevox_panel.cc
+++ b/chrome/browser/chromeos/accessibility/chromevox_panel.cc
@@ -96,7 +96,7 @@
params.bounds = gfx::Rect(0, 0, root_window->bounds().width(),
root_window->bounds().height());
widget_->Init(params);
- SetShadowType(widget_->GetNativeWindow(), wm::SHADOW_TYPE_RECTANGULAR);
+ SetShadowElevation(widget_->GetNativeWindow(), wm::ShadowElevation::MEDIUM);
display::Screen::GetScreen()->AddObserver(this);
}