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

Side by Side Diff: ui/app_list/views/app_list_main_view.cc

Issue 21592003: app_list: Show apps grid after installing from cws result. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 #include "ui/app_list/views/app_list_main_view.h" 5 #include "ui/app_list/views/app_list_main_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 void AppListMainView::Prerender() { 135 void AppListMainView::Prerender() {
136 contents_view_->Prerender(); 136 contents_view_->Prerender();
137 } 137 }
138 138
139 void AppListMainView::SetDragAndDropHostOfCurrentAppList( 139 void AppListMainView::SetDragAndDropHostOfCurrentAppList(
140 app_list::ApplicationDragAndDropHost* drag_and_drop_host) { 140 app_list::ApplicationDragAndDropHost* drag_and_drop_host) {
141 contents_view_->SetDragAndDropHostOfCurrentAppList(drag_and_drop_host); 141 contents_view_->SetDragAndDropHostOfCurrentAppList(drag_and_drop_host);
142 } 142 }
143 143
144 void AppListMainView::ShowAppsGrid() {
145 contents_view_->ShowSearchResults(false);
146 }
147
144 void AppListMainView::PreloadIcons(PaginationModel* pagination_model, 148 void AppListMainView::PreloadIcons(PaginationModel* pagination_model,
145 views::View* anchor) { 149 views::View* anchor) {
146 ui::ScaleFactor scale_factor = ui::SCALE_FACTOR_100P; 150 ui::ScaleFactor scale_factor = ui::SCALE_FACTOR_100P;
147 if (anchor && anchor->GetWidget()) { 151 if (anchor && anchor->GetWidget()) {
148 scale_factor = ui::GetScaleFactorForNativeView( 152 scale_factor = ui::GetScaleFactorForNativeView(
149 anchor->GetWidget()->GetNativeView()); 153 anchor->GetWidget()->GetNativeView());
150 } 154 }
151 155
152 // |pagination_model| could have -1 as the initial selected page and 156 // |pagination_model| could have -1 as the initial selected page and
153 // assumes first page (i.e. index 0) will be used in this case. 157 // assumes first page (i.e. index 0) will be used in this case.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 } 224 }
221 225
222 void AppListMainView::InvokeResultAction(SearchResult* result, 226 void AppListMainView::InvokeResultAction(SearchResult* result,
223 int action_index, 227 int action_index,
224 int event_flags) { 228 int event_flags) {
225 if (delegate_) 229 if (delegate_)
226 delegate_->InvokeSearchResultAction(result, action_index, event_flags); 230 delegate_->InvokeSearchResultAction(result, action_index, event_flags);
227 } 231 }
228 232
229 } // namespace app_list 233 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698