diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 17:42:14 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 17:42:14 +0000 |
commit | 30d32c936fe9ca1f24a555d4ffb77f703607aaa1 (patch) | |
tree | f4ffea67705c1c2e20470a239372e1218c7cad40 /chrome/browser/autocomplete/autocomplete.h | |
parent | e3c007650c0bbcb7b87a55e34e6ea6f867d0c376 (diff) | |
download | chromium_src-30d32c936fe9ca1f24a555d4ffb77f703607aaa1.zip chromium_src-30d32c936fe9ca1f24a555d4ffb77f703607aaa1.tar.gz chromium_src-30d32c936fe9ca1f24a555d4ffb77f703607aaa1.tar.bz2 |
Color/emphasize correct portions of view-source: URLs. Original patch by Shinichiro Hamaji (see http://codereview.chromium.org/62094/show ), r=me.
BUG=2349
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h index 4ff9394..98fb7e5 100644 --- a/chrome/browser/autocomplete/autocomplete.h +++ b/chrome/browser/autocomplete/autocomplete.h @@ -193,6 +193,15 @@ class AutocompleteInput { url_parse::Parsed* parts, std::wstring* scheme); + // Parses |text| and fill |scheme| and |host| by the positions of them. + // The results are almost as same as the result of Parse(), but if the scheme + // is view-source, this function returns the positions of scheme and host + // in the URL qualified by "view-source:" prefix. + static void ParseForEmphasizeComponents(const std::wstring& text, + const std::wstring& desired_tld, + url_parse::Component* scheme, + url_parse::Component* host); + // User-provided text to be completed. const std::wstring& text() const { return text_; } |