summaryrefslogtreecommitdiffstats
path: root/ui/gfx
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 17:20:17 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 17:20:17 +0000
commit4e8655deaccc49465a6c18055887d1e0e2501a55 (patch)
tree380597268645f492ccbd7ae0e13a417ad0df985a /ui/gfx
parente3bfce524f3546661935e8448bad35a5571d8e22 (diff)
downloadchromium_src-4e8655deaccc49465a6c18055887d1e0e2501a55.zip
chromium_src-4e8655deaccc49465a6c18055887d1e0e2501a55.tar.gz
chromium_src-4e8655deaccc49465a6c18055887d1e0e2501a55.tar.bz2
Update BuiltinProvider to provide chrome:// URLs.
Provide common URLs as users start typing "about://" or "chrome://". Highlight matching input (including "chrome://" for "about:" input). Support settings sub-pages/paths, e.g. "chrome://settings/foo". Add BuiltinProviderTest unit test. Additional hosts will be added when I fix crbug.com/73926. BUG=55771 TEST=Get chrome:// AutocompleteProvider URLs in the omnibox dropdown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89073 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89298 Review URL: http://codereview.chromium.org/6995096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89356 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx')
-rw-r--r--ui/gfx/canvas.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index e4ce7ad..c83b797 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -178,8 +178,8 @@ class Canvas {
// Draws text with the specified color, font and location. The text is
// aligned to the left, vertically centered, clipped to the region. If the
// text is too big, it is truncated and '...' is added to the end.
- virtual void DrawStringInt(const string16& text, const
- gfx::Font& font,
+ virtual void DrawStringInt(const string16& text,
+ const gfx::Font& font,
const SkColor& color,
int x, int y, int w, int h) = 0;
virtual void DrawStringInt(const string16& text,