diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-28 23:48:14 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-28 23:48:14 +0000 |
commit | 814e3e2f12f8c67228e0c4613c8149f30177b9dc (patch) | |
tree | 278adf6a4cd4d3638323bc25b76acebb43fdd892 /ash/shell/app_list.cc | |
parent | da36da98ce283c09d7b1cbdd3d2450df72ca659c (diff) | |
download | chromium_src-814e3e2f12f8c67228e0c4613c8149f30177b9dc.zip chromium_src-814e3e2f12f8c67228e0c4613c8149f30177b9dc.tar.gz chromium_src-814e3e2f12f8c67228e0c4613c8149f30177b9dc.tar.bz2 |
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
Diffstat (limited to 'ash/shell/app_list.cc')
-rw-r--r-- | ash/shell/app_list.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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); |