aura: Implement app list M19 mock.
[chromium-blink-merge.git] / ash / app_list / app_list_view_delegate.h
blob112bfcf1ac8a0918ff153e6010326e7196dc471e
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_
7 #pragma once
9 #include <string>
11 #include "ash/ash_export.h"
13 namespace ash {
15 class AppListItemModel;
16 class AppListModel;
18 class ASH_EXPORT AppListViewDelegate {
19 public:
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,
29 int event_flags) = 0;
32 } // namespace ash
34 #endif // ASH_APP_LIST_APP_LIST_VIEW_DELEGATE_H_