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

Side by Side Diff: chrome/browser/ui/app_list/search/people/people_result.h

Issue 898273002: app_list::SearchResult: Duplicate() is const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix. Created 5 years, 10 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 11 matching lines...) Expand all
22 class PeopleResult : public SearchResult { 22 class PeopleResult : public SearchResult {
23 public: 23 public:
24 PeopleResult(Profile* profile, 24 PeopleResult(Profile* profile,
25 AppListControllerDelegate* controller, 25 AppListControllerDelegate* controller,
26 scoped_ptr<Person> person); 26 scoped_ptr<Person> person);
27 ~PeopleResult() override; 27 ~PeopleResult() override;
28 28
29 // SearchResult overrides: 29 // SearchResult overrides:
30 void Open(int event_flags) override; 30 void Open(int event_flags) override;
31 void InvokeAction(int action_index, int event_flags) override; 31 void InvokeAction(int action_index, int event_flags) override;
32 scoped_ptr<SearchResult> Duplicate() override; 32 scoped_ptr<SearchResult> Duplicate() const override;
33 33
34 private: 34 private:
35 void OnIconLoaded(); 35 void OnIconLoaded();
36 void SetDefaultActions(); 36 void SetDefaultActions();
37 void OpenChat(); 37 void OpenChat();
38 void SendEmail(); 38 void SendEmail();
39 39
40 // Check if we have any variant of the hangouts extension installed and 40 // Check if we have any variant of the hangouts extension installed and
41 // waiting on the onHangoutRequested event (the hangouts extension can have 41 // waiting on the onHangoutRequested event (the hangouts extension can have
42 // a total of four possible id's, depending on which release type of it is 42 // a total of four possible id's, depending on which release type of it is
(...skipping 11 matching lines...) Expand all
54 std::string hangouts_extension_id_; 54 std::string hangouts_extension_id_;
55 55
56 base::WeakPtrFactory<PeopleResult> weak_factory_; 56 base::WeakPtrFactory<PeopleResult> weak_factory_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(PeopleResult); 58 DISALLOW_COPY_AND_ASSIGN(PeopleResult);
59 }; 59 };
60 60
61 } // namespace app_list 61 } // namespace app_list
62 62
63 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_ 63 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_PEOPLE_PEOPLE_RESULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/omnibox_result.cc ('k') | chrome/browser/ui/app_list/search/people/people_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698