summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/default_search_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/default_search_view.h')
-rw-r--r--chrome/browser/views/default_search_view.h58
1 files changed, 3 insertions, 55 deletions
diff --git a/chrome/browser/views/default_search_view.h b/chrome/browser/views/default_search_view.h
index 052664d..12651c4 100644
--- a/chrome/browser/views/default_search_view.h
+++ b/chrome/browser/views/default_search_view.h
@@ -6,60 +6,8 @@
#define CHROME_BROWSER_VIEWS_DEFAULT_SEARCH_VIEW_H_
#pragma once
-#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
-#include "base/string16.h"
-#include "chrome/browser/tab_contents/constrained_window.h"
-#include "views/window/dialog_delegate.h"
-
-#if defined(TOOLKIT_USES_GTK)
-#include "chrome/browser/gtk/constrained_window_gtk.h"
-#endif
-
-class MessageBoxView;
-class TabContents;
-class TemplateURL;
-class TemplateURLModel;
-
-namespace views {
-class View;
-}
-
-// This class is responsible for displaying the contents of the default search
-// prompt for when InstallSearchProvider(url, true) is called.
-class DefaultSearchView : public ConstrainedDialogDelegate {
- public:
- static void Show(TabContents* tab_contents,
- TemplateURL* default_url,
- TemplateURLModel* template_url_model);
-
- protected:
- // ConstrainedDialogDelegate:
- virtual std::wstring GetDialogButtonLabel(
- MessageBoxFlags::DialogButton button) const;
- virtual std::wstring GetWindowTitle() const;
- virtual void DeleteDelegate();
- virtual views::View* GetContentsView();
- virtual int GetDefaultDialogButton() const;
- virtual bool Accept();
-
- private:
- DefaultSearchView(TabContents* tab_contents,
- TemplateURL* default_url,
- TemplateURLModel* template_url_model);
- ~DefaultSearchView();
-
- // The host name for the possible default search provider.
- string16 DefaultHostName() const;
-
- // The possible new default url.
- scoped_ptr<TemplateURL> default_url_;
- TemplateURLModel* template_url_model_;
-
- // The message box view whose commands we handle.
- MessageBoxView* message_box_view_;
-
- DISALLOW_COPY_AND_ASSIGN(DefaultSearchView);
-};
+#include "chrome/browser/ui/views/default_search_view.h"
+// TODO(beng): remove this file once all includes have been updated.
#endif // CHROME_BROWSER_VIEWS_DEFAULT_SEARCH_VIEW_H_
+