diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-11 22:38:52 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-11 22:38:52 +0000 |
commit | 965c7661846b63bc5cbe329b689ef406fd341a86 (patch) | |
tree | ddcbd4b64a6b67e14e94a1f533f7c1eb8073e1c4 /chrome/browser/browser_window.h | |
parent | 1e5c78c698039ab93e989f8b1e78c00e7ae5206c (diff) | |
download | chromium_src-965c7661846b63bc5cbe329b689ef406fd341a86.zip chromium_src-965c7661846b63bc5cbe329b689ef406fd341a86.tar.gz chromium_src-965c7661846b63bc5cbe329b689ef406fd341a86.tar.bz2 |
Add the Windows dialog for setting default search provider from js.
Document with the dialog: http://sites.google.com/a/chromium.org/dev/developers/design-documents/chromium-search-provider-js-support
BUG=38475
TEST=Used a custom html page which calls window.external.AddSearchProvider(url, true).
Review URL: http://codereview.chromium.org/3673002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_window.h')
-rw-r--r-- | chrome/browser/browser_window.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/chrome/browser/browser_window.h b/chrome/browser/browser_window.h index f14d719..d45f2c1 100644 --- a/chrome/browser/browser_window.h +++ b/chrome/browser/browser_window.h @@ -21,6 +21,7 @@ class Profile; class StatusBubble; class TabContents; class TemplateURL; +class TemplateURLModel; #if !defined(OS_MACOSX) class ToolbarView; #endif @@ -179,8 +180,17 @@ class BrowserWindow { // provided here since the functionality is Windows-specific. virtual void DisableInactiveFrame() {} + // Shows a confirmation dialog box for setting the default search engine + // described by |template_url|. Takes ownership of |template_url|. + virtual void ConfirmSetDefaultSearchProvider( + TabContents* tab_contents, + TemplateURL* template_url, + TemplateURLModel* template_url_model) { + // TODO(levin): Implement this for non-Windows platforms and make it pure. + } + // Shows a confirmation dialog box for adding a search engine described by - // |template_url|. + // |template_url|. Takes ownership of |template_url|. virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, Profile* profile) = 0; |