Commit 3da16d2a authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

[VK] Use +2 elevation for virtual keyboard shadow.

The design specs says the virtual keyboard is at +2 elevation instead of
+24.

Bug: 873327
Change-Id: I2895f149f693c8d4be4e35dc56c9d684cc07bf41
Reviewed-on: https://chromium-review.googlesource.com/1183004Reviewed-by: default avatarYuichiro Hanada <yhanada@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584676}
parent 94dc43bf
......@@ -60,6 +60,8 @@ namespace virtual_keyboard_private = extensions::api::virtual_keyboard_private;
namespace {
const int kShadowElevationVirtualKeyboard = 2;
GURL& GetOverrideVirtualKeyboardUrl() {
static base::NoDestructor<GURL> url;
return *url;
......@@ -488,7 +490,7 @@ void ChromeKeyboardUI::SetShadowAroundKeyboard() {
aura::Window* contents_window = keyboard_contents_->GetNativeView();
if (!shadow_) {
shadow_ = std::make_unique<ui::Shadow>();
shadow_->Init(wm::kShadowElevationActiveWindow);
shadow_->Init(kShadowElevationVirtualKeyboard);
shadow_->layer()->SetVisible(true);
contents_window->layer()->Add(shadow_->layer());
}
......
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