| 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_LIST_VIEW_DELEGATE_H_ |
| 6 #define UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/app_list/app_list_export.h" |
| 10 |
| 11 namespace app_list { |
| 12 |
| 13 class SearchResult; |
| 14 |
| 15 class APP_LIST_EXPORT SearchResultListViewDelegate { |
| 16 public: |
| 17 // Invoked to open given |result|. |event_flags| contains the flags of the |
| 18 // keyboard/mouse event that triggers the "open" request. Delegate could use |
| 19 // the |event_flags| information to choose different ways to open the result. |
| 20 virtual void OpenResult(const SearchResult& result, |
| 21 int event_flags) = 0; |
| 22 |
| 23 protected: |
| 24 virtual ~SearchResultListViewDelegate() {} |
| 25 }; |
| 26 |
| 27 } // namespace app_list |
| 28 |
| 29 #endif // UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_ |
| OLD | NEW |