From 2e7dcade25780b56a1481bbb8b8ce8ced79b00b8 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 24 Jul 2013 18:51:03 +0800 Subject: [PATCH] [Win] Make message box modal. --- browser/message_box_win.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/browser/message_box_win.cc b/browser/message_box_win.cc index 78693c6..35d1d6d 100644 --- a/browser/message_box_win.cc +++ b/browser/message_box_win.cc @@ -40,6 +40,7 @@ class MessageDialog : public base::MessageLoop::Dispatcher, virtual views::Widget* GetWidget() OVERRIDE; virtual const views::Widget* GetWidget() const OVERRIDE; virtual views::ClientView* CreateClientView(views::Widget* widget) OVERRIDE; + virtual ui::ModalType GetModalType() const OVERRIDE; // Overridden from views::ButtonListener: virtual void ButtonPressed(views::Button* sender, @@ -104,6 +105,10 @@ views::ClientView* MessageDialog::CreateClientView(views::Widget* widget) { return new views::ClientView(widget, message_box_view_); } +ui::ModalType MessageDialog::GetModalType() const { + return ui::MODAL_TYPE_WINDOW; +} + void MessageDialog::ButtonPressed(views::Button* sender, const ui::Event& event) { } -- 2.7.4