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

Side by Side Diff: components/omnibox/autocomplete_match.h

Issue 1129733006: Omnibox - Code Cleanup - Remove Unnecessary is_history_what_you_typed_match (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 COMPONENTS_OMNIBOX_AUTOCOMPLETE_MATCH_H_ 5 #ifndef COMPONENTS_OMNIBOX_AUTOCOMPLETE_MATCH_H_
6 #define COMPONENTS_OMNIBOX_AUTOCOMPLETE_MATCH_H_ 6 #define COMPONENTS_OMNIBOX_AUTOCOMPLETE_MATCH_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 // A rich-format version of the display for the dropdown. 323 // A rich-format version of the display for the dropdown.
324 base::string16 answer_contents; 324 base::string16 answer_contents;
325 base::string16 answer_type; 325 base::string16 answer_type;
326 scoped_ptr<SuggestionAnswer> answer; 326 scoped_ptr<SuggestionAnswer> answer;
327 327
328 // The transition type to use when the user opens this match. By default 328 // The transition type to use when the user opens this match. By default
329 // this is TYPED. Providers whose matches do not look like URLs should set 329 // this is TYPED. Providers whose matches do not look like URLs should set
330 // it to GENERATED. 330 // it to GENERATED.
331 ui::PageTransition transition; 331 ui::PageTransition transition;
332 332
333 // True when this match is the "what you typed" match from the history
334 // system.
335 bool is_history_what_you_typed_match;
336
337 // Type of this match. 333 // Type of this match.
338 Type type; 334 Type type;
339 335
340 // Set with a keyword provider match if this match can show a keyword hint. 336 // Set with a keyword provider match if this match can show a keyword hint.
341 // For example, if this is a SearchProvider match for "www.amazon.com", 337 // For example, if this is a SearchProvider match for "www.amazon.com",
342 // |associated_keyword| could be a KeywordProvider match for "amazon.com". 338 // |associated_keyword| could be a KeywordProvider match for "amazon.com".
343 // 339 //
344 // When this is set, the popup will show a ">" symbol at the right edge of the 340 // When this is set, the popup will show a ">" symbol at the right edge of the
345 // line for this match, and tab/shift-tab will toggle in and out of keyword 341 // line for this match, and tab/shift-tab will toggle in and out of keyword
346 // mode without disturbing the rest of the popup. See also 342 // mode without disturbing the rest of the popup. See also
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 const base::string16& text, 385 const base::string16& text,
390 const ACMatchClassifications& classifications) const; 386 const ACMatchClassifications& classifications) const;
391 #endif 387 #endif
392 }; 388 };
393 389
394 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; 390 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification;
395 typedef std::vector<ACMatchClassification> ACMatchClassifications; 391 typedef std::vector<ACMatchClassification> ACMatchClassifications;
396 typedef std::vector<AutocompleteMatch> ACMatches; 392 typedef std::vector<AutocompleteMatch> ACMatches;
397 393
398 #endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_MATCH_H_ 394 #endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_MATCH_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc ('k') | components/omnibox/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698