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

Side by Side Diff: chrome/browser/ui/app_list/search/omnibox_provider.cc

Issue 443043003: Rename components/autocomplete to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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
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 #include "chrome/browser/ui/app_list/search/omnibox_provider.h" 5 #include "chrome/browser/ui/app_list/search/omnibox_provider.h"
6 6
7 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 7 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
8 #include "chrome/browser/autocomplete/autocomplete_controller.h" 8 #include "chrome/browser/autocomplete/autocomplete_controller.h"
9 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" 9 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
11 #include "chrome/browser/search_engines/template_url_service_factory.h" 11 #include "chrome/browser/search_engines/template_url_service_factory.h"
12 #include "chrome/browser/ui/app_list/search/chrome_search_result.h" 12 #include "chrome/browser/ui/app_list/search/chrome_search_result.h"
13 #include "chrome/browser/ui/browser_navigator.h" 13 #include "chrome/browser/ui/browser_navigator.h"
14 #include "components/autocomplete/autocomplete_input.h"
15 #include "components/autocomplete/autocomplete_match.h"
16 #include "components/bookmarks/browser/bookmark_model.h" 14 #include "components/bookmarks/browser/bookmark_model.h"
17 #include "components/metrics/proto/omnibox_event.pb.h" 15 #include "components/metrics/proto/omnibox_event.pb.h"
16 #include "components/omnibox/autocomplete_input.h"
17 #include "components/omnibox/autocomplete_match.h"
18 #include "grit/theme_resources.h" 18 #include "grit/theme_resources.h"
19 #include "ui/base/resource/resource_bundle.h" 19 #include "ui/base/resource/resource_bundle.h"
20 20
21 namespace app_list { 21 namespace app_list {
22 22
23 namespace { 23 namespace {
24 24
25 int ACMatchStyleToTagStyle(int styles) { 25 int ACMatchStyleToTagStyle(int styles) {
26 int tag_styles = 0; 26 int tag_styles = 0;
27 if (styles & ACMatchClassification::URL) 27 if (styles & ACMatchClassification::URL)
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 new OmniboxResult(profile_, controller_.get(), *it))); 182 new OmniboxResult(profile_, controller_.get(), *it)));
183 } 183 }
184 } 184 }
185 185
186 void OmniboxProvider::OnResultChanged(bool default_match_changed) { 186 void OmniboxProvider::OnResultChanged(bool default_match_changed) {
187 const AutocompleteResult& result = controller_->result(); 187 const AutocompleteResult& result = controller_->result();
188 PopulateFromACResult(result); 188 PopulateFromACResult(result);
189 } 189 }
190 190
191 } // namespace app_list 191 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698