Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: chrome/browser/ui/views/download/download_in_progress_dialog_view.cc

Issue 15060010: Remove the download in progress dialog black border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/download/download_in_progress_dialog_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/download/download_in_progress_dialog_view.h" 5 #include "chrome/browser/ui/views/download/download_in_progress_dialog_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "grit/chromium_strings.h" 12 #include "grit/chromium_strings.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "grit/locale_settings.h" 14 #include "grit/locale_settings.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 #include "ui/views/border.h" 18 #include "ui/views/border.h"
19 #include "ui/views/controls/message_box_view.h" 19 #include "ui/views/controls/message_box_view.h"
20 #include "ui/views/layout/grid_layout.h" 20 #include "ui/views/layout/grid_layout.h"
21 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
22 22
23 // static 23 // static
24 void DownloadInProgressDialogView::Show(Browser* browser, 24 void DownloadInProgressDialogView::Show(Browser* browser,
25 gfx::NativeWindow parent_window) { 25 gfx::NativeWindow parent) {
26 DownloadInProgressDialogView* window = 26 DownloadInProgressDialogView* window =
27 new DownloadInProgressDialogView(browser); 27 new DownloadInProgressDialogView(browser);
28 views::Widget::CreateWindowWithParent(window, parent_window)->Show(); 28 views::DialogDelegate::CreateDialogWidget(window, NULL, parent)->Show();
29 } 29 }
30 30
31 DownloadInProgressDialogView::DownloadInProgressDialogView(Browser* browser) 31 DownloadInProgressDialogView::DownloadInProgressDialogView(Browser* browser)
32 : browser_(browser), 32 : browser_(browser),
33 message_box_view_(NULL) { 33 message_box_view_(NULL) {
34 int download_count; 34 int download_count;
35 Browser::DownloadClosePreventionType dialog_type = 35 Browser::DownloadClosePreventionType dialog_type =
36 browser_->OkToCloseWithInProgressDownloads(&download_count); 36 browser_->OkToCloseWithInProgressDownloads(&download_count);
37 37
38 string16 explanation_text; 38 string16 explanation_text;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return message_box_view_->GetWidget(); 121 return message_box_view_->GetWidget();
122 } 122 }
123 123
124 const views::Widget* DownloadInProgressDialogView::GetWidget() const { 124 const views::Widget* DownloadInProgressDialogView::GetWidget() const {
125 return message_box_view_->GetWidget(); 125 return message_box_view_->GetWidget();
126 } 126 }
127 127
128 views::View* DownloadInProgressDialogView::GetContentsView() { 128 views::View* DownloadInProgressDialogView::GetContentsView() {
129 return message_box_view_; 129 return message_box_view_;
130 } 130 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_in_progress_dialog_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698