 Chromium Code Reviews
 Chromium Code Reviews Issue 2929273002:
  Add the Play Store app search to the launcher.  (Closed)
    
  
    Issue 2929273002:
  Add the Play Store app search to the launcher.  (Closed) 
  | Index: chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h | 
| diff --git a/chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h b/chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..29a67083a20e26af6cc21ebfbdca1078b9e2f1f8 | 
| --- /dev/null | 
| +++ b/chrome/browser/ui/app_list/search/playstore/playstore_search_provider.h | 
| @@ -0,0 +1,39 @@ | 
| +// Copyright 2017 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_ | 
| +#define CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_ | 
| + | 
| +#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.
 | 
| +#include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" | 
| +#include "chrome/browser/ui/app_list/search/playstore/playstore_search_result.h" | 
| +#include "components/arc/arc_bridge_service.h" | 
| +#include "components/arc/arc_service_manager.h" | 
| +#include "components/arc/common/app.mojom.h" | 
| +#include "ui/app_list/search_provider.h" | 
| + | 
| +#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.
 | 
| + | 
| +namespace app_list { | 
| + | 
| +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.
 | 
| + public: | 
| + PlaystoreSearchProvider(int max_results); | 
| + ~PlaystoreSearchProvider() override; | 
| + | 
| + protected: | 
| + 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.
 | 
| + void Stop() override; | 
| + void OnComplete(); | 
| 
Luis Héctor Chávez
2017/06/16 22:24:33
unused
 
Jiaquan He
2017/06/22 04:30:03
Done.
 | 
| + | 
| + private: | 
| + 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.
 | 
| + 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.
 | 
| +}; | 
| 
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.
 | 
| + | 
| +} // namespace app_list | 
| + | 
| +#endif | 
| + | 
| +#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PLAYSTORE_PLAYSTORE_SEARCH_PROVIDER_H_ |