summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_modal_dialog_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/app_modal_dialog_win.cc')
-rw-r--r--chrome/browser/app_modal_dialog_win.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/chrome/browser/app_modal_dialog_win.cc b/chrome/browser/app_modal_dialog_win.cc
new file mode 100644
index 0000000..e48d986
--- /dev/null
+++ b/chrome/browser/app_modal_dialog_win.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/app_modal_dialog.h"
+
+#include "base/logging.h"
+#include "chrome/browser/views/jsmessage_box_dialog.h"
+#include "views/window/dialog_delegate.h"
+#include "views/window/window.h"
+
+AppModalDialog::~AppModalDialog() {
+}
+
+void AppModalDialog::CreateAndShowDialog() {
+ dialog_ = CreateNativeDialog();
+ DCHECK(dialog_->IsModal());
+ dialog_->ShowModalDialog();
+}
+
+void AppModalDialog::ActivateModalDialog() {
+ DCHECK(dialog_);
+ dialog_->ActivateModalDialog();
+}
+
+void AppModalDialog::CloseModalDialog() {
+ DCHECK(dialog_);
+ dialog_->CloseModalDialog();
+}