Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ | |
| 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/weak_ptr.h" | |
| 12 #include "chrome/browser/ui/app_list/search/chrome_search_result.h" | |
| 13 #include "url/gurl.h" | |
| 14 | |
| 15 class AppListControllerDelegate; | |
|
xiyuan
2013/09/04 23:15:41
Is this used?
rkc
2013/09/04 23:48:02
Nope, copy/paste leftovers.
Done.
| |
| 16 class Profile; | |
| 17 | |
| 18 namespace extensions { | |
| 19 class InstallTracker; | |
|
xiyuan
2013/09/04 23:15:41
Is this used?
rkc
2013/09/04 23:48:02
Done.
| |
| 20 } | |
| 21 | |
| 22 namespace app_list { | |
| 23 | |
| 24 class PeopleResult : public ChromeSearchResult { | |
| 25 public: | |
| 26 PeopleResult(Profile* profile, | |
| 27 const std::string& id, | |
| 28 const std::string& display_name, | |
| 29 double interaction_rank, | |
| 30 const GURL& image_url); | |
| 31 virtual ~PeopleResult(); | |
| 32 | |
| 33 // ChromeSearchResult overides: | |
| 34 virtual void Open(int event_flags) OVERRIDE; | |
| 35 virtual void InvokeAction(int action_index, int event_flags) OVERRIDE; | |
| 36 virtual scoped_ptr<ChromeSearchResult> Duplicate() OVERRIDE; | |
| 37 virtual ChromeSearchResultType GetType() OVERRIDE; | |
| 38 | |
| 39 private: | |
| 40 void SetDefaultDetails(); | |
| 41 void OnIconLoaded(); | |
| 42 | |
| 43 Profile* profile_; | |
| 44 const std::string id_; | |
| 45 const std::string display_name_; | |
| 46 const double interaction_rank_; | |
| 47 const GURL image_url_; | |
| 48 | |
| 49 gfx::ImageSkia image_; | |
| 50 base::WeakPtrFactory<PeopleResult> weak_factory_; | |
| 51 | |
| 52 DISALLOW_COPY_AND_ASSIGN(PeopleResult); | |
| 53 }; | |
| 54 | |
| 55 } // namespace app_list | |
| 56 | |
| 57 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ | |
| OLD | NEW |