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

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

Issue 214423002: Reset the app list when it is shown on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_app_list_folder_drag_for_real
Patch Set: fix app list folder icons disappearing on fast switch Created 6 years, 8 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
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> 8 #include <string>
9 9
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 27 matching lines...) Expand all
38 public SearchResultListViewDelegate { 38 public SearchResultListViewDelegate {
39 public: 39 public:
40 // Takes ownership of |delegate|. 40 // Takes ownership of |delegate|.
41 explicit AppListMainView(AppListViewDelegate* delegate, 41 explicit AppListMainView(AppListViewDelegate* delegate,
42 PaginationModel* pagination_model, 42 PaginationModel* pagination_model,
43 gfx::NativeView parent); 43 gfx::NativeView parent);
44 virtual ~AppListMainView(); 44 virtual ~AppListMainView();
45 45
46 void ShowAppListWhenReady(); 46 void ShowAppListWhenReady();
47 47
48 void ResetForShow();
49
48 void Close(); 50 void Close();
49 51
50 void Prerender(); 52 void Prerender();
51 53
52 void ModelChanged(); 54 void ModelChanged();
53 55
54 SearchBoxView* search_box_view() const { return search_box_view_; } 56 SearchBoxView* search_box_view() const { return search_box_view_; }
55 57
56 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop 58 // If |drag_and_drop_host| is not NULL it will be called upon drag and drop
57 // operations outside the application list. 59 // operations outside the application list.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ScopedVector<IconLoader> pending_icon_loaders_; 104 ScopedVector<IconLoader> pending_icon_loaders_;
103 105
104 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 106 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
105 107
106 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 108 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
107 }; 109 };
108 110
109 } // namespace app_list 111 } // namespace app_list
110 112
111 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 113 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698