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

Unified Diff: ui/app_list/app_list_view.cc

Issue 11094019: Auto hide app list on Windows when it loses focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 8 years, 2 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: ui/app_list/app_list_view.cc
diff --git a/ui/app_list/app_list_view.cc b/ui/app_list/app_list_view.cc
index 97e4a9901462c089853b8afa6eb9157e88300b22..1773e972228695972523908644bcb537966ac29c 100644
--- a/ui/app_list/app_list_view.cc
+++ b/ui/app_list/app_list_view.cc
@@ -200,4 +200,18 @@ void AppListView::InvokeResultAction(const SearchResult& result,
delegate_->InvokeSearchResultAction(result, action_index, event_flags);
}
+void AppListView::OnWidgetClosing(views::Widget* widget) {
+ BubbleDelegateView::OnWidgetClosing(widget);
+ if (delegate_.get() && widget == GetWidget())
+ delegate_->ViewClosing();
+}
+
+void AppListView::OnWidgetActivationChanged(views::Widget* widget,
+ bool active) {
+ // Do not called inherited function as the bubble delegate auto close
+ // functionality is not used.
+ if (delegate_.get() && widget == GetWidget())
+ delegate_->ViewActivationChanged(active);
+}
+
} // namespace app_list

Powered by Google App Engine
This is Rietveld 408576698