Views Omnibox: tolerate minor click-to-select-all dragging.
[chromium-blink-merge.git] / ui / app_list / views / search_result_view_delegate.h
blobe86ccc89c99f8fa858411183df946cfd33bfc05e
1 // Copyright 2013 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 UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_
8 namespace app_list {
10 class SearchResultView;
12 class SearchResultViewDelegate {
13 public:
14 // Called when the search result is activated.
15 virtual void SearchResultActivated(SearchResultView* view,
16 int event_flags) = 0;
18 // Called when one of the search result's optional action icons is activated.
19 // |action_index| contains the 0-based index of the action.
20 virtual void SearchResultActionActivated(SearchResultView* view,
21 size_t action_index,
22 int event_flags) = 0;
24 // Called when the app represented by the search result is installed.
25 virtual void OnSearchResultInstalled(SearchResultView* view) = 0;
27 // Called when the app represented by the search result is uninstalled.
28 virtual void OnSearchResultUninstalled(SearchResultView* view) = 0;
30 protected:
31 virtual ~SearchResultViewDelegate() {}
34 } // namespace app_list
36 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_