OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include "ui/app_list/app_list_export.h" | 8 #include "ui/app_list/app_list_export.h" |
9 | 9 |
10 namespace app_list { | 10 namespace app_list { |
(...skipping 28 matching lines...) Expand all Loading... |
39 int event_flags) = 0; | 39 int event_flags) = 0; |
40 | 40 |
41 // Called to invoke a custom action on |result|. |action_index| corresponds | 41 // Called to invoke a custom action on |result|. |action_index| corresponds |
42 // to the index of an icon in |result.action_icons()|. | 42 // to the index of an icon in |result.action_icons()|. |
43 virtual void InvokeSearchResultAction(const SearchResult& result, | 43 virtual void InvokeSearchResultAction(const SearchResult& result, |
44 int action_index, | 44 int action_index, |
45 int event_flags) = 0; | 45 int event_flags) = 0; |
46 | 46 |
47 // Invoked to close app list. | 47 // Invoked to close app list. |
48 virtual void Close() = 0; | 48 virtual void Close() = 0; |
| 49 |
| 50 // Invoked when the app list is closing. |
| 51 virtual void ViewClosing() = 0; |
| 52 |
| 53 // Invoked when the app list's activated state changes. |
| 54 virtual void ViewActivationChanged(bool active) = 0; |
49 }; | 55 }; |
50 | 56 |
51 } // namespace app_list | 57 } // namespace app_list |
52 | 58 |
53 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ | 59 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ |
OLD | NEW |