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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "components/omnibox/browser/autocomplete_match.h"
10 #include "ui/app_list/search_result.h"
12 class AppListControllerDelegate
;
13 class AutocompleteController
;
18 class OmniboxResult
: public SearchResult
{
20 OmniboxResult(Profile
* profile
,
21 AppListControllerDelegate
* list_controller
,
22 AutocompleteController
* autocomplete_controller
,
24 const AutocompleteMatch
& match
);
25 ~OmniboxResult() override
;
27 // SearchResult overrides:
28 void Open(int event_flags
) override
;
30 scoped_ptr
<SearchResult
> Duplicate() const override
;
35 void UpdateTitleAndDetails();
38 AppListControllerDelegate
* list_controller_
;
39 AutocompleteController
* autocomplete_controller_
;
41 AutocompleteMatch match_
;
43 DISALLOW_COPY_AND_ASSIGN(OmniboxResult
);
46 } // namespace app_list
48 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_OMNIBOX_RESULT_H_