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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OMNIBOX_RESULT_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "components/omnibox/browser/autocomplete_match.h" 11 #include "components/omnibox/browser/autocomplete_match.h"
11 #include "ui/app_list/search_result.h" 12 #include "ui/app_list/search_result.h"
12 13
13 class AppListControllerDelegate; 14 class AppListControllerDelegate;
14 class AutocompleteController; 15 class AutocompleteController;
15 class Profile; 16 class Profile;
16 17
17 namespace app_list { 18 namespace app_list {
18 19
19 class OmniboxResult : public SearchResult { 20 class OmniboxResult : public SearchResult {
20 public: 21 public:
21 OmniboxResult(Profile* profile, 22 OmniboxResult(Profile* profile,
22 AppListControllerDelegate* list_controller, 23 AppListControllerDelegate* list_controller,
23 AutocompleteController* autocomplete_controller, 24 AutocompleteController* autocomplete_controller,
24 bool is_voice_query, 25 bool is_voice_query,
25 const AutocompleteMatch& match); 26 const AutocompleteMatch& match);
26 ~OmniboxResult() override; 27 ~OmniboxResult() override;
27 28
28 // SearchResult overrides: 29 // SearchResult overrides:
29 void Open(int event_flags) override; 30 void Open(int event_flags) override;
30 31
31 scoped_ptr<SearchResult> Duplicate() const override; 32 std::unique_ptr<SearchResult> Duplicate() const override;
32 33
33 private: 34 private:
34 void UpdateIcon(); 35 void UpdateIcon();
35 36
36 void UpdateTitleAndDetails(); 37 void UpdateTitleAndDetails();
37 38
38 Profile* profile_; 39 Profile* profile_;
39 AppListControllerDelegate* list_controller_; 40 AppListControllerDelegate* list_controller_;
40 AutocompleteController* autocomplete_controller_; 41 AutocompleteController* autocomplete_controller_;
41 bool is_voice_query_; 42 bool is_voice_query_;
42 AutocompleteMatch match_; 43 AutocompleteMatch match_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(OmniboxResult); 45 DISALLOW_COPY_AND_ASSIGN(OmniboxResult);
45 }; 46 };
46 47
47 } // namespace app_list 48 } // namespace app_list
48 49
49 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_ 50 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/omnibox_provider.cc ('k') | chrome/browser/ui/app_list/search/omnibox_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698