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

Side by Side Diff: chrome/browser/ui/app_list/search_builder.h

Issue 10909130: autocomplete: Add AutocompleteProvider::Type enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add !! for windows Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/ui/app_list/search_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BUILDER_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_BUILDER_H_
6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_BUILDER_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_SEARCH_BUILDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" 11 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h"
12 #include "ui/app_list/app_list_model.h" 12 #include "ui/app_list/app_list_model.h"
13 13
14 namespace app_list { 14 namespace app_list {
15 class SearchBoxModel; 15 class SearchBoxModel;
16 class SearchResult; 16 class SearchResult;
17 } 17 }
18 18
19 class AppListController; 19 class AppListController;
20 class AutocompleteController; 20 class AutocompleteController;
21 class AutocompleteResult; 21 class AutocompleteResult;
22 class ExtensionAppProvider;
23 class Profile; 22 class Profile;
24 23
25 // SearchBuilder creates app list search results via AutoCompleteController. 24 // SearchBuilder creates app list search results via AutoCompleteController.
26 class SearchBuilder : public AutocompleteControllerDelegate { 25 class SearchBuilder : public AutocompleteControllerDelegate {
27 public: 26 public:
28 SearchBuilder(Profile* profile, 27 SearchBuilder(Profile* profile,
29 app_list::SearchBoxModel* search_box, 28 app_list::SearchBoxModel* search_box,
30 app_list::AppListModel::SearchResults* results, 29 app_list::AppListModel::SearchResults* results,
31 AppListController* list_controller); 30 AppListController* list_controller);
32 virtual ~SearchBuilder(); 31 virtual ~SearchBuilder();
(...skipping 23 matching lines...) Expand all
56 app_list::SearchBoxModel* search_box_; 55 app_list::SearchBoxModel* search_box_;
57 app_list::AppListModel::SearchResults* results_; 56 app_list::AppListModel::SearchResults* results_;
58 57
59 // The omnibox AutocompleteController that collects/sorts/dup- 58 // The omnibox AutocompleteController that collects/sorts/dup-
60 // eliminates the results as they come in. 59 // eliminates the results as they come in.
61 scoped_ptr<AutocompleteController> controller_; 60 scoped_ptr<AutocompleteController> controller_;
62 61
63 // The controller of the app list. Owned by the app list delegate. 62 // The controller of the app list. Owned by the app list delegate.
64 AppListController* list_controller_; 63 AppListController* list_controller_;
65 64
66 // ExtensionAppProvider used for apps only mode. If apps only mode becomes the
67 // only mode, remove the AutocompleteController above. Otherwise, remove this.
68 scoped_refptr<ExtensionAppProvider> apps_provider_;
69
70 DISALLOW_COPY_AND_ASSIGN(SearchBuilder); 65 DISALLOW_COPY_AND_ASSIGN(SearchBuilder);
71 }; 66 };
72 67
73 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_BUILDER_H_ 68 #endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_BUILDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_log.cc ('k') | chrome/browser/ui/app_list/search_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698