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

Side by Side Diff: chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h

Issue 2929273002: Add the Play Store app search to the launcher. (Closed)
Patch Set: Finished comments and merged with the context menu CL. Created 3 years, 6 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_
7
8 #include "components/arc/common/app.mojom.h"
9 #include "ui/app_list/search_provider.h"
10
11 class Profile;
12 class AppListControllerDelegate;
13
14 namespace app_list {
15
16 class PlayStoreSearchProvider : public SearchProvider {
17 public:
18 // app_list::SearchProvider overrides;
Luis Héctor Chávez 2017/06/22 15:42:09 Move this to after L24.
Jiaquan He 2017/06/22 19:12:41 Done.
19 PlayStoreSearchProvider(int max_results,
20 Profile* profile,
21 AppListControllerDelegate* list_controller);
22 ~PlayStoreSearchProvider() override;
23
24 protected:
25 void Start(bool is_voice_query, const base::string16& query) override;
26 void Stop() override;
27
28 private:
29 void OnResults(std::vector<PlayStoreSearchResultUniquePtr> results);
Luis Héctor Chávez 2017/06/22 15:42:09 Newline below the methods.
Jiaquan He 2017/06/22 19:12:41 Done.
30 const int max_results_;
31 Profile* profile_;
Luis Héctor Chávez 2017/06/22 15:42:10 Profile* const profile_; Also, comment about its
Jiaquan He 2017/06/22 19:12:41 Done.
32 // list_controller_ is owned by AppListServiceAsh and lives
33 // until the service finishes.
34 AppListControllerDelegate* list_controller_;
Luis Héctor Chávez 2017/06/22 15:42:09 const
Jiaquan He 2017/06/22 19:12:41 Done.
35 base::WeakPtrFactory<PlayStoreSearchProvider> weak_ptr_factory_;
36
37 DISALLOW_COPY_AND_ASSIGN(PlayStoreSearchProvider);
38 };
39
40 } // namespace app_list
41
42 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698