| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_ |
| 6 #define UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_ |
| 7 |
| 8 namespace ui { |
| 9 class Event; |
| 10 } |
| 11 |
| 12 namespace app_list { |
| 13 |
| 14 class SearchResultView; |
| 15 |
| 16 class SearchResultViewDelegate { |
| 17 public: |
| 18 // Called when the search result is activated. |
| 19 virtual void SearchResultActivated(SearchResultView* view, |
| 20 const ui::Event& event) = 0; |
| 21 |
| 22 // Called when one of the search result's optional action icons is activated. |
| 23 // |action_index| contains the 0-based index of the action. |
| 24 virtual void SearchResultActionActivated(SearchResultView* view, |
| 25 int action_index, |
| 26 const ui::Event& event) = 0; |
| 27 |
| 28 protected: |
| 29 virtual ~SearchResultViewDelegate() {} |
| 30 }; |
| 31 |
| 32 } // namespace ash |
| 33 |
| 34 #endif // UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_ |
| OLD | NEW |