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

Side by Side Diff: ui/app_list/search_result_list_view_delegate.h

Issue 21592003: app_list: Show apps grid after installing from cws result. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: happy mac Created 7 years, 4 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/search_result.cc ('k') | ui/app_list/search_result_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_SEARCH_RESULT_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 {
11 11
12 class SearchResult; 12 class SearchResult;
13 13
14 class APP_LIST_EXPORT SearchResultListViewDelegate { 14 class APP_LIST_EXPORT SearchResultListViewDelegate {
15 public: 15 public:
16 // Invoked to open given |result|. |event_flags| contains the flags of the 16 // Invoked to open given |result|. |event_flags| contains the flags of the
17 // keyboard/mouse event that triggers the "open" request. Delegate could use 17 // keyboard/mouse event that triggers the "open" request. Delegate could use
18 // the |event_flags| information to choose different ways to open the result. 18 // the |event_flags| information to choose different ways to open the result.
19 virtual void OpenResult(SearchResult* result, 19 virtual void OpenResult(SearchResult* result,
20 int event_flags) = 0; 20 int event_flags) = 0;
21 21
22 // Called to invoke a custom action on |result|. |action_index| corresponds 22 // Called to invoke a custom action on |result|. |action_index| corresponds
23 // to the index of the icon in |result.action_icons()| that was activated. 23 // to the index of the icon in |result.action_icons()| that was activated.
24 virtual void InvokeResultAction(SearchResult* result, 24 virtual void InvokeResultAction(SearchResult* result,
25 int action_index, 25 int action_index,
26 int event_flags) = 0; 26 int event_flags) = 0;
27 27
28 // Called when the app represented by |result| is installed.
29 virtual void OnResultInstalled(SearchResult* result) = 0;
30
28 protected: 31 protected:
29 virtual ~SearchResultListViewDelegate() {} 32 virtual ~SearchResultListViewDelegate() {}
30 }; 33 };
31 34
32 } // namespace app_list 35 } // namespace app_list
33 36
34 #endif // UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_ 37 #endif // UI_APP_LIST_SEARCH_RESULT_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/search_result.cc ('k') | ui/app_list/search_result_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698