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

Unified Diff: ash/wm/overview/window_grid.cc

Issue 347813002: Added ignored_by_shelf bit to overview mode selection widget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_grid.cc
diff --git a/ash/wm/overview/window_grid.cc b/ash/wm/overview/window_grid.cc
index 796684993bba32ef4fb5128bb57bcd0733eee291..99ea37c2d1e54056e20674b2f1366eb468a595f8 100644
--- a/ash/wm/overview/window_grid.cc
+++ b/ash/wm/overview/window_grid.cc
@@ -358,6 +358,10 @@ void WindowGrid::InitSelectionWidget(WindowSelector::Direction direction) {
// Disable the "bounce in" animation when showing the window.
::wm::SetWindowVisibilityAnimationTransition(
selection_widget_->GetNativeWindow(), ::wm::ANIMATE_NONE);
+ // The selection widget should not activate the shelf when passing under it.
+ ash::wm::GetWindowState(selection_widget_->GetNativeWindow())->
+ set_ignored_by_shelf(true);
+
views::View* content_view = new views::View;
content_view->set_background(
views::Background::CreateSolidBackground(kWindowOverviewSelectionColor));
« 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