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

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

Issue 276833002: Make the App Info Dialog appear modal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed the AppList overlay to be a Background Created 6 years, 7 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/views/app_list_view.h
diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h
index 7180918fad16767c395100ed8ad40bc578a51c7e..e8f020aab491c1ee599ef44cc7f1dd739071c3af 100644
--- a/ui/app_list/views/app_list_view.h
+++ b/ui/app_list/views/app_list_view.h
@@ -75,6 +75,11 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
void UpdateBounds();
+ // When called with |visible| = true, displays a semi-transparent overlay over
+ // the app list (good for hiding the app list when a modal dialog is being
+ // shown). Call again with |visible| = false to hide.
+ void ShowAppListOverlay(bool visible);
+
// Returns true if the app list should be centered and in landscape mode.
bool ShouldCenterWindow() const;
@@ -147,6 +152,10 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
SigninView* signin_view_;
SpeechView* speech_view_;
+ // A semi-transparent white overlay that covers the app list while dialogs are
+ // open. NULL if it hasn't been created yet.
+ views::View* overlay_view_;
+
ObserverList<AppListViewObserver> observers_;
scoped_ptr<HideViewAnimationObserver> animation_observer_;

Powered by Google App Engine
This is Rietveld 408576698