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

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

Issue 2910173003: Revert of Making answer card to behave like other results. (Closed)
Patch Set: Created 3 years, 7 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/contents_view.cc ('k') | ui/app_list/views/search_result_answer_card_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_answer_card_view.h
diff --git a/ui/app_list/views/search_result_answer_card_view.h b/ui/app_list/views/search_result_answer_card_view.h
deleted file mode 100644
index 8c985f068607700fa0bb8d43d72618b9b5494589..0000000000000000000000000000000000000000
--- a/ui/app_list/views/search_result_answer_card_view.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2017 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_ANSWER_CARD_VIEW_H_
-#define UI_APP_LIST_VIEWS_SEARCH_RESULT_ANSWER_CARD_VIEW_H_
-
-#include "ui/app_list/app_list_model_observer.h"
-#include "ui/app_list/views/search_result_container_view.h"
-
-namespace app_list {
-
-class AppListModel;
-class SearchResultPageView;
-
-namespace {
-class SearchAnswerContainerView;
-}
-
-// Result container for the search answer card.
-class APP_LIST_EXPORT SearchResultAnswerCardView
- : public SearchResultContainerView,
- public AppListModelObserver {
- public:
- SearchResultAnswerCardView(AppListModel* model,
- SearchResultPageView* search_results_page_view,
- views::View* search_answer_view);
- ~SearchResultAnswerCardView() override;
-
- private:
- // Overridden from views::View:
- const char* GetClassName() const override;
-
- // Overridden from SearchResultContainerView:
- void OnContainerSelected(bool from_bottom,
- bool directional_movement) override;
- void NotifyFirstResultYIndex(int y_index) override {}
- int GetYSize() override;
- int DoUpdate() override;
- void UpdateSelectedIndex(int old_selected, int new_selected) override;
-
- // Overridden from AppListModelObserver
- void OnSearchAnswerAvailableChanged(bool has_answer) override;
-
- // Unowned pointer to application list model.
- AppListModel* const model_;
-
- // Pointer to the container of the search answer; owned by the view hierarchy.
- // It's visible iff we have a search answer result.
- SearchAnswerContainerView* const search_answer_container_view_;
-
- DISALLOW_COPY_AND_ASSIGN(SearchResultAnswerCardView);
-};
-
-} // namespace app_list
-
-#endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_ANSWER_CARD_VIEW_H_
« no previous file with comments | « ui/app_list/views/contents_view.cc ('k') | ui/app_list/views/search_result_answer_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698