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

Side by Side Diff: chrome/browser/autocomplete/shortcuts_provider.h

Issue 18878007: Omnibox: Make the Controller Reorder Matches for Inlining (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one final pass through the code Created 7 years, 5 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 (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_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 std::string languages_; 101 std::string languages_;
102 bool initialized_; 102 bool initialized_;
103 103
104 // The maximum relevance that can be assigned in CalculateScore(). 104 // The maximum relevance that can be assigned in CalculateScore().
105 // Note that if the final assigned relevance is at least 105 // Note that if the final assigned relevance is at least
106 // AutocompleteResult::kLowestDefaultScore, the relevance will be 106 // AutocompleteResult::kLowestDefaultScore, the relevance will be
107 // demoted to less than that number because ShortcutsProvider isn't 107 // demoted to less than that number because ShortcutsProvider isn't
108 // allowed to inline. 108 // allowed to inline.
109 int max_relevance_; 109 int max_relevance_;
110
111 // True if the omnibox will reorder matches as necessary to make the top
112 // one something that is allowed to be the default match.
113 bool omnibox_will_reorder_for_legal_default_match_;
110 }; 114 };
111 115
112 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_ 116 #endif // CHROME_BROWSER_AUTOCOMPLETE_SHORTCUTS_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698