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

Unified Diff: ui/app_list/views/app_list_view.cc

Issue 781423002: Fix app list search box rendering above app list overlay. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_search_box_view_focus_issues
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view.cc
diff --git a/ui/app_list/views/app_list_view.cc b/ui/app_list/views/app_list_view.cc
index 554459fdc65ac72b7db535fb2e375e6897886ce9..f983d2451acc053e3d8ac13f3e7d6c1c976a087f 100644
--- a/ui/app_list/views/app_list_view.cc
+++ b/ui/app_list/views/app_list_view.cc
@@ -276,6 +276,13 @@ void AppListView::SetAppListOverlayVisible(bool visible) {
const float kOverlayOpacity = 0.75f;
overlay_view_->layer()->SetOpacity(visible ? kOverlayOpacity : 0.0f);
+ {
+ ui::ScopedLayerAnimationSettings settings(
+ search_box_widget_->GetLayer()->GetAnimator());
+ search_box_widget_->GetLayer()->SetOpacity(visible ? kOverlayOpacity
Matt Giuca 2014/12/11 07:47:35 I like my hacks commented. // Create the illusion
calamity 2014/12/12 05:20:00 Done.
+ : 1.0f);
+ search_box_view_->SetEnabled(!visible);
+ }
}
bool AppListView::ShouldCenterWindow() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698