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

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: Merge API and implementation. 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 "base/strings/utf_string_conversions.h"
Luis Héctor Chávez 2017/06/16 22:24:33 You don't need most of these #includes here, and i
Jiaquan He 2017/06/22 04:30:02 Done.
9 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
10 #include "chrome/browser/ui/app_list/search/playstore/playstore_search_result.h"
11 #include "components/arc/arc_bridge_service.h"
12 #include "components/arc/arc_service_manager.h"
13 #include "components/arc/common/app.mojom.h"
14 #include "ui/app_list/search_provider.h"
15
16 #if defined(OS_CHROMEOS)
Luis Héctor Chávez 2017/06/16 22:24:33 Can't you move this to the place where it is #incl
Jiaquan He 2017/06/22 04:30:02 Done.
17
18 namespace app_list {
19
20 class PlaystoreSearchProvider : public SearchProvider {
Luis Héctor Chávez 2017/06/16 22:24:32 PlayStore
Jiaquan He 2017/06/22 04:30:02 Done.
21 public:
22 PlaystoreSearchProvider(int max_results);
23 ~PlaystoreSearchProvider() override;
24
25 protected:
26 void Start(bool is_voice_query, const base::string16& query) override;
Luis Héctor Chávez 2017/06/16 22:24:33 // app_list::SearchProvider overrides:
Jiaquan He 2017/06/22 04:30:02 Done.
27 void Stop() override;
28 void OnComplete();
Luis Héctor Chávez 2017/06/16 22:24:33 unused
Jiaquan He 2017/06/22 04:30:03 Done.
29
30 private:
31 int max_results_;
Luis Héctor Chávez 2017/06/16 22:24:33 const int max_results_;
Jiaquan He 2017/06/22 04:30:02 Done.
32 void OnResults(std::vector<arc::mojom::AppDiscoveryResultPtr> results);
Luis Héctor Chávez 2017/06/16 22:24:33 Methods go before members
Jiaquan He 2017/06/22 04:30:03 Done.
33 };
Luis Héctor Chávez 2017/06/16 22:24:32 DISABLE_COPY_AND_ASSIGN(PlaystoreSearchProvider)
Jiaquan He 2017/06/22 04:30:02 Done.
34
35 } // namespace app_list
36
37 #endif
38
39 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698