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

Side by Side Diff: ui/app_list/views/search_result_list_view.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/views/app_list_main_view.cc ('k') | ui/app_list/views/search_result_list_view.cc » ('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_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/app_list/app_list_model.h" 10 #include "ui/app_list/app_list_model.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE; 51 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE;
52 virtual void ListItemMoved(size_t index, size_t target_index) OVERRIDE; 52 virtual void ListItemMoved(size_t index, size_t target_index) OVERRIDE;
53 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE; 53 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE;
54 54
55 // Overridden from SearchResultViewDelegate: 55 // Overridden from SearchResultViewDelegate:
56 virtual void SearchResultActivated(SearchResultView* view, 56 virtual void SearchResultActivated(SearchResultView* view,
57 int event_flags) OVERRIDE; 57 int event_flags) OVERRIDE;
58 virtual void SearchResultActionActivated(SearchResultView* view, 58 virtual void SearchResultActionActivated(SearchResultView* view,
59 size_t action_index, 59 size_t action_index,
60 int event_flags) OVERRIDE; 60 int event_flags) OVERRIDE;
61 virtual void OnSearchResultInstalled(SearchResultView* view) OVERRIDE;
61 62
62 SearchResultListViewDelegate* delegate_; // Not owned. 63 SearchResultListViewDelegate* delegate_; // Not owned.
63 AppListModel::SearchResults* results_; // Owned by AppListModel. 64 AppListModel::SearchResults* results_; // Owned by AppListModel.
64 65
65 int last_visible_index_; 66 int last_visible_index_;
66 int selected_index_; 67 int selected_index_;
67 68
68 // The factory that consolidates multiple Update calls into one. 69 // The factory that consolidates multiple Update calls into one.
69 base::WeakPtrFactory<SearchResultListView> update_factory_; 70 base::WeakPtrFactory<SearchResultListView> update_factory_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(SearchResultListView); 72 DISALLOW_COPY_AND_ASSIGN(SearchResultListView);
72 }; 73 };
73 74
74 } // namespace app_ist 75 } // namespace app_ist
75 76
76 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ 77 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_main_view.cc ('k') | ui/app_list/views/search_result_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698