summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/download
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 03:52:12 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 03:52:12 +0000
commit2a906c0076ac3f7efd17450f12869c7c3429f983 (patch)
tree82b9d94ea5c21f609aed47432208dd4212fc6290 /chrome/browser/ui/views/download
parent42c86025c01c567bbfaeceeb21a900baa21ed14e (diff)
downloadchromium_src-2a906c0076ac3f7efd17450f12869c7c3429f983.zip
chromium_src-2a906c0076ac3f7efd17450f12869c7c3429f983.tar.gz
chromium_src-2a906c0076ac3f7efd17450f12869c7c3429f983.tar.bz2
Makes Widget modality a 3-state type rather than a boolean.
There are actually two types of modality that the WM might care about - window modality and system modality. See the definitions of these in ui/base/ui_base_types.h. This is a precursor to adding support for window modality to Ash. Right now we only do system modality which is undesirable for almost all cases of window modality. http://crbug.com/109290 TEST=none Review URL: http://codereview.chromium.org/9109035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/download')
-rw-r--r--chrome/browser/ui/views/download/download_in_progress_dialog_view.cc6
-rw-r--r--chrome/browser/ui/views/download/download_in_progress_dialog_view.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/ui/views/download/download_in_progress_dialog_view.cc b/chrome/browser/ui/views/download/download_in_progress_dialog_view.cc
index 88526fa..dd3bc48 100644
--- a/chrome/browser/ui/views/download/download_in_progress_dialog_view.cc
+++ b/chrome/browser/ui/views/download/download_in_progress_dialog_view.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -132,8 +132,8 @@ bool DownloadInProgressDialogView::Accept() {
return true;
}
-bool DownloadInProgressDialogView::IsModal() const {
- return true;
+ui::ModalType DownloadInProgressDialogView::GetModalType() const {
+ return ui::MODAL_TYPE_WINDOW;
}
string16 DownloadInProgressDialogView::GetWindowTitle() const {
diff --git a/chrome/browser/ui/views/download/download_in_progress_dialog_view.h b/chrome/browser/ui/views/download/download_in_progress_dialog_view.h
index 4fddbd4..d98611b 100644
--- a/chrome/browser/ui/views/download/download_in_progress_dialog_view.h
+++ b/chrome/browser/ui/views/download/download_in_progress_dialog_view.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -38,7 +38,7 @@ class DownloadInProgressDialogView : public views::DialogDelegateView {
virtual int GetDefaultDialogButton() const OVERRIDE;
virtual bool Cancel() OVERRIDE;
virtual bool Accept() OVERRIDE;
- virtual bool IsModal() const OVERRIDE;
+ virtual ui::ModalType GetModalType() const OVERRIDE;
virtual string16 GetWindowTitle() const OVERRIDE;
virtual views::View* GetContentsView() OVERRIDE;