summaryrefslogtreecommitdiffstats
path: root/chrome/browser/search_engines
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 21:38:30 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-14 21:38:30 +0000
commit03bb953da2a51fa35e7735ce711c1be6946312ea (patch)
treebd9fe31bd34036670ccc5247dcdba72cb9609400 /chrome/browser/search_engines
parent037d1e192cfbad001946fe026d0460e636fa8e76 (diff)
downloadchromium_src-03bb953da2a51fa35e7735ce711c1be6946312ea.zip
chromium_src-03bb953da2a51fa35e7735ce711c1be6946312ea.tar.gz
chromium_src-03bb953da2a51fa35e7735ce711c1be6946312ea.tar.bz2
Bunch of match preview tweaks:
. Makes MatchPreview owned by Browser rather than each TabContents. . Makes MatchPreview dismiss when the omnibox closes. . Supports the ability to send script to the page rather than reloading on every keystroke. . Supports receiving results from the page that drives the suggest text in the omnbox. BUG=54833 TEST=none Review URL: http://codereview.chromium.org/3332022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59428 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/search_engines')
-rw-r--r--chrome/browser/search_engines/template_url.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index 42eb0bf..ceaa0ecd2 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -277,7 +277,7 @@ class TemplateURL {
// Generates a favicon URL from the specified url.
static GURL GenerateFaviconURL(const GURL& url);
- // Returns true if |true| is non-null and has a search URL that supports
+ // Returns true if |turl| is non-null and has a search URL that supports
// replacement.
static bool SupportsReplacement(const TemplateURL* turl);
@@ -297,6 +297,10 @@ class TemplateURL {
}
const std::wstring& short_name() const { return short_name_; }
+ // Returns true if this search engine supports showing instant results.
+ // TODO(sky): make this real.
+ bool supports_instant() const { return false; }
+
// An accessor for the short_name, but adjusted so it can be appropriately
// displayed even if it is LTR and the UI is RTL.
std::wstring AdjustedShortNameForLocaleDirection() const;