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

Unified Diff: components/exo/shell_surface.cc

Issue 2596743002: Replace WM shadow types (on/off) and styles (small/inactive/active) (Closed)
Patch Set: one more mechanical change Created 3 years, 11 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
« no previous file with comments | « chrome/browser/chromeos/accessibility/chromevox_panel.cc ('k') | components/exo/shell_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 5a93add2aa418b610ae6caefc206690253c1f89d..60b1ddcd6f2c16e5ce11da16f78b2119cd5fc461 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1409,11 +1409,11 @@ void ShellSurface::UpdateShadow() {
return;
aura::Window* window = widget_->GetNativeWindow();
if (!shadow_enabled_) {
- wm::SetShadowType(window, wm::SHADOW_TYPE_NONE);
+ wm::SetShadowElevation(window, wm::ShadowElevation::NONE);
if (shadow_underlay_)
shadow_underlay_->Hide();
} else {
- wm::SetShadowType(window, wm::SHADOW_TYPE_RECTANGULAR);
+ wm::SetShadowElevation(window, wm::ShadowElevation::MEDIUM);
gfx::Rect shadow_content_bounds = shadow_content_bounds_;
if (shadow_content_bounds.IsEmpty())
@@ -1505,7 +1505,7 @@ void ShellSurface::UpdateShadow() {
// Surfaces that can't be activated are usually menus and tooltips. Use a
// small style shadow for them.
if (!activatable_)
- shadow->SetStyle(wm::Shadow::STYLE_SMALL);
+ shadow->SetElevation(wm::ShadowElevation::SMALL);
}
}
« no previous file with comments | « chrome/browser/chromeos/accessibility/chromevox_panel.cc ('k') | components/exo/shell_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698