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

Side by Side Diff: ui/app_list/views/app_list_main_view.h

Issue 1003393002: After uninstall, remove last item in Launcher folder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move work from views to model, as per reviewer comment Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Returns true if the app list should be centered and in landscape mode. 70 // Returns true if the app list should be centered and in landscape mode.
71 bool ShouldCenterWindow() const; 71 bool ShouldCenterWindow() const;
72 72
73 // Called when the search box's visibility is changed. 73 // Called when the search box's visibility is changed.
74 void NotifySearchBoxVisibilityChanged(); 74 void NotifySearchBoxVisibilityChanged();
75 75
76 bool ShouldShowCustomLauncherPage() const; 76 bool ShouldShowCustomLauncherPage() const;
77 void UpdateCustomLauncherPageVisibility(); 77 void UpdateCustomLauncherPageVisibility();
78 78
79 // Overridden from AppListModelObserver: 79 // Overridden from AppListModelObserver:
80 void OnSingleItemFolderWillBeDeleted() override;
80 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override; 81 void OnCustomLauncherPageEnabledStateChanged(bool enabled) override;
81 void OnSearchEngineIsGoogleChanged(bool is_google) override; 82 void OnSearchEngineIsGoogleChanged(bool is_google) override;
82 83
83 private: 84 private:
84 class IconLoader; 85 class IconLoader;
85 86
86 // Adds the ContentsView. 87 // Adds the ContentsView.
87 void AddContentsViews(); 88 void AddContentsViews();
88 89
89 // Gets the PaginationModel owned by the AppsGridView. 90 // Gets the PaginationModel owned by the AppsGridView.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 ScopedVector<IconLoader> pending_icon_loaders_; 129 ScopedVector<IconLoader> pending_icon_loaders_;
129 130
130 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 131 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 133 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
133 }; 134 };
134 135
135 } // namespace app_list 136 } // namespace app_list
136 137
137 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 138 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698