Chromium Code Reviews| Index: chrome/browser/ui/app_list/search/people/people_result.h |
| diff --git a/chrome/browser/ui/app_list/search/people/people_result.h b/chrome/browser/ui/app_list/search/people/people_result.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..05e1ad6764e204bc024a7e15f236585860b7ccac |
| --- /dev/null |
| +++ b/chrome/browser/ui/app_list/search/people/people_result.h |
| @@ -0,0 +1,57 @@ |
| +// Copyright 2013 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_PEOPLE_PEOPLE_RESULT_H_ |
| +#define CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "chrome/browser/ui/app_list/search/chrome_search_result.h" |
| +#include "url/gurl.h" |
| + |
| +class AppListControllerDelegate; |
|
xiyuan
2013/09/04 23:15:41
Is this used?
rkc
2013/09/04 23:48:02
Nope, copy/paste leftovers.
Done.
|
| +class Profile; |
| + |
| +namespace extensions { |
| +class InstallTracker; |
|
xiyuan
2013/09/04 23:15:41
Is this used?
rkc
2013/09/04 23:48:02
Done.
|
| +} |
| + |
| +namespace app_list { |
| + |
| +class PeopleResult : public ChromeSearchResult { |
| + public: |
| + PeopleResult(Profile* profile, |
| + const std::string& id, |
| + const std::string& display_name, |
| + double interaction_rank, |
| + const GURL& image_url); |
| + virtual ~PeopleResult(); |
| + |
| + // ChromeSearchResult overides: |
| + virtual void Open(int event_flags) OVERRIDE; |
| + virtual void InvokeAction(int action_index, int event_flags) OVERRIDE; |
| + virtual scoped_ptr<ChromeSearchResult> Duplicate() OVERRIDE; |
| + virtual ChromeSearchResultType GetType() OVERRIDE; |
| + |
| + private: |
| + void SetDefaultDetails(); |
| + void OnIconLoaded(); |
| + |
| + Profile* profile_; |
| + const std::string id_; |
| + const std::string display_name_; |
| + const double interaction_rank_; |
| + const GURL image_url_; |
| + |
| + gfx::ImageSkia image_; |
| + base::WeakPtrFactory<PeopleResult> weak_factory_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(PeopleResult); |
| +}; |
| + |
| +} // namespace app_list |
| + |
| +#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ |