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

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

Issue 2960123002: Revert of Replace AllAppsTileItemView with ArrowExpandView (Closed)
Patch Set: 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
« no previous file with comments | « ui/app_list/views/start_page_view.h ('k') | ui/app_list/views/suggestions_container_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/start_page_view.cc
diff --git a/ui/app_list/views/start_page_view.cc b/ui/app_list/views/start_page_view.cc
index fb4e24f1c195d1dc0103eae892ff89e9c3aa3add..ad3b9b8878da615294abda11bb610b4596484779 100644
--- a/ui/app_list/views/start_page_view.cc
+++ b/ui/app_list/views/start_page_view.cc
@@ -23,7 +23,6 @@
#include "ui/app_list/views/app_list_main_view.h"
#include "ui/app_list/views/contents_view.h"
#include "ui/app_list/views/custom_launcher_page_view.h"
-#include "ui/app_list/views/expand_arrow_view.h"
#include "ui/app_list/views/indicator_chip_view.h"
#include "ui/app_list/views/search_box_view.h"
#include "ui/app_list/views/search_result_container_view.h"
@@ -57,7 +56,6 @@
constexpr int kWebViewWidth = 700;
constexpr int kWebViewHeight = 224;
-constexpr int kExpandArrowTopPadding = 28;
constexpr int kLauncherPageBackgroundWidth = 400;
} // namespace
@@ -127,11 +125,6 @@
// The view containing the start page tiles.
AddChildView(suggestions_container_);
- if (is_fullscreen_app_list_enabled_) {
- expand_arrow_view_ = new ExpandArrowView(
- app_list_main_view_->contents_view(), app_list_view);
- AddChildView(expand_arrow_view_);
- }
AddChildView(custom_launcher_page_background_);
suggestions_container_->SetResults(view_delegate_->GetModel()->results());
@@ -251,18 +244,6 @@
0);
}
suggestions_container_->SetBoundsRect(bounds);
-
- if (expand_arrow_view_) {
- gfx::Rect expand_arrow_rect(GetContentsBounds());
- int left_right_padding =
- (bounds.width() - expand_arrow_view_->GetPreferredSize().width()) / 2;
-
- expand_arrow_rect.Inset(left_right_padding, 0, left_right_padding, 0);
- expand_arrow_rect.set_y(bounds.bottom() + kExpandArrowTopPadding);
- expand_arrow_rect.set_height(
- expand_arrow_view_->GetPreferredSize().height());
- expand_arrow_view_->SetBoundsRect(expand_arrow_rect);
- }
CustomLauncherPageView* custom_launcher_page_view =
app_list_main_view_->contents_view()->custom_page_view();
« no previous file with comments | « ui/app_list/views/start_page_view.h ('k') | ui/app_list/views/suggestions_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698