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

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

Issue 2276553002: arc: Open launcher after installing app from Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean Created 4 years, 3 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/macros.h" 10 #include "base/macros.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Gets the PaginationModel owned by the AppsGridView. 88 // Gets the PaginationModel owned by the AppsGridView.
89 PaginationModel* GetAppsPaginationModel(); 89 PaginationModel* GetAppsPaginationModel();
90 90
91 // Loads icon image for the apps in the selected page of |pagination_model_|. 91 // Loads icon image for the apps in the selected page of |pagination_model_|.
92 // |parent| is used to determine the image scale factor to use. 92 // |parent| is used to determine the image scale factor to use.
93 void PreloadIcons(gfx::NativeView parent); 93 void PreloadIcons(gfx::NativeView parent);
94 94
95 // Invoked when |icon_loading_wait_timer_| fires. 95 // Invoked when |icon_loading_wait_timer_| fires.
96 void OnIconLoadingWaitTimer(); 96 void OnIconLoadingWaitTimer();
97 97
98 // Invoked from an IconLoader when icon loading is finished. 98 // Invoked from an IconLoader when icon loading is finished or item is closed.
99 void OnItemIconLoaded(IconLoader* loader); 99 void OnItemClosedOrIconLoaded(IconLoader* loader);
xiyuan 2016/08/23 17:54:17 nit: OnItemClosedOrIconLoaded -> OnIconLoaderFinis
khmel 2016/08/23 18:03:12 Much nicer :)
100 100
101 // Overridden from AppsGridViewDelegate: 101 // Overridden from AppsGridViewDelegate:
102 void ActivateApp(AppListItem* item, int event_flags) override; 102 void ActivateApp(AppListItem* item, int event_flags) override;
103 void CancelDragInActiveFolder() override; 103 void CancelDragInActiveFolder() override;
104 104
105 // Overridden from SearchBoxViewDelegate: 105 // Overridden from SearchBoxViewDelegate:
106 void QueryChanged(SearchBoxView* sender) override; 106 void QueryChanged(SearchBoxView* sender) override;
107 void BackButtonPressed() override; 107 void BackButtonPressed() override;
108 void SetSearchResultSelection(bool select) override; 108 void SetSearchResultSelection(bool select) override;
109 109
(...skipping 14 matching lines...) Expand all
124 ScopedVector<IconLoader> pending_icon_loaders_; 124 ScopedVector<IconLoader> pending_icon_loaders_;
125 125
126 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; 126 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 128 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
129 }; 129 };
130 130
131 } // namespace app_list 131 } // namespace app_list
132 132
133 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 133 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698