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

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

Issue 660463003: Add a SearchResultPageView to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@search_result_container_view
Patch Set: rebase Created 6 years, 2 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.h
diff --git a/ui/app_list/views/search_result_page_view.h b/ui/app_list/views/search_result_page_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..310327f403c68dce06da7e3f3de0b848aa08e38c
--- /dev/null
+++ b/ui/app_list/views/search_result_page_view.h
@@ -0,0 +1,51 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_
+#define UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_
+
+#include "base/basictypes.h"
+#include "base/memory/weak_ptr.h"
+#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;
+}
+
+namespace app_list {
+
+class AppListMainView;
+class AppListViewDelegate;
+class SearchResultListView;
+class SearchResultTileItemView;
+
+// The start page for the experimental app list.
+class APP_LIST_EXPORT SearchResultPageView : public SearchResultContainerView {
+ public:
+ SearchResultPageView(AppListMainView* app_list_main_view,
+ AppListViewDelegate* view_delegate);
+ virtual ~SearchResultPageView();
+
+ // Overridden from views::View:
+ bool OnKeyPressed(const ui::KeyEvent& event) override;
+
+ // Overridden from SearchResultContainerView:
+ void Update() override;
+
+ private:
+ void InitTilesContainer();
+
+ SearchResultListView* results_view_; // Owned by views hierarchy.
+ views::View* tiles_container_; // Owned by views hierarchy.
+
+ std::vector<SearchResultTileItemView*> tile_views_;
+
+ DISALLOW_COPY_AND_ASSIGN(SearchResultPageView);
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698