diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-16 08:08:38 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-16 08:08:38 +0000 |
commit | 1df7301e9c905bed6ed075742ce4fdfee90db9ad (patch) | |
tree | c2f4b1a6ae30731a616ff274c6f9a00b3ab9410b /ash | |
parent | 836e29803eb5904c781a5ed752b615aeb51ff443 (diff) | |
download | chromium_src-1df7301e9c905bed6ed075742ce4fdfee90db9ad.zip chromium_src-1df7301e9c905bed6ed075742ce4fdfee90db9ad.tar.gz chromium_src-1df7301e9c905bed6ed075742ce4fdfee90db9ad.tar.bz2 |
app_list: Implement local app search provider.
- Add AppSearchProvider based on pattern matching search;
- Add AppResult to represent an app search result;
- Rewire SearchResult actions to pass back a non-const pointer instead
of a const reference since SearchResult is an actionable object instead
of static data now;
- Deprecating old SearchBuilder;
BUG=173427
Review URL: https://chromiumcodereview.appspot.com/15198004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200491 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/shell/app_list.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc index 7ee4d38..3404afd 100644 --- a/ash/shell/app_list.cc +++ b/ash/shell/app_list.cc @@ -236,14 +236,14 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { static_cast<WindowTypeLauncherItem*>(item)->Activate(event_flags); } - virtual void OpenSearchResult(const app_list::SearchResult& result, + virtual void OpenSearchResult(app_list::SearchResult* result, int event_flags) OVERRIDE { const ExampleSearchResult* example_result = - static_cast<const ExampleSearchResult*>(&result); + static_cast<const ExampleSearchResult*>(result); WindowTypeLauncherItem::Activate(example_result->type(), event_flags); } - virtual void InvokeSearchResultAction(const app_list::SearchResult& result, + virtual void InvokeSearchResultAction(app_list::SearchResult* result, int action_index, int event_flags) OVERRIDE { NOTIMPLEMENTED(); |