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

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

Issue 384018: Added a flag to the Canvas class which allows forcing an RTL directionality... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_AUTOCOMPLETE_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // string segments, and must be in sorted order. All text must be associated 280 // string segments, and must be in sorted order. All text must be associated
281 // with some kind of classification. Even if a match has no distinct 281 // with some kind of classification. Even if a match has no distinct
282 // segments, its vector should contain an entry at offset 0 with no flags. 282 // segments, its vector should contain an entry at offset 0 with no flags.
283 // 283 //
284 // Example: The user typed "goog" 284 // Example: The user typed "goog"
285 // http://www.google.com/ Google 285 // http://www.google.com/ Google
286 // ^ ^ ^ ^ ^ 286 // ^ ^ ^ ^ ^
287 // 0, | 15, | 4, 287 // 0, | 15, | 4,
288 // 11,match 0,match 288 // 11,match 0,match
289 // 289 //
290 // This structure holds the classifiction information for each span. 290 // This structure holds the classification information for each span.
291 struct ACMatchClassification { 291 struct ACMatchClassification {
292 // The values in here are not mutually exclusive -- use them like a 292 // The values in here are not mutually exclusive -- use them like a
293 // bitfield. This also means we use "int" instead of this enum type when 293 // bitfield. This also means we use "int" instead of this enum type when
294 // passing the values around, so the compiler doesn't complain. 294 // passing the values around, so the compiler doesn't complain.
295 enum Style { 295 enum Style {
296 NONE = 0, 296 NONE = 0,
297 URL = 1 << 0, // A URL 297 URL = 1 << 0, // A URL
298 MATCH = 1 << 1, // A match for the user's search term 298 MATCH = 1 << 1, // A match for the user's search term
299 DIM = 1 << 2, // "Helper text" 299 DIM = 1 << 2, // "Helper text"
300 }; 300 };
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 AutocompleteInput::Type input_type; 880 AutocompleteInput::Type input_type;
881 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). 881 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch).
882 size_t selected_index; 882 size_t selected_index;
883 // Inline autocompleted length (if displayed). 883 // Inline autocompleted length (if displayed).
884 size_t inline_autocompleted_length; 884 size_t inline_autocompleted_length;
885 // Result set. 885 // Result set.
886 const AutocompleteResult& result; 886 const AutocompleteResult& result;
887 }; 887 };
888 888
889 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 889 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
OLDNEW
« no previous file with comments | « app/gfx/canvas_win.cc ('k') | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698