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

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

Issue 2933673002: Preparing to making answer-card independent of fullscreen. (Closed)
Patch Set: CR comments Created 3 years, 6 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/search_result_page_view.cc
diff --git a/ui/app_list/views/search_result_page_view.cc b/ui/app_list/views/search_result_page_view.cc
index d94b6d7c185777e418b7874eeeafee05aa89ca88..ff6e6a38a8ac0963c97c3ce343d47f1e0005a06f 100644
--- a/ui/app_list/views/search_result_page_view.cc
+++ b/ui/app_list/views/search_result_page_view.cc
@@ -70,7 +70,7 @@ class ZeroWidthVerticalScrollBar : public views::OverlayScrollBar {
SearchResultPageView::SearchResultPageView()
: selected_index_(0),
- is_fullscreen_app_list_enabled_(features::IsFullscreenAppListEnabled()),
+ is_new_design_(features::IsSearchResultsNewDesignEnabled()),
contents_view_(new views::View) {
gfx::ShadowValue shadow = GetShadowForZHeight(kSearchResultZHeight);
std::unique_ptr<views::Border> border(new views::ShadowBorder(shadow));
@@ -246,7 +246,7 @@ gfx::Rect SearchResultPageView::GetPageBoundsForState(
AppListModel::State state) const {
gfx::Rect onscreen_bounds = GetDefaultContentsBounds();
- if (is_fullscreen_app_list_enabled_)
+ if (is_new_design_)
onscreen_bounds.set_height(kFullscreenHeight);
switch (state) {
« ui/app_list/app_list_features.h ('K') | « ui/app_list/views/search_result_page_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698