Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: ui/app_list/views/search_result_view_delegate.h

Issue 164193005: Refactors the auto-launch logic and adds tests for it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win error 2 Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/views/search_result_list_view_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_
7 7
8 #include "ui/app_list/app_list_export.h"
9
8 namespace app_list { 10 namespace app_list {
9 11
10 class SearchResultView; 12 class SearchResultView;
11 13
12 class SearchResultViewDelegate { 14 class APP_LIST_EXPORT SearchResultViewDelegate {
13 public: 15 public:
14 // Called when the search result is activated. 16 // Called when the search result is activated.
15 virtual void SearchResultActivated(SearchResultView* view, 17 virtual void SearchResultActivated(SearchResultView* view,
16 int event_flags) = 0; 18 int event_flags) = 0;
17 19
18 // Called when one of the search result's optional action icons is activated. 20 // Called when one of the search result's optional action icons is activated.
19 // |action_index| contains the 0-based index of the action. 21 // |action_index| contains the 0-based index of the action.
20 virtual void SearchResultActionActivated(SearchResultView* view, 22 virtual void SearchResultActionActivated(SearchResultView* view,
21 size_t action_index, 23 size_t action_index,
22 int event_flags) = 0; 24 int event_flags) = 0;
23 25
24 // Called when the app represented by the search result is installed. 26 // Called when the app represented by the search result is installed.
25 virtual void OnSearchResultInstalled(SearchResultView* view) = 0; 27 virtual void OnSearchResultInstalled(SearchResultView* view) = 0;
26 28
27 // Called when the app represented by the search result is uninstalled. 29 // Called when the app represented by the search result is uninstalled.
28 virtual void OnSearchResultUninstalled(SearchResultView* view) = 0; 30 virtual void OnSearchResultUninstalled(SearchResultView* view) = 0;
29 31
30 protected: 32 protected:
31 virtual ~SearchResultViewDelegate() {} 33 virtual ~SearchResultViewDelegate() {}
32 }; 34 };
33 35
34 } // namespace app_list 36 } // namespace app_list
35 37
36 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_ 38 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/search_result_list_view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698