summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/clear_browsing_data.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 16:19:54 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-22 16:19:54 +0000
commit322f3ffc4edcc572adbc0a3657a16315a1846c51 (patch)
tree9e847beb06fbebc8ade32dc9908c78e655051cf7 /chrome/browser/views/clear_browsing_data.cc
parent97037a1032478f976048762aed86d963dc531c2f (diff)
downloadchromium_src-322f3ffc4edcc572adbc0a3657a16315a1846c51.zip
chromium_src-322f3ffc4edcc572adbc0a3657a16315a1846c51.tar.gz
chromium_src-322f3ffc4edcc572adbc0a3657a16315a1846c51.tar.bz2
Move a bunch of dialog creation routines to browser_dialogs.h to break the
dependency on the implementations of those views. This also moves that file into the browser:: namespace to avoid having all the functions in the global namespace. Rename the "parent" parameter to ShowHTMLDialog to a NativeWindow type to avoid nasty casting. I assume this argument was written before we had NativeWindow. Review URL: http://codereview.chromium.org/113728 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16743 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/clear_browsing_data.cc')
-rw-r--r--chrome/browser/views/clear_browsing_data.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/views/clear_browsing_data.cc b/chrome/browser/views/clear_browsing_data.cc
index 865ba21..43692e1 100644
--- a/chrome/browser/views/clear_browsing_data.cc
+++ b/chrome/browser/views/clear_browsing_data.cc
@@ -17,6 +17,7 @@
#include "views/controls/label.h"
#include "views/controls/throbber.h"
#include "views/standard_layout.h"
+#include "views/widget/widget.h"
#include "views/window/window.h"
// The combo box is vertically aligned to the 'time-period' label, which makes
@@ -25,6 +26,18 @@
// the label, giving it a little breathing space.
static const int kExtraMarginForTimePeriodLabel = 3;
+namespace browser {
+
+// Defined in browser_dialogs.h for creation of the view.
+void ShowClearBrowsingDataView(views::Widget* parent,
+ Profile* profile) {
+ views::Window::CreateChromeWindow(
+ parent->GetNativeView(), gfx::Rect(),
+ new ClearBrowsingDataView(profile))->Show();
+}
+
+} // namespace browser
+
////////////////////////////////////////////////////////////////////////////////
// ClearBrowsingDataView, public: