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

Unified Diff: ui/app_list/app_list_view_delegate.h

Issue 10386224: app_list: Add search box and search result view for v2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura Created 8 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
Index: ui/app_list/app_list_view_delegate.h
diff --git a/ui/app_list/app_list_view_delegate.h b/ui/app_list/app_list_view_delegate.h
index 57ca3ac0e973a8962eb3cadcd304ead77a8701bb..60a0778701816ed6b4020451994a5a16ed1c2e9f 100644
--- a/ui/app_list/app_list_view_delegate.h
+++ b/ui/app_list/app_list_view_delegate.h
@@ -6,14 +6,13 @@
#define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
#pragma once
-#include <string>
-
#include "ui/app_list/app_list_export.h"
namespace app_list {
class AppListItemModel;
class AppListModel;
+class SearchResult;
class APP_LIST_EXPORT AppListViewDelegate {
public:
@@ -24,12 +23,21 @@ class APP_LIST_EXPORT AppListViewDelegate {
// Note that AppListView owns the model.
virtual void SetModel(AppListModel* model) = 0;
- // Invoked to ask the delegate to populate the model for given |query|.
- virtual void UpdateModel(const std::string& query) = 0;
+ // Invoked when an AppListeItemModelView is activated by click or enter key.
+ virtual void ActivateAppListItem(AppListItemModel* item,
+ int event_flags) = 0;
+
+ // Invoked to start a new search. Delegate collects query input from
+ // SearchBoxModel and populates SearchResults. Both models are sub models
+ // of AppListModel.
+ virtual void StartSearch() = 0;
+
+ // Invoked to stop the current search.
+ virtual void StopSearch() = 0;
- // Invoked an AppListeItemModelView is activated by click or enter key.
- virtual void OnAppListItemActivated(AppListItemModel* item,
- int event_flags) = 0;
+ // Invoked to open the search result.
+ virtual void OpenSearchResult(const SearchResult& result,
+ int event_flags) = 0;
// Invoked to close app list.
virtual void Close() = 0;

Powered by Google App Engine
This is Rietveld 408576698