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

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: Removed unnecessary mac fixes 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 03129774b83d77f39cd5647ffd644aeff9728179..94178e0d4a9f7830200133c150b95113e1d22111 100644
--- a/ui/app_list/views/app_list_view.h
+++ b/ui/app_list/views/app_list_view.h
@@ -18,6 +18,10 @@ namespace base {
class FilePath;
}
+namespace test {
+class AppListViewTestApi;
+}
+
namespace app_list {
class ApplicationDragAndDropHost;
class AppListMainView;
@@ -76,6 +80,10 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
void UpdateBounds();
+ // Enables/disables a semi-transparent overlay over the app list (good for
+ // hiding the app list when a modal dialog is being shown).
+ void SetAppListOverlayVisible(bool visible);
+
// Returns true if the app list should be centered and in landscape mode.
bool ShouldCenterWindow() const;
@@ -108,6 +116,8 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
AppListMainView* app_list_main_view() { return app_list_main_view_; }
private:
+ friend class test::AppListViewTestApi;
+
void InitAsBubbleInternal(gfx::NativeView parent,
PaginationModel* pagination_model,
views::BubbleBorder::Arrow arrow,
@@ -149,6 +159,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.
+ views::View* overlay_view_;
+
ObserverList<AppListViewObserver> observers_;
scoped_ptr<HideViewAnimationObserver> animation_observer_;
« no previous file with comments | « chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc ('k') | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698