1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
6 #define ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
11 #include "ash/ash_export.h"
15 class AppListItemModel
;
18 class ASH_EXPORT AppListViewDelegate
{
20 // AppListView owns the delegate.
21 virtual ~AppListViewDelegate() {}
23 // Invoked to ask the delegate to populate the |model| for given |query|.
24 virtual void BuildAppListModel(const std::string
& query
,
25 AppListModel
* model
) = 0;
27 // Invoked an AppListeItemModelView is activated by click or enter key.
28 virtual void OnAppListItemActivated(AppListItemModel
* item
,
34 #endif // ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_