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

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

Issue 720663002: Move app list search tiles into SearchResultTileItemListView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years, 1 month 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/search_result_list_view.cc ('k') | ui/app_list/views/search_result_page_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_result_page_view.h
diff --git a/ui/app_list/views/search_result_page_view.h b/ui/app_list/views/search_result_page_view.h
index cbe35b27bbdb9d1d2ec54aff704059c6e49ddd47..4ea115bdba36e99c0840e002ff4c26f786ebcfc4 100644
--- a/ui/app_list/views/search_result_page_view.h
+++ b/ui/app_list/views/search_result_page_view.h
@@ -10,20 +10,17 @@
#include "ui/app_list/app_list_export.h"
#include "ui/app_list/app_list_model.h"
#include "ui/app_list/views/search_result_container_view.h"
-
-namespace views {
-class View;
-}
+#include "ui/views/view.h"
namespace app_list {
class AppListMainView;
class AppListViewDelegate;
class SearchResultListView;
-class SearchResultTileItemView;
+class SearchResultTileItemListView;
// The start page for the experimental app list.
-class APP_LIST_EXPORT SearchResultPageView : public SearchResultContainerView {
+class APP_LIST_EXPORT SearchResultPageView : public views::View {
public:
SearchResultPageView(AppListMainView* app_list_main_view,
AppListViewDelegate* view_delegate);
@@ -31,17 +28,11 @@ class APP_LIST_EXPORT SearchResultPageView : public SearchResultContainerView {
// Overridden from views::View:
bool OnKeyPressed(const ui::KeyEvent& event) override;
-
- // Overridden from SearchResultContainerView:
- void Update() override;
+ void ChildPreferredSizeChanged(views::View* child) override;
private:
- void InitTilesContainer();
-
SearchResultListView* results_view_; // Owned by views hierarchy.
- views::View* tiles_container_; // Owned by views hierarchy.
-
- std::vector<SearchResultTileItemView*> tile_views_;
+ SearchResultTileItemListView* tiles_view_; // Owned by views hierarchy.
DISALLOW_COPY_AND_ASSIGN(SearchResultPageView);
};
« no previous file with comments | « ui/app_list/views/search_result_list_view.cc ('k') | ui/app_list/views/search_result_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698