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

Side by Side Diff: ui/app_list/views/app_list_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 (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 #include "ui/app_list/views/app_list_view.h" 5 #include "ui/app_list/views/app_list_view.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "ui/app_list/app_list_constants.h" 9 #include "ui/app_list/app_list_constants.h"
10 #include "ui/app_list/app_list_model.h" 10 #include "ui/app_list/app_list_model.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 void AppListView::OnSigninStatusChanged() { 176 void AppListView::OnSigninStatusChanged() {
177 const bool needs_signin = 177 const bool needs_signin =
178 GetSigninDelegate() && GetSigninDelegate()->NeedSignin(); 178 GetSigninDelegate() && GetSigninDelegate()->NeedSignin();
179 179
180 signin_view_->SetVisible(needs_signin); 180 signin_view_->SetVisible(needs_signin);
181 app_list_main_view_->SetVisible(!needs_signin); 181 app_list_main_view_->SetVisible(!needs_signin);
182 app_list_main_view_->search_box_view()->InvalidateMenu(); 182 app_list_main_view_->search_box_view()->InvalidateMenu();
183 } 183 }
184 184
185 void AppListView::ShowAppsGrid() {
186 app_list_main_view_->ShowAppsGrid();
benwells 2013/08/01 22:53:12 Should you use app_list_main_view_->search_box_vie
xiyuan 2013/08/01 23:18:28 I was thinking of leaving the query there might sa
187 }
188
185 views::View* AppListView::GetInitiallyFocusedView() { 189 views::View* AppListView::GetInitiallyFocusedView() {
186 return app_list_main_view_->search_box_view()->search_box(); 190 return app_list_main_view_->search_box_view()->search_box();
187 } 191 }
188 192
189 gfx::ImageSkia AppListView::GetWindowIcon() { 193 gfx::ImageSkia AppListView::GetWindowIcon() {
190 if (delegate_) 194 if (delegate_)
191 return delegate_->GetWindowIcon(); 195 return delegate_->GetWindowIcon();
192 196
193 return gfx::ImageSkia(); 197 return gfx::ImageSkia();
194 } 198 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 261
258 void AppListView::OnSigninSuccess() { 262 void AppListView::OnSigninSuccess() {
259 OnSigninStatusChanged(); 263 OnSigninStatusChanged();
260 } 264 }
261 265
262 SigninDelegate* AppListView::GetSigninDelegate() { 266 SigninDelegate* AppListView::GetSigninDelegate() {
263 return delegate_ ? delegate_->GetSigninDelegate() : NULL; 267 return delegate_ ? delegate_->GetSigninDelegate() : NULL;
264 } 268 }
265 269
266 } // namespace app_list 270 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698