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

Side by Side Diff: ui/app_list/views/app_list_main_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: 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 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
7 7
8 #include <string>
9
8 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
9 #include "base/timer/timer.h" 11 #include "base/timer/timer.h"
10 #include "ui/app_list/apps_grid_view_delegate.h" 12 #include "ui/app_list/apps_grid_view_delegate.h"
11 #include "ui/app_list/search_box_view_delegate.h" 13 #include "ui/app_list/search_box_view_delegate.h"
12 #include "ui/app_list/search_result_list_view_delegate.h" 14 #include "ui/app_list/search_result_list_view_delegate.h"
13 #include "ui/views/view.h" 15 #include "ui/views/view.h"
14 16
15 namespace views { 17 namespace views {
16 class Widget; 18 class Widget;
17 } 19 }
(...skipping 28 matching lines...) Expand all
46 48
47 void Prerender(); 49 void Prerender();
48 50
49 SearchBoxView* search_box_view() const { return search_box_view_; } 51 SearchBoxView* search_box_view() const { return search_box_view_; }
50 52
51 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop 53 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
52 // operations outside the application list. 54 // operations outside the application list.
53 void SetDragAndDropHostOfCurrentAppList( 55 void SetDragAndDropHostOfCurrentAppList(
54 ApplicationDragAndDropHost* drag_and_drop_host); 56 ApplicationDragAndDropHost* drag_and_drop_host);
55 57
58 // Shows the apps grid regardless of whether there is a query.
59 void ShowAppsGrid();
60
56 private: 61 private:
57 class IconLoader; 62 class IconLoader;
58 63
59 // Loads icon image for the apps in the selected page of |pagination_model|. 64 // Loads icon image for the apps in the selected page of |pagination_model|.
60 // |anchor| is used to determine the image scale factor to use. 65 // |anchor| is used to determine the image scale factor to use.
61 void PreloadIcons(PaginationModel* pagination_model, 66 void PreloadIcons(PaginationModel* pagination_model,
62 views::View* anchor); 67 views::View* anchor);
63 68
64 // Invoked when |icon_loading_wait_timer_| fires. 69 // Invoked when |icon_loading_wait_timer_| fires.
65 void OnIconLoadingWaitTimer(); 70 void OnIconLoadingWaitTimer();
(...skipping 28 matching lines...) Expand all
94 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; 99 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_;
95 100
96 ScopedVector<IconLoader> pending_icon_loaders_; 101 ScopedVector<IconLoader> pending_icon_loaders_;
97 102
98 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 103 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
99 }; 104 };
100 105
101 } // namespace app_list 106 } // namespace app_list
102 107
103 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 108 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698