summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r--chrome/browser/views/frame/browser_view.cc13
-rw-r--r--chrome/browser/views/frame/browser_view.h6
2 files changed, 18 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc
index 4623db2..b0f183a 100644
--- a/chrome/browser/views/frame/browser_view.cc
+++ b/chrome/browser/views/frame/browser_view.cc
@@ -42,6 +42,7 @@
#include "chrome/browser/views/accessible_view_helper.h"
#include "chrome/browser/views/bookmark_bar_view.h"
#include "chrome/browser/views/browser_dialogs.h"
+#include "chrome/browser/views/default_search_view.h"
#include "chrome/browser/views/download_shelf_view.h"
#include "chrome/browser/views/frame/browser_view_layout.h"
#include "chrome/browser/views/frame/contents_container.h"
@@ -1039,6 +1040,18 @@ void BrowserView::DisableInactiveFrame() {
#endif // No tricks are needed to get the right behavior on Linux.
}
+void BrowserView::ConfirmSetDefaultSearchProvider(
+ TabContents* tab_contents,
+ TemplateURL* template_url,
+ TemplateURLModel* template_url_model) {
+#if defined(OS_WIN)
+ DefaultSearchView::Show(tab_contents, template_url, template_url_model);
+#else
+ // TODO(levin): Implement for other platforms. Right now this is behind
+ // a command line flag which is off.
+#endif
+}
+
void BrowserView::ConfirmAddSearchProvider(const TemplateURL* template_url,
Profile* profile) {
browser::EditSearchEngine(GetWindow()->GetNativeWindow(), template_url, NULL,
diff --git a/chrome/browser/views/frame/browser_view.h b/chrome/browser/views/frame/browser_view.h
index 71e99e3..7c0a13b 100644
--- a/chrome/browser/views/frame/browser_view.h
+++ b/chrome/browser/views/frame/browser_view.h
@@ -280,8 +280,12 @@ class BrowserView : public BrowserBubbleHost,
virtual bool IsToolbarVisible() const;
virtual gfx::Rect GetRootWindowResizerRect() const;
virtual void DisableInactiveFrame();
+ virtual void ConfirmSetDefaultSearchProvider(
+ TabContents* tab_contents,
+ TemplateURL* template_url,
+ TemplateURLModel* template_url_model);
virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
- Profile* profile);
+ Profile* profile);
virtual void ToggleBookmarkBar();
virtual views::Window* ShowAboutChromeDialog();
virtual void ShowUpdateChromeDialog();