OLD | NEW |
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 #include "chrome/browser/autocomplete/autocomplete_match.h" | 5 #include "chrome/browser/autocomplete/autocomplete_match.h" |
6 | 6 |
7 #include "base/i18n/time_formatting.h" | 7 #include "base/i18n/time_formatting.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 IDR_OMNIBOX_HTTP, | 136 IDR_OMNIBOX_HTTP, |
137 IDR_OMNIBOX_HTTP, | 137 IDR_OMNIBOX_HTTP, |
138 IDR_OMNIBOX_HTTP, | 138 IDR_OMNIBOX_HTTP, |
139 IDR_OMNIBOX_HTTP, | 139 IDR_OMNIBOX_HTTP, |
140 IDR_OMNIBOX_HTTP, | 140 IDR_OMNIBOX_HTTP, |
141 IDR_OMNIBOX_HTTP, | 141 IDR_OMNIBOX_HTTP, |
142 IDR_OMNIBOX_SEARCH, | 142 IDR_OMNIBOX_SEARCH, |
143 IDR_OMNIBOX_SEARCH, | 143 IDR_OMNIBOX_SEARCH, |
144 IDR_OMNIBOX_SEARCH, | 144 IDR_OMNIBOX_SEARCH, |
145 IDR_OMNIBOX_SEARCH, | 145 IDR_OMNIBOX_SEARCH, |
| 146 IDR_OMNIBOX_SEARCH, |
| 147 IDR_OMNIBOX_SEARCH, |
| 148 IDR_OMNIBOX_SEARCH, |
| 149 IDR_OMNIBOX_SEARCH, |
146 IDR_OMNIBOX_EXTENSION_APP, | 150 IDR_OMNIBOX_EXTENSION_APP, |
147 // ContactProvider isn't used by the omnibox, so this icon is never | 151 // ContactProvider isn't used by the omnibox, so this icon is never |
148 // displayed. | 152 // displayed. |
149 IDR_OMNIBOX_SEARCH, | 153 IDR_OMNIBOX_SEARCH, |
150 IDR_OMNIBOX_HTTP, | 154 IDR_OMNIBOX_HTTP, |
151 }; | 155 }; |
152 COMPILE_ASSERT(arraysize(icons) == AutocompleteMatchType::NUM_TYPES, | 156 COMPILE_ASSERT(arraysize(icons) == AutocompleteMatchType::NUM_TYPES, |
153 icons_array_must_match_type_enum); | 157 icons_array_must_match_type_enum); |
154 return icons[type]; | 158 return icons[type]; |
155 } | 159 } |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 << " is unsorted in relation to last offset of " << last_offset | 489 << " is unsorted in relation to last offset of " << last_offset |
486 << ". Provider: " << provider_name << "."; | 490 << ". Provider: " << provider_name << "."; |
487 DCHECK_LT(i->offset, text.length()) | 491 DCHECK_LT(i->offset, text.length()) |
488 << " Classification of [" << i->offset << "," << text.length() | 492 << " Classification of [" << i->offset << "," << text.length() |
489 << "] is out of bounds for \"" << text << "\". Provider: " | 493 << "] is out of bounds for \"" << text << "\". Provider: " |
490 << provider_name << "."; | 494 << provider_name << "."; |
491 last_offset = i->offset; | 495 last_offset = i->offset; |
492 } | 496 } |
493 } | 497 } |
494 #endif | 498 #endif |
OLD | NEW |