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

Unified Diff: ash/app_list/app_list_presenter_delegate.cc

Issue 2225683008: [ash-md] Cancels app-list (launcher) before entering overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] - Prevents accelerators from reaching an active window in overview (handle in app-list) Created 4 years, 4 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
Index: ash/app_list/app_list_presenter_delegate.cc
diff --git a/ash/app_list/app_list_presenter_delegate.cc b/ash/app_list/app_list_presenter_delegate.cc
index 6d557d3b4d2e64a1872bd3ac3219cc88e30fcf06..8023dd7fdab4f2257785cf2a05d644743f00a95b 100644
--- a/ash/app_list/app_list_presenter_delegate.cc
+++ b/ash/app_list/app_list_presenter_delegate.cc
@@ -336,6 +336,11 @@ void AppListPresenterDelegate::OnShelfAlignmentChanged(WmWindow* root_window) {
view_->SetBubbleArrow(GetBubbleArrow(view_->GetWidget()->GetNativeView()));
}
+void AppListPresenterDelegate::OnOverviewModeStarting() {
+ if (is_visible_)
+ presenter_->Dismiss();
+}
+
void AppListPresenterDelegate::OnMaximizeModeStarted() {
// The "fullscreen" app-list is initialized as in a different type of window,
// therefore we can't switch between the fullscreen status and the normal

Powered by Google App Engine
This is Rietveld 408576698