From 814e3e2f12f8c67228e0c4613c8149f30177b9dc Mon Sep 17 00:00:00 2001 From: "derat@chromium.org" Date: Tue, 28 Aug 2012 23:48:14 +0000 Subject: ash: Add support for additional icons in apps search list. This adds the concept of "action icons" to app_list::SearchResult. These are small icons that appear at the right of a given search result and can be clicked to invoke alternate actions. I'm planning to use this to expose chat, call, email, etc. actions for contact results. BUG=141877 TEST=none Review URL: https://chromiumcodereview.appspot.com/10872099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153795 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/shell/app_list.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ash/shell/app_list.cc') diff --git a/ash/shell/app_list.cc b/ash/shell/app_list.cc index 40215ae..0ad18aa 100644 --- a/ash/shell/app_list.cc +++ b/ash/shell/app_list.cc @@ -240,6 +240,12 @@ class ExampleAppListViewDelegate : public app_list::AppListViewDelegate { WindowTypeLauncherItem::Activate(example_result->type(), event_flags); } + virtual void InvokeSearchResultAction(const app_list::SearchResult& result, + int action_index, + int event_flags) OVERRIDE { + NOTIMPLEMENTED(); + } + virtual void StartSearch() OVERRIDE { string16 query; TrimWhitespace(model_->search_box()->text(), TRIM_ALL, &query); -- cgit v1.1