#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 Profile;
namespace app_list {
struct Person;
class PeopleResult : public ChromeSearchResult {
public:
PeopleResult(Profile* profile, scoped_ptr<Person> person);
virtual ~PeopleResult();
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 OnIconLoaded();
void SetDefaultActions();
void OpenChat();
void SendEmail();
void RefreshHangoutsExtensionId();
Profile* profile_;
scoped_ptr<Person> person_;
gfx::ImageSkia image_;
base::WeakPtrFactory<PeopleResult> weak_factory_;
std::string hangouts_extension_id_;
DISALLOW_COPY_AND_ASSIGN(PeopleResult);
};
}
#endif