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

Unified Diff: ui/app_list/views/app_list_page.cc

Issue 2982453002: New AppListView Scroll Behavior. (Closed)
Patch Set: Removed unintended edit. Created 3 years, 5 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
« no previous file with comments | « ui/app_list/views/app_list_page.h ('k') | ui/app_list/views/app_list_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_page.cc
diff --git a/ui/app_list/views/app_list_page.cc b/ui/app_list/views/app_list_page.cc
index 8a7b6f3bd9dbc7224afee42b13ec531301d19b34..9799f94a3cd6cc8770e294c65a96f96f439043af 100644
--- a/ui/app_list/views/app_list_page.cc
+++ b/ui/app_list/views/app_list_page.cc
@@ -10,32 +10,25 @@ namespace {
// The default z height for the search box.
const int kDefaultSearchBoxZHeight = 2;
-}
+} // namespace
namespace app_list {
-AppListPage::AppListPage() : contents_view_(nullptr) {
-}
+AppListPage::AppListPage() : contents_view_(nullptr) {}
-AppListPage::~AppListPage() {
-}
+AppListPage::~AppListPage() {}
-void AppListPage::OnShown() {
-}
+void AppListPage::OnShown() {}
-void AppListPage::OnWillBeShown() {
-}
+void AppListPage::OnWillBeShown() {}
-void AppListPage::OnHidden() {
-}
+void AppListPage::OnHidden() {}
-void AppListPage::OnWillBeHidden() {
-}
+void AppListPage::OnWillBeHidden() {}
void AppListPage::OnAnimationUpdated(double progress,
AppListModel::State from_state,
- AppListModel::State to_state) {
-}
+ AppListModel::State to_state) {}
gfx::Rect AppListPage::GetSearchBoxBounds() const {
DCHECK(contents_view_);
@@ -71,4 +64,9 @@ gfx::Rect AppListPage::GetDefaultContentsBounds() const {
return contents_view_->GetDefaultContentsBounds();
}
+bool AppListPage::IsCustomLauncherPageActive() const {
+ return contents_view_->IsStateActive(
+ AppListModel::STATE_CUSTOM_LAUNCHER_PAGE);
+}
+
} // namespace app_list
« no previous file with comments | « ui/app_list/views/app_list_page.h ('k') | ui/app_list/views/app_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698