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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_match.cc

Issue 10660021: HiDPI assets for omnibox icons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cros Created 8 years, 6 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 #include "chrome/browser/autocomplete/autocomplete_match.h" 5 #include "chrome/browser/autocomplete/autocomplete_match.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/browser/autocomplete/autocomplete.h" 10 #include "chrome/browser/autocomplete/autocomplete.h"
11 #include "chrome/browser/autocomplete/autocomplete_provider.h" 11 #include "chrome/browser/autocomplete/autocomplete_provider.h"
12 #include "chrome/browser/search_engines/template_url.h" 12 #include "chrome/browser/search_engines/template_url.h"
13 #include "chrome/browser/search_engines/template_url_service.h" 13 #include "chrome/browser/search_engines/template_url_service.h"
14 #include "chrome/browser/search_engines/template_url_service_factory.h" 14 #include "chrome/browser/search_engines/template_url_service_factory.h"
15 #include "grit/theme_resources.h" 15 #include "grit/theme_resources.h"
16 #include "grit/theme_resources_standard.h"
16 17
17 // AutocompleteMatch ---------------------------------------------------------- 18 // AutocompleteMatch ----------------------------------------------------------
18 19
19 // static 20 // static
20 const char16 AutocompleteMatch::kInvalidChars[] = { 21 const char16 AutocompleteMatch::kInvalidChars[] = {
21 '\n', '\r', '\t', 22 '\n', '\r', '\t',
22 0x2028, // Line separator 23 0x2028, // Line separator
23 0x2029, // Paragraph separator 24 0x2029, // Paragraph separator
24 0 25 0
25 }; 26 };
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 << " is unsorted in relation to last offset of " << last_offset 351 << " is unsorted in relation to last offset of " << last_offset
351 << ". Provider: " << (provider ? provider->name() : "None") << "."; 352 << ". Provider: " << (provider ? provider->name() : "None") << ".";
352 DCHECK_LT(i->offset, text.length()) 353 DCHECK_LT(i->offset, text.length())
353 << " Classification of [" << i->offset << "," << text.length() 354 << " Classification of [" << i->offset << "," << text.length()
354 << "] is out of bounds for \"" << text << "\". Provider: " 355 << "] is out of bounds for \"" << text << "\". Provider: "
355 << (provider ? provider->name() : "None") << "."; 356 << (provider ? provider->name() : "None") << ".";
356 last_offset = i->offset; 357 last_offset = i->offset;
357 } 358 }
358 } 359 }
359 #endif 360 #endif
OLDNEW
« no previous file with comments | « chrome/app/theme/theme_resources_standard.grd ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698