diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-13 21:56:26 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-13 21:56:26 +0000 |
commit | 2fdd00a4c6a07856180347c6d147b27c10ae14ff (patch) | |
tree | fc1634a77f397665cdf20526b96fcb9801c8d144 /chrome/browser/ui/views/instant_confirm_view.cc | |
parent | f25b8052531b1d4668d1d9ed60b1151af4ca3ab2 (diff) | |
download | chromium_src-2fdd00a4c6a07856180347c6d147b27c10ae14ff.zip chromium_src-2fdd00a4c6a07856180347c6d147b27c10ae14ff.tar.gz chromium_src-2fdd00a4c6a07856180347c6d147b27c10ae14ff.tar.bz2 |
Eliminate Window completely.
BUG=72040
TEST=none
Review URL: http://codereview.chromium.org/7108047
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/instant_confirm_view.cc')
-rw-r--r-- | chrome/browser/ui/views/instant_confirm_view.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/views/instant_confirm_view.cc b/chrome/browser/ui/views/instant_confirm_view.cc index cd8bcb7..4f5f02b 100644 --- a/chrome/browser/ui/views/instant_confirm_view.cc +++ b/chrome/browser/ui/views/instant_confirm_view.cc @@ -18,7 +18,7 @@ #include "views/controls/link.h" #include "views/layout/grid_layout.h" #include "views/layout/layout_constants.h" -#include "views/window/window.h" +#include "views/widget/widget.h" InstantConfirmView::InstantConfirmView(Profile* profile) : profile_(profile) { views::Label* description_label = new views::Label( @@ -67,7 +67,7 @@ std::wstring InstantConfirmView::GetWindowTitle() const { gfx::Size InstantConfirmView::GetPreferredSize() { DCHECK(GetLayoutManager()); - int pref_width = views::Window::GetLocalizedContentsWidth( + int pref_width = views::Widget::GetLocalizedContentsWidth( IDS_INSTANT_CONFIRM_DIALOG_WIDTH_CHARS); int pref_height = GetLayoutManager()->GetPreferredHeightForWidth(this, pref_width); @@ -87,8 +87,8 @@ void InstantConfirmView::LinkClicked(views::Link* source, int event_flags) { namespace browser { void ShowInstantConfirmDialog(gfx::NativeWindow parent, Profile* profile) { - views::Window::CreateChromeWindow(parent, gfx::Rect(), - new InstantConfirmView(profile))->Show(); + views::Widget::CreateWindowWithParent(new InstantConfirmView(profile), + parent)->Show(); } } // namespace browser |